<!-- https://tinyactors.dev/docs/ -->
# Documentation · tinyactors

Kind: reference. For: [Agent-platform engineer](https://tinyactors.dev/audiences/agent-platform.xml), [Workflow developer who tests](https://tinyactors.dev/audiences/workflow-tester.xml), [Tech lead who approves dependencies](https://tinyactors.dev/audiences/tech-lead.xml).
Voice: [Reference](https://tinyactors.dev/voices/reference.xml).

> Everything about tinyactors in one place: the quickstart, the ideas behind statecharts and actors, the guides, the command line, the reference and the design.

Start with one program that runs in five minutes. Then read the ideas, follow a guide for each task, and look up the rest.

<a id="start"></a>

## Start here

- **[Quickstart](https://tinyactors.dev/docs/quickstart/index.md)**: Install one package and run an order actor that retries its payment on its own, in Node.js, Python, a browser or C.
- **[Statecharts and actors in ten minutes](https://tinyactors.dev/docs/statecharts/index.md)**: States, events, transitions, timers and actors, with an order you can drive in the page.
- **[Build a team chat](https://tinyactors.dev/chat/index.md)**: A tutorial of nine steps, from one room to direct messages, each a program that runs.
- **[Build with a coding agent](https://tinyactors.dev/docs/agents/index.md)**: Give your agent the docs and the skill, and check what it writes in CI.

<a id="guides"></a>

## Guides for each task

- **[All guides](https://tinyactors.dev/guides/index.md)**: Writing and testing charts, connecting actors to your code, running a host in production and in the browser.
- **[Test your charts](https://tinyactors.dev/guides/testing/index.md)**: Advance a simulated clock and see how a WebSocket reacts when a reconnect attempt succeeds or fails.
- **[Keep waiting actors out of memory](https://tinyactors.dev/guides/hibernation/index.md)**: Two million actors ran with at most 1000 in memory and the rest in a database.
- **[Change the chart of running actors](https://tinyactors.dev/guides/migration/index.md)**: Add a new version to the running process, and move each actor to it with the state it reached.
- **[Journal and replay](https://tinyactors.dev/guides/journal/index.md)**: Record every input, and one loop rebuilds every actor after a crash.
- **[Recipes](https://tinyactors.dev/recipes/index.md)**: Example applications named after what people build: order fulfillment, billing, a job scheduler, an HTTP gateway and more.

<a id="cli"></a>

## Check and run charts from the command line

- **[The tinyactors command](https://tinyactors.dev/cli/index.md)**: Compile, check, compare, draw and run charts, and read snapshots offline.
- **[Tutorial](https://tinyactors.dev/cli/tutorial/index.md)**: From a draft chart with a misspelt event to a deploy you can compare.
- **[CI checks](https://tinyactors.dev/cli/guides/ci/index.md)**: Fail a build when a chart has an error or its behavior changed.

<a id="reference"></a>

## Look things up

- **[Command reference](https://tinyactors.dev/cli/commands/index.md)**: Every command of the tinyactors command, with its options and examples.
- **[@tinyactors/node API](https://tinyactors.dev/docs/node/index.md)**: Every class, function, interface and type of the Node.js and Bun package.
- **[Python API](https://tinyactors.dev/docs/python/index.md)**: Every class, function and constant of the tinyactors package for Python.
- **[The C library](https://github.com/tinyactors-dev/tinyactors/blob/main/tinyactors-core/docs/embedding.md)**: How to embed the core in C: the loop, lifetimes and memory.
- **[Changelog](https://tinyactors.dev/changelog/index.md)**: What changed in each release of each package.
- **[Memory, capacity and performance](https://tinyactors.dev/performance/index.md)**: What an actor costs, and the programs that measured it.

<a id="explanation"></a>

## Understand the design

- **[When to use tinyactors](https://tinyactors.dev/when-to-use/index.md)**: What it fits, its limits, what a crash keeps, and how it compares with Temporal, Durable Objects, Rivet and XState.
- **[Architecture](https://tinyactors.dev/architecture/index.md)**: How a host runs actors in your process, from the effects loop to the bytes of a snapshot.
- **[The command line and the libraries](https://tinyactors.dev/cli/why/index.md)**: When to reach for the command, and when for a library in your program.
- **[Why tinyactors exists](https://tinyactors.dev/about/index.md)**: Who makes it, and why.

<a id="demos"></a>

## See it run

- **[A million ants](https://tinyactors.dev/anthill/index.md)**: Two colonies in your browser, every ant an actor.
- **[Property testing](https://tinyactors.dev/property-testing/index.md)**: A thousand generated runs of a payment, checked against rules in the page.
- **[Telemetry](https://tinyactors.dev/telemetry/index.md)**: Every step of every actor as an OpenTelemetry span.
- **[Snapshot inspector](https://tinyactors.dev/inspector/index.md)**: Open a snapshot and read every actor in it.
