Open-source, tamper-evident, enterprise-ready audit logging.
Ship immutable, tenant-scoped audit trails in minutes.
npm install @auditkit/sdkimport { AuditKit } from '@auditkit/sdk';
const auditkit = new AuditKit({ apiKey: 'ak_...' });
await auditkit.log({
action: 'document.updated',
actor: { id: 'user_123', email: 'alice@acme.com' },
target: { type: 'document', id: 'doc_456' },
context: { ip: '203.0.113.1' },
});- Tamper-proof — SHA-256 hash chain + Merkle tree proofs
- Tenant-scoped — each customer gets isolated, queryable logs
- Embeddable viewer — drop-in React component for your customers
- SIEM streaming — forward events to Splunk, Datadog, Elastic
- Multi-language SDKs — TypeScript, Python, Go, Java
- Self-hostable — Docker Compose, or use our managed cloud
- SOC 2 / ISO 27001 ready — compliance exports out of the box
apps/
api/ Hono API server (Fly.io)
web/ Next.js 15 dashboard + marketing (Vercel)
packages/
sdk/ TypeScript SDK
sdk-python/ Python SDK
sdk-go/ Go SDK
sdk-java/ Java SDK
react/ Embeddable audit log viewer
shared/ Shared types and validation
next/ Next.js middleware integration
hono/ Hono middleware integration
drizzle/ Drizzle ORM integration
ee/ Enterprise features (commercial license)
git clone https://github.com/AuditKitDev/auditkit.git
cd auditkit
cp .env.example .env
docker compose -f docker/docker-compose.yml up -d
pnpm install && pnpm build && pnpm devpnpm install
pnpm dev # starts API + web concurrently
pnpm build # production build
pnpm test:api # API e2e tests
pnpm test:ui # UI e2e testsAGPLv3 — see LICENSE. The /ee directory requires a commercial license.
