◊ 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
| method | path | returns |
|---|---|---|
| GET | /toc | TOC + progress |
| GET | /chapter/:index | one chapter (1..9) |
| POST | /progress | save read state |
| GET | /diagram/:name | SVG |
| 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