Skip to content

Cratis Chronicle clients by language

Chronicle in your language

One event-sourcing database, idiomatic clients

Cratis Chronicle stores events and builds read models on the server; your application uses a client in its own language. The clients communicate through gRPC, a remote procedure call protocol, using shared Protocol Buffers message definitions. Choose your language below for the package and setup guide. Client capabilities differ, so check the operations your feature needs before choosing.

The .NET SDK provides typed access to event stores and logs, with APIs for read models, projections, reducers and reactors. It also covers constraints, migrations, namespaces and hosting integration, including a .NET Aspire resource. Start with the core package:

Terminal window
dotnet add package Cratis.Chronicle

In an ASP.NET Core application, add Cratis.Chronicle.AspNetCore instead; it brings in the core SDK and the AddCratisChronicle / UseCratisChronicle hosting integration.

Use @cratis/chronicle from a TypeScript or Node.js application. It builds on the @cratis/chronicle.contracts gRPC contracts package and includes APIs for transactions, jobs, webhooks, OpenTelemetry and compliance features for personally identifiable information (PII). Install the client and its dependencies:

Terminal window
npm install @cratis/chronicle @cratis/fundamentals reflect-metadata

The client supports standard decorators (TypeScript 5.2 or later) and legacy decorators. Enable experimentalDecorators and emitDecoratorMetadata only for the legacy option; leave them unset for standard decorators. Use an ES module project. The TypeScript landing page lists the setup.

Kotlin and Java applications use the same JVM client, io.cratis:chronicle. Choose the core library or the Spring Boot starter for hosting integration; a testing library is also available.

build.gradle.kts
dependencies {
implementation("io.cratis:chronicle:<version>")
// Or, in a Spring Boot application:
implementation("io.cratis:chronicle-spring-boot-starter:<version>")
}

Replace <version> with the current release from Maven Central.

Add cratis_chronicle to your Mix dependencies for an Elixir application. The client supports transactions, optimistic concurrency checks, webhooks and reconnection.

mix.exs
defp deps do
[
{:cratis_chronicle, "~> <version>"}
]
end

Use the current version from Hex; mix hex.info cratis_chronicle prints it.

github.com/cratis/chronicle.go is the Go client for Chronicle. It supports typed event registration, connection with TLS and OAuth, single and atomic batch appends, and event history reads. Observers, projections, and automatic lifecycle recovery are not yet implemented.

Terminal window
go get github.com/cratis/chronicle.go@v0.11.0

v0.11.0 is the latest released tag checked on 2026-10-20.

A Python client for Chronicle is in development. It is not yet published to PyPI, so there is nothing to install yet — follow the repository for progress.

The client SDK docs describe the language-specific APIs over Chronicle’s shared gRPC contracts. A shared protocol does not mean every client exposes every feature; Go, for example, supports appending and reading events but not observers or projections. If your runtime is not listed above, you can implement the contracts directly.

Before installing a client, check Compatibility to pair it with a Chronicle kernel, the server runtime. Clients other than .NET have independent release schedules, and their major versions do not match the kernel’s. Then follow your language’s setup guide above to connect an application.