Overview
Production integrations for @absolutejs/audit. Install only the adapters your application needs; every package implements the core audit contracts without coupling the application to a storage or web framework.
audit-adaptersworkspacealphaObservabilityMonorepo root for @absolutejs/audit storage adapters. Subpackages live in ./<name>/ and publish independently.
git clone https://github.com/absolutejs/audit-adapters.gitProduction integrations for @absolutejs/audit. Install only the adapters your application needs; every package implements the core audit contracts without coupling the application to a storage or web framework.
Package — Purpose
@absolutejs/audit-elysia — Emits one structured audit event for every Elysia request, including error paths and optional OpenTelemetry correlation.
@absolutejs/audit-postgres — Durable PostgreSQL audit history with Drizzle and tagged-template adapters, JSONB metadata, and indexed queries.
@absolutejs/audit-s3 — Buffered JSONL audit archives for S3-compatible storage, including R2, B2, and MinIO.
Use the Elysia adapter at the request boundary, PostgreSQL when operators need searchable history, and S3-compatible storage for inexpensive long-term or WORM retention. Applications can compose multiple sinks when they need both operational queries and compliance archives.
Each package has its own README with setup, configuration, and operational guidance.
3 public packages and 0 private workspace projects are versioned and developed together.
Outcomes
Production integrations for @absolutejs/audit. Install only the adapters your application needs; every package implements the core audit contracts without coupling the application to a storage or web framework.
Package — Purpose
Use the Elysia adapter at the request boundary, PostgreSQL when operators need searchable history, and S3-compatible storage for inexpensive long-term or WORM retention. Applications can compose multiple sinks when they need both operational queries and compliance archives.
Hardening checklist
Follow in order
Use the Elysia adapter at the request boundary, PostgreSQL when operators need searchable history, and S3-compatible storage for inexpensive long-term or WORM retention. Applications can compose multiple sinks when they need both operational queries and compliance archives.
bun add @absolutejs/audit @absolutejs/audit-elysia @absolutejs/audit-postgres3 public packages and 0 private workspace projects are maintained in this repository.
Public package — Elysia plugin emitting one structured audit event per request into @absolutejs/audit. Wires into onRequest + onAfterResponse so success AND error paths are captured. Orthogonal to @elysiajs/server-timing (perf headers) and @elysiajs/opentelemetry (sampled tracing); optionally correlates with the active OTel trace id.
Public package — Postgres-backed AuditSink for @absolutejs/audit with first-class Drizzle and tagged-template adapters, native JSONB metadata, and indexed history.
Public package — S3-compatible AuditSink for @absolutejs/audit. Buffered JSONL writes to AWS S3 / Cloudflare R2 / Backblaze B2 / MinIO. Time-sortable object keys; WORM-bucket-friendly for compliance retention.