@idoa/dev-doctor-ckb
v0.1.2
Published
TypeScript-first diagnostics and onboarding toolkit for Nervos CKB developers.
Maintainers
Readme
CKB Dev Doctor
Lightweight developer diagnostics and onboarding toolkit for CKB builders.
- npm package name:
@idoa/dev-doctor-ckb - CLI binary:
ckb-doctor
Why this matters for CKB
CKB development often requires multiple components:
- CKB node
- RPC endpoint
- Indexer
- config files
- local environment setup
Misconfiguration is a common onboarding issue.
CKB Dev Doctor provides a fast CLI diagnostics layer to help developers validate their setup before building applications on CKB.
What this repo is
This repository is a small CKB-specific wrapper around shared Dev Doctor packages:
@idoa/dev-doctor-core@idoa/dev-doctor-types@idoa/dev-doctor-utils@idoa/dev-doctor-reporter@idoa/dev-doctor-cli-kit
It focuses only on Spark-sized PoC scope:
- local environment checks
- config validation
- RPC/indexer reachability
- basic workflow readiness
- plain-text and JSON reports
Quick start (local repo)
npm install
npm run build
npm run doctor -- --helpRun checks:
npm run doctor -- env
npm run doctor -- config --config ./ckb-doctor.config.json
npm run doctor -- rpc --config ./ckb-doctor.config.json
npm run doctor -- indexer --config ./ckb-doctor.config.json
npm run doctor -- workflow
npm run doctor -- report --json --config ./ckb-doctor.config.jsonRun without build:
npm run doctor:dev -- report --json --config ./ckb-doctor.config.jsonCLI commands
envconfigrpcindexerworkflowreport
Example output
Plain-text:
CKB Dev Doctor Report
=====================
PASS Developer environment
PASS Configuration
PASS RPC endpoint
WARN Indexer endpoint
PASS Workflow readiness
Summary: 4 pass, 1 warn, 0 fail, 0 skipJSON:
{
"summary": { "pass": 4, "warn": 1, "fail": 0, "skip": 0 },
"checks": [
{ "id": "env", "status": "pass" },
{ "id": "config", "status": "pass" },
{ "id": "rpc", "status": "pass" },
{ "id": "indexer", "status": "warn" },
{ "id": "workflow", "status": "pass" }
]
}Demo app
npm install
npm run demo:devOpen http://localhost:3000.
The demo is mock-data based and does not run local diagnostics in the browser.
Repository layout
src/CLI implementation and checkstests/Vitest testsdemo/Next.js + MUI demo appdocs/architecture notes
Validation commands
npm run build
npm run lint
npm run test
npm run typecheck