Overview
Database-level audit trails — triggers capture every row change; your application only passes who acted.
On this page
01 · Capture
Generate DB triggers
One CLI command generates
auditstream.changes and its capture triggers.02 · Attribute
Attach the actor
Thin SDKs or plain SQL tag outgoing writes with user, service, or AI agent metadata.
03 · Operate
Verify & export
Gate CI against trigger drift, inspect diffs in the terminal, and stream lossless batches.
Support status
| Target | Status | Details |
|---|---|---|
| PostgreSQL | Supported & tested | PostgreSQL 15–19 (verified 15.20–19.0), PgBouncer 1.26, Neon, and Supabase |
| MySQL | Evaluating | Not supported yet — PostgreSQL is the only engine |
| TypeScript SDK | Supported | @auditstream/* v0.5.0 for Prisma 7, Drizzle, Next.js 16, Hono, and Express |
| Python SDK | Planned | No native SDK yet — works today via psycopg and SQL comments |
| Plain SQL | Supported | Any language or driver (Go, Ruby, Java, psql) via SQL comments or set_config |
Choose your path
Get Started
Getting Started
Install the CLI, run a 60-second local demo, and wire your first app.
SDKs & Languages
TypeScript
Use @auditstream/* v0.5.0 with Prisma 7, Drizzle, Next.js 16, Hono, and Express.
SDKs & Languages
Python
No native SDK yet — attribute database writes from psycopg today; native Python SDK planned.
SDKs & Languages
Plain SQL
Attribute writes from Go, Ruby, Java, or psql using SQL comments or set_config.
Operate
CLI & Day-2 Operations
Run init, status, verify, history, and export, configure TOML, and gate CI.
Operate
Cloud, Poolers & Security
Deploy behind PgBouncer, Neon, Supabase, or RDS Proxy with least-privilege roles.
Reference
How Capture Works
Hybrid triggers, actor resolution precedence, history schema, and xid8 export cursors.
Reference
Wire Format & Spec
Actor JSON schema, unpadded base64url comment format, and strict validation rules.
Reference
Benchmarks & Limits
Live PostgreSQL 19 and PgBouncer 1.26 stress numbers, Node 26 timings, and limits.
Reference
Comparisons
Compare Auditstream against supa_audit, Bemi, WorkOS, DIY triggers, pgaudit, and Debezium CDC.
Reference
Roadmap
Capability milestones toward v1.0, demand-gated work, and explicit non-goals.