Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions profile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ Auditstream records **who** changed **what** at the database level with full `be

**No 24/7 consumer daemon. No WAL replication slots. No new infrastructure.**

`+3.2% (+5.1 µs/row)` durable PostgreSQL 19 UPDATE · `2.4M` PgBouncer tx with `0` actor leaks · [Benchmarks](https://auditstream.dev/docs/evidence/)
Single-row `UPDATE` throughput on PostgreSQL 19: `−7%` limited by the disk, `−73%` limited by the CPU · `2.4M` PgBouncer tx with `0` actor leaks · [Benchmarks](https://auditstream.dev/docs/evidence/)

→ **[auditstream.dev](https://auditstream.dev)** · **[Docs](https://auditstream.dev/docs/)** · **[Quickstart](https://auditstream.dev/docs/getting-started/)** · **[TypeScript SDK](https://auditstream.dev/docs/typescript/)** · **[Evidence](https://auditstream.dev/docs/evidence/)** · **[Spec v0.1.1](https://auditstream.dev/docs/contract/)**
→ **[auditstream.dev](https://auditstream.dev)** · **[Docs](https://auditstream.dev/docs/)** · **[Quickstart](https://auditstream.dev/docs/getting-started/)** · **[TypeScript SDK](https://auditstream.dev/docs/typescript/)** · **[Evidence](https://auditstream.dev/docs/evidence/)** · **[Specification](https://auditstream.dev/docs/contract/)**

---

## How it works

1. **Thin adapters attach the actor:** `@auditstream/node`, `@auditstream/prisma` (Prisma 7.1+), and `@auditstream/drizzle` (0.45 & 1.x) propagate identity via `AsyncLocalStorage.run()` and append an unpadded base64url `sqlcommenter` tag (`/*auditstream='...'*/`) — supporting humans, API keys, services, and AI agents acting `onBehalfOf` a user.
2. **Database triggers capture atomically:** Generated `SECURITY DEFINER` triggers write `before`, `after`, `changed`, and actor metadata into `auditstream.changes` (statement-level for `INSERT`/`DELETE`, row-level with `IS DISTINCT FROM` for `UPDATE`). Application roles receive `SELECT` only.
3. **One Rust CLI inspects and exports:** `auditstream init`, `verify`, `status`, `history`, and `export` (JSON Lines & CSV in v0.1) read committed windows via `xact_id < pg_snapshot_xmin()` so concurrent out-of-order commits are never skipped.
3. **One Rust CLI inspects and exports:** `auditstream init`, `verify`, `status`, `history`, and `export` (JSON Lines & CSV) read committed windows via `xact_id < pg_snapshot_xmin()` so concurrent out-of-order commits are never skipped.

---

Expand All @@ -30,8 +30,8 @@ Auditstream records **who** changed **what** at the database level with full `be
| 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 in v0.1 |
| **TypeScript SDK** | **Supported** | `@auditstream/*` v0.2.1 for Prisma 7, Drizzle, Next.js 16, Hono, and Express |
| **MySQL** | Evaluating | Not supported yet — PostgreSQL is the only supported database |
| **TypeScript SDK** | **Supported** | `@auditstream/*` for Prisma 7, Drizzle, Next.js 16, Hono, and Express |
| **Python SDK** | Planned | No native SDK yet — works today via [`psycopg` and SQL comments](https://auditstream.dev/docs/python/) |
| **Plain SQL** | **Supported** | Any language or driver (Go, Ruby, Java, `psql`) via [SQL comments or `set_config`](https://auditstream.dev/docs/plain-sql/) |

Expand All @@ -41,16 +41,16 @@ Auditstream records **who** changed **what** at the database level with full `be

| Repository | Description |
| :--- | :--- |
| [`auditstream/auditstream`](https://github.com/auditstream/auditstream) | Rust engine & CLI (`v0.1.0`), normative `spec/` (`v0.1.1`), conformance fixtures, handbook |
| [`auditstream/auditstream-js`](https://github.com/auditstream/auditstream-js) | TypeScript SDKs (`v0.2.1`): [`@auditstream/node`](https://www.npmjs.com/package/@auditstream/node), [`@auditstream/prisma`](https://www.npmjs.com/package/@auditstream/prisma), [`@auditstream/drizzle`](https://www.npmjs.com/package/@auditstream/drizzle) |
| [`auditstream/auditstream`](https://github.com/auditstream/auditstream) | Rust engine & CLI, normative `spec/`, conformance fixtures, handbook |
| [`auditstream/auditstream-js`](https://github.com/auditstream/auditstream-js) | TypeScript SDKs: [`@auditstream/node`](https://www.npmjs.com/package/@auditstream/node), [`@auditstream/prisma`](https://www.npmjs.com/package/@auditstream/prisma), [`@auditstream/drizzle`](https://www.npmjs.com/package/@auditstream/drizzle) |
| [`auditstream/site`](https://github.com/auditstream/site) | Documentation & site ([auditstream.dev](https://auditstream.dev)) |
| [`auditstream/homebrew-tap`](https://github.com/auditstream/homebrew-tap) | Official Homebrew formula (`brew install auditstream/tap/auditstream`) |

---

## Quick install

CLI `v0.1.0` · TypeScript SDKs `v0.2.1` · Spec `v0.1.1`
Versions: [CLI releases](https://github.com/auditstream/auditstream/releases) · [TypeScript SDK releases](https://github.com/auditstream/auditstream-js/releases) · [compatibility](https://github.com/auditstream/auditstream/blob/main/docs/handbook/releases.md#cross-repository-compatibility)

```sh
# Shell (macOS & Linux)
Expand All @@ -63,7 +63,7 @@ brew install auditstream/tap/auditstream
npm i -g auditstream

# Docker (multi-arch linux/amd64 + linux/arm64)
docker run --rm ghcr.io/auditstream/auditstream:0.1.0 --version
docker run --rm ghcr.io/auditstream/auditstream:latest --version

# TypeScript SDKs (or replace @auditstream/prisma with @auditstream/drizzle)
pnpm add @auditstream/node @auditstream/prisma
Expand All @@ -89,7 +89,7 @@ pnpm add @auditstream/node @auditstream/prisma
[badge-release]: https://img.shields.io/github/v/release/auditstream/auditstream?filter=auditstream-*&style=flat&label=release
[link-release]: https://github.com/auditstream/auditstream/releases/latest
[badge-spec]: https://img.shields.io/github/v/release/auditstream/auditstream?filter=spec-*&style=flat&label=spec&color=2f6fed
[link-spec]: https://github.com/auditstream/auditstream/tree/spec-v0.1.1/spec
[link-spec]: https://github.com/auditstream/auditstream/blob/main/spec/README.md
[badge-sonar]: https://img.shields.io/sonar/quality_gate/auditstream_auditstream?server=https%3A%2F%2Fsonarcloud.io&style=flat&label=SonarCloud
[link-sonar]: https://sonarcloud.io/project/overview?id=auditstream_auditstream
[badge-license]: https://img.shields.io/github/license/auditstream/auditstream?style=flat
Expand Down