Skip to content

Installation

EventSourcingKit is published as a single NuGet package. You add it together with EventSourcingDb, the client for the database it builds on, so a project needs two packages in total.

Prerequisites

EventSourcingKit targets .NET 10, so you need the .NET 10 SDK. You also need a running EventSourcingDB instance, which you set up in Running EventSourcingDB.

Adding the Packages

Add both packages to your project with the .NET CLI:

dotnet add package EventSourcingDb
dotnet add package EventSourcingKit

EventSourcingKit references the EventSourcingDb client internally, but you add it explicitly because you configure the database connection through it.

What You Get

The EventSourcingKit package contains everything you need to store, replay, and project events: the event store, event discovery, reducers, projections, and the background observer. The EventSourcingDb package contains the HTTP client that talks to your EventSourcingDB instance.

Everything is wired up through Microsoft's dependency injection, which you do in Registering EventSourcingKit.

For More Information