Welcome
Getting Started
How to Guides
Application vs Blocklet
Create Blocklet
Compose Blocklets
Develop Blocklet
User and Passport
Communicate with DID Wallet
Blocklet Storage
Using Blocklet Preferences
Using Blocklet Logger
Add PWA Integration to Blocklet
Build blocklet for profit [deprecated]
Bundle your blocklet
Manage Blocklet Versions
Publish your blocklet to the world
Deploy your blocklet
Read/Write blockchain in blocklet
Operation your blocklet
Reference Guides
DID Connect
blocklet.yml
blocklet.js
Blocklet SDK (Node.js)
Blocklet SDK (Browser)
Blocklet Service
Blocklet CLI
Blocklet Server CLI
Blocklet UI
Blocklet GitHub Actions
Blocklet Studio
Blocklet Manager
Security
Performance
Developer Best Practices.
Known Issues or Limitations
Setup Blocklet Server
WebHooks
OAuth Server
Access Key
MCP Servers
Conceptual Guides
Frequently Asked Questions
Blocklet Lifecycle
This doc is a draft and needs to be updated
钩子名称 | 运行时机 | 抛错的影响 | 使用场景 |
---|---|---|---|
preInstall | 全新安装或者升级时,下载完成之后 | 终止安装 | 检查依赖的环境 |
preFlight | 启动、升级之前 | 终止升级、无法启动 | 变更数据库 Schema 等 |
preStart | 启动之前 | 无法启动,报启动失败 | 检查配置、注册账户、初始化数据库等 |
postStart | 启动之后 | 无影响 | 生成一些配置、更新索引、状态上报 |
preStop | 停止之前 | 无影响 | 做一些清理工作 |
preConfig | 修改并保存配置之前 | 配置保存失败 | 校验配置是否有效 |
migration | 新版安装完启动之前 | 无法启动,报启动失败 | 迁移数据 |