Documentation
Maintaining this wiki
Process so documentation stays equal to what is live on the site and API.
Golden rule
If it ships to production, the wiki ships with it.Docs live in apps/web/src/pages/docs/** and deploy vianpm run deploy:web to chatalyze.co/docs.
Two layers of truth
| Layer | Location | Audience |
|---|---|---|
| Public wiki (canonical UX) | apps/web/src/pages/docs/** | Operators, integrators, you |
| Nav registry | apps/web/src/lib/docs-nav.ts | Sidebar + index cards |
| Agent mirrors (optional summaries) | docs/wiki/** | Coding agents, offline |
| Deep engineering notes | docs/*.md, docs/adr/* | Implementers (not always public) |
When you must update docs
- New or renamed API route → API reference pages + root
routesin Worker - New dashboard page → Product → Dashboard table
- New alert code or default → Alerts catalog
- Auth / secret change → Essentials → Auth / Environments
- OnlyFansAPI vendor credit rule change → Essentials → Credits (re-check upstream)
- Deploy with new
health.version→ Changelog
Agent checklist (every PR that touches product)
- Does
docs-nav.tsneed a new page? - Update the public wiki Astro page(s)
- Update
docs/wiki/README.mdindex if structure changed - Update Worker
routesmap onGET /if API changed - Point API
docsfield athttps://chatalyze.co/docs npm run build:web— confirm/docs/**pages build
Style guide (match OnlyFansAPI quality bar)
- Lead with what the reader needs to do
- Tables for endpoints, flags, and costs
- Callouts for warnings, external dependencies, and live constraints
- Copy-pasteable
curlexamples against production hosts - Link to vendor docs for external systems; do not invent credit numbers
- Separate live vs shipped-in-repo / pending deploy when they diverge
Live probesWelcome + API overview + Changelog fetch production health/routes in the browser so readers can spot drift even if a static page is slightly stale.