Deep dives

One part at a time

Each chapter explains one part of Chatto in detail. Read them in sequence, or go to the part that you want to understand. Each chapter names the records that decided how the part works.

  1. One program How one executable file contains the Chatto server, its data store, and the web app. 4 min
  2. The log of facts How Chatto records each change as a fact in one ordered log, and how an append stays safe. 5 min
  3. Projections How Chatto computes its current state from the log, and how a writer sees its own write. 5 min
  4. How changes arrive live How a committed change reaches each connected app through one WebSocket, with a permission check for each event. 5 min
  5. Who may do what How roles, scopes, the owner override, and membership decide each action, and how a command checks them safely. 5 min
  6. Encryption and real deletion How keys for each user protect message text and personal data, and how account deletion destroys those keys. 5 min
  7. Work after the request How Chatto runs slow work as durable background jobs that survive a restart and stay visible when they fail. 5 min
  8. The client How one TypeScript client keeps server data current for the web app, for bots, and for other frontends. 5 min
  9. More than one process How several Chatto processes share one NATS cluster and stay correct without a leader or an in-process lock. 5 min
Esc