Skip to main content
Lodger is audit evidence infrastructure for products that need records customers, auditors, and internal reviewers can inspect later. Send structured events from your backend. Lodger records when it received them, stores provenance such as API key and request context, chains event hashes, and returns receipts you can cite in support tickets, compliance reviews, and customer disputes.

What you can build

  • Admin and security audit logs that are separate from debug logging.
  • Customer-facing activity history filtered to records marked userVisible.
  • Consent history tied to published policy versions.
  • Portable evidence ZIPs with batched records, receipts, consent rows, and policy snapshots.
  • Receipt lookup pages that prove one record still matches the workspace chain.

First integration

Install the SDK, create a scoped API key, then write your first event from a server-side runtime.
bun add @lodger/sdk
import { Lodger } from "@lodger/sdk"

const lodger = new Lodger({
  apiKey: process.env.LODGER_API_KEY!,
  workspaceId: process.env.LODGER_WORKSPACE_ID!,
  projectId: "core",
  environment: "production",
})

await lodger.event("organization.member.removed", {
  actor: { id: user.id, type: "user", email: user.email },
  target: { id: member.id, type: "organization_member" },
  metadata: { organizationId: organization.id },
})
Start with the quickstart, then define a small event catalog before sending production traffic.