Source for the Auditstream website and documentation — built with Astro 5 (static output), Content Collections (src/content/docs/), build-time Shiki dual-theme highlighting, and Pagefind static search.
| Repository | Role |
|---|---|
auditstream/auditstream |
Rust CLI & engine (init, status, verify, history, export), generated PostgreSQL triggers, and normative spec/ |
auditstream/auditstream-js |
ESM-only TypeScript adapters (@auditstream/node, @auditstream/prisma, @auditstream/drizzle) and runnable examples |
auditstream/auditstream-lab |
Integrated tests of the published CLI and SDK against real PostgreSQL and poolers |
auditstream/.github |
Organization profile and reusable workflows |
Requires Node.js 22.12+ and pnpm 12+.
pnpm install
pnpm dev # local dev server on http://localhost:4321
pnpm check # types, versions named in the pages, and security.txt
pnpm build # static build + Pagefind search index in dist/
pnpm preview # preview dist/ locally (including live Pagefind search)CI runs what the pages show. snippets/ compiles and runs the TypeScript with the published SDK and runs the Python, scripts/run-quickstart.mjs runs each tab of the home page, scripts/run-demo.mjs runs the local demo of Getting Started and the plain SQL page, scripts/run-install.mjs installs the CLI on macOS and Windows, and scripts/run-export.mjs runs it there against PostgreSQL. A new TypeScript or Python snippet needs a line in snippets/run.mjs.
The build writes /llms.txt and /llms-full.txt from the same pages for coding agents, and scripts/check-llms.mjs checks them. The rules for agents are in src/lib/llms.ts.
After a release, update the versions in the pages and in snippets/package.json. pnpm check lists them.
Deploy dist/ as a static site (Cloudflare Pages, Netlify, or GitHub Pages):
- Build command:
pnpm build - Output directory:
dist