Skip to content

AuditKitDev/auditkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AuditKit

Audit logs for B2B SaaS

Open-source, tamper-evident, enterprise-ready audit logging.
Ship immutable, tenant-scoped audit trails in minutes.

Website · Docs · Issues


Quick Start

npm install @auditkit/sdk
import { 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' },
});

Features

  • 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

Architecture

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)

Self-Hosting

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 dev

Development

pnpm install
pnpm dev          # starts API + web concurrently
pnpm build        # production build
pnpm test:api     # API e2e tests
pnpm test:ui      # UI e2e tests

License

AGPLv3 — see LICENSE. The /ee directory requires a commercial license.