Logo
Logo

GenesisDB

GenesisDB is an open source event sourcing database. One static binary, CloudEvents native, hash chained, GDPR ready.

GenesisDB is an open source event sourcing database. It stores every change of your application as an immutable event, keeps the full history verifiable through a SHA-256 hash chain, and answers queries over that history with its own query language, GDBQL.

It ships as one static Go binary without runtime dependencies, speaks plain HTTP and JSON, and is licensed under MIT. Every feature is included: there are no editions, license keys or event limits.

What you get

  • CloudEvents native. Every event is a CloudEvents 1.0 record in a hierarchical subject tree such as /customer/42/address.
  • Atomic commits with preconditions. A batch of events is published all at once, guarded by isSubjectNew, isSubjectExisting or any GDBQL condition.
  • Fetch and subscribe. Read a subject with all of its descendants in commit order, bounded by event IDs, or subscribe to it over Server-Sent Events.
  • GDBQL. Filters, ordering, grouping, aggregates, projections and subqueries over events, see Query Language.
  • Schemas. Optional JSON schemas per event type, enforced on commit.
  • Verifiable history. Every event is chained to its predecessor. GET /api/v2/admin/audit verifies the whole store.
  • GDPR ready. Store personal data as reference payloads and erase it later with one request. The hash chain stays valid and an audit trail is written.
  • Operations. Logical backup and restore, index rebuild, Prometheus and OpenTelemetry metrics, read, write and administrator tokens, TLS.
  • Embeddable. store.Open(dir) runs the database inside your own Go program, see Embedded in Go.

Where to go next

  • Quickstart: run GenesisDB and commit the first events in two minutes.
  • HTTP API: every route, request body and status code.
  • SDKs: official clients for JavaScript/TypeScript, Go, Python, Java, .NET, Rust, Swift and PHP.
  • Upgrade from 1.x: GenesisDB 2 opens 1.x data directories and restores 1.x backups.

Open source

The source code, issues and releases live on GitHub. Contributions are welcome, see Contributing.

Explore the docs