Data
The web app reads the canonical published SQLite store written by the pipeline's
publish stage. There is no source-file read path; what you see in the
Explorer is what is in the store.
Current store
Read live from the store this server is pointed at.
- Worlds
- —
- Characters
- —
- Cases
- —
- Source documents
- —
- Entities
- —
Read the data over HTTP
Public endpoints reflect current store rows. They are read-only and take no authentication.
| Endpoint | Returns | Try it |
|---|---|---|
/api/public/stats |
Corpus counts and every distribution shown on Statistics. | open |
/api/public/cases |
Case summaries with facets. Accepts limit and filter params. |
sample of 20 |
/api/public/universes |
Worlds present in the store. | open |
/api/public/search |
Case search by text, domain, capability, regime, and evidence. | example query |
/api/public/schema |
The published object and field reference behind the Schema page. | open |
Pointing at a different store
Set NPCBANK_PUBLISH_DB to the SQLite file you want to serve, then start the
server. The pipeline writes this same file, so a fresh publish is visible on reload.
NPCBANK_PUBLISH_DB=/path/to/npcbank.sqlite3 npm run dev
Preview status
This site is a working preview of NPCBank. It reads the current SQLite store, but the corpus and its figures may still change before the formal 1.0.0 release. Internal schema identifiers remain available on the Schema page for machine validation.