Architecture
Local setup
1
Install and generate types
2
Configure secrets
Copy
.dev.vars.example to .dev.vars and fill in your WorkOS credentials:3
Run the dev server
Tests and checks
vacuum script extracts the live OpenAPI spec from the built Worker and lints it with vacuum — CI requires zero errors and zero warnings, so every endpoint ships with complete descriptions and examples.
To regenerate the spec that powers this documentation’s API reference:
Deployment
CI (GitHub Actions) verifies every push — typecheck, lint, tests, build, and the vacuum spec gate — and deploysmain to Cloudflare Workers after applying D1 migrations. Manual deploys are one command:
DOC_ROOM Durable Objects host the collaborative sessions, D1 holds relational data and the FTS5 search index, and R2 stores uploads. The production deployment lives at scribe.skeptrune.com on a custom domain route.