Choose a Cratis application architecture
The Cratis showcase helps you choose an application architecture by the result you need: a typed React screen, recorded business history, or a way to inspect processing failures. Use the reference shapes to decide where to start, then follow a guide or run a sample to explore that choice.
Reference shapes
Section titled “Reference shapes”These are architecture patterns, not separate downloadable applications. For a new information system, Cratis recommends Chronicle, Arc, and Components together. You can also adopt a boundary independently. Arc separates commands, which request changes, from queries, which read data: Command Query Responsibility Segregation (CQRS). Chronicle records facts as events and derives read models, views shaped for queries. Components uses Arc’s generated TypeScript clients to connect React forms and views to the backend.
| Shape | Result you need | Start with |
|---|---|---|
| Full-stack Cratis | Keep the facts behind a feature and show the resulting view in React. | Build a full-stack feature walks through author registration; the Capstone sample contains the runnable C# version. |
| Chronicle-first service | Record what happened and read the history before adding a frontend. | Chronicle getting started covers setup; Chronicle Backend provides a small HTTP example. |
| Arc over current-state storage | Keep a typed command/query boundary where current state is enough and you do not need event history. | CQRS without event sourcing explains the choice; Idea Loom demonstrates it with an in-memory store. |
| Components frontend | Build command forms and query-backed views against an existing Arc backend. | Components getting started assumes generated Arc clients, called proxies, and a running backend; it does not supply that backend. |
| Existing system adoption | Introduce one feature while the rest of your application keeps its existing path. | Adopting Cratis helps you choose a boundary, such as one business area with its own model and vocabulary. |
| Operational inspection | Find the event and processing failure behind a missing result before attempting repair. | Operations Diagnosis creates a known local failure for read-only inspection; the command-line interface (CLI) guide covers the commands. |
Sample applications
Section titled “Sample applications”Start with Capstone when you want to trace one feature: register an author, record the event, and see the projected author list update in React. It contains that slice, not a complete library system. Move to Library to explore separate lending and membership applications started together locally by Aspire. Some Library backend flows have no dedicated screen.
These examples are C# backends with React frontends. Both need the .NET 11 SDK, Node.js 23 or newer, and Docker. Capstone uses npm and Docker Compose; Library uses the repository’s Yarn toolchain and a Bash launch script. Follow each README’s startup order and use its local credentials only for development. The samples are learning projects, not production templates.
For a smaller backend-only example or a different learning goal, use the Samples roster. The roster lists prerequisites and links to each sample’s source and README. Read the README for its limits before choosing a starting point.
Add your example
Section titled “Add your example”If you have a sample, architecture note, migration story, or teaching example that would help other teams, use Feedback and suggestions or open a documentation issue.