◊ init-book-api

HTTP proxy for INIT · the framework book. Nine chapters, chapter progress tracker, SVG diagrams — as REST endpoints.

Run

npm install -g @ai-native-solutions/init-book-api
init-book-api                        # listens on :8791
# or:
docker compose up -d

Endpoints

methodpathreturns
GET/tocTOC + progress
GET/chapter/:indexone chapter (1..9)
POST/progresssave read state
GET/diagram/:nameSVG
GET/health{ ok }

Examples

curl http://localhost:8791/toc
curl http://localhost:8791/chapter/3
curl -X POST http://localhost:8791/progress -d '{"chapter":1}' -H 'content-type: application/json'
curl 'http://localhost:8791/diagram/bloom-radial?bloom=4,7,7,6,5,4,3&label=me' > bloom.svg

v1.0.0 · MIT · AI-Native Solutions