Cratis Samples gives you local examples to follow a recorded event, build a view from its history, or connect a typed backend to React. Choose the result you want below, then open that sample’s README for its setup and run commands.
Learn by running
Pick a journey. Open the code. Make it yours.
The samples keep the important parts close together: the intent, the events, the processing,
and—where the sample has a frontend—the generated contracts and React experience.
Create a deliberate reactor failure, then inspect it with the Cratis command-line interface (CLI) and Workbench. The exercise stops before repair.
These six sample applications use C# backends. If that is your host and you are new to Chronicle, start with Backend before Processing. For a guided implementation with TypeScript, Kotlin, Java, and C# backends, follow Build a full-stack feature. For a smaller first example in TypeScript or Elixir without the .NET SDK, use First event and First projection.
The six examples above use the .NET 11 SDK. Their React frontends also need Node.js 23 or newer: Idea Loom and Library use the repository’s Yarn toolchain, while Capstone uses npm. Chronicle examples need Docker; Processing, Capstone, and Operations Diagnosis use Docker Compose. Backend, Processing, and Operations Diagnosis use curl for their HTTP calls. Library also needs Bash for its launch script. Operations Diagnosis requires a Cratis CLI version supporting the commands in its README.
Use the selected README for the working directory, infrastructure, and startup order. These differ between samples; Idea Loom, for example, needs no Chronicle container. The full catalog below comes from the repository’s samples.json and lists prerequisites for the other examples. Open each sample’s README for its limits.
Learning track
Getting started
Meet Chronicle in a small application and follow an event from append to observation.
◆Start hereNone
Chronicle Backend
Append an immutable fact and read one event source's history through a focused HTTP API.
Chronicle
Configure one named Chronicle event store
Use ConceptAs and EventSourceId for clear domain values and identities
Read the stored history without introducing a projection
Learn event sourcing step by step: append events, project a read model, serve it through Arc, react to checkout, specify behavior, evolve events, protect commands, and prepare for production.
ChronicleArc
Append events to the event log and read one event source's history back
Declare a projection with model-bound attributes and read the read model it builds
Turn the same events and read model into an Arc command and query API
Run the selected sample unchanged first and check the result described in its README. When Chronicle is involved, use Workbench or the CLI to inspect the recorded event. If the sample builds a read model, compare that view with the event history that produced it.
Then change one behavior and follow the sample’s verification commands before running the changed flow again. This lets you see which parts of the backend and screen need to change together.
A focused example keeps one behavior visible. Capstone covers author registration and listing, not a complete library application. Library brings lending and membership together but still uses local development infrastructure. Neither is a production template; follow the selected README’s local-development assumptions before adapting it.
If you encounter a package-version mismatch, report the failure in the Samples repository with the sample path and version details. A successful documentation-site build does not verify your local sample run.
Build a full-stack featureRegister an author and trace the recorded event through to an updating React list.