W3C SCXML charts meet code at events
Each chart is a W3C SCXML document rather than a proprietary format.
Your code meets tinyactors only at event boundaries: inputs go in, and effects come out to your handlers.
tinyactors embeds SCXML actors on your event loop across Node.js, Python, browsers and C. Your code owns the process, store, effects and cross-host placement while the core passes 191 W3C tests.
tinyactors fits when you need memory density, SCXML charts, event-based effects, simulated-clock tests and one core across runtimes.
invoke runs long operations per state, and QuickJS sandboxes user-uploaded charts.SimulatedClock moves only when the test moves it: a timeout of an hour takes no time. A payment that retries every 30 seconds runs all three attempts in milliseconds, alongside property tests.tinyactors stops at SCXML charts inside single hosts under active development with frequent breaking changes.
Actors live in process memory, so a crash stops every actor and keeps only what your program saved.
Host.restoreHost.restore runs a snapshot in this process or another with variables, queued events and pending timers. One snapshot holds two million actors in 165 MB.Charts, event boundaries and the MIT license move across runtimes, whereas snapshots require matching memory layout.
Each chart is a W3C SCXML document rather than a proprietary format.
Your code meets tinyactors only at event boundaries: inputs go in, and effects come out to your handlers.
The C core passes all 191 automatic tests of the W3C SCXML conformance suite.
Every binding runs the same suite across Node.js, Python, C and browsers.
Source:Memory, capacity and performance, "Correct by the standard"W3C, "State Chart XML (SCXML)"
Every package is MIT licensed, allowing you to use, change and ship tinyactors while keeping its copyright and permission notice.
Source:tinyactors, LICENSE
Snapshots and blobs use tinyactors' own format, and a snapshot restores only on a build with the same memory layout.
Keep data that must last in your own database.
Source:Snapshots, "Restore with the options the snapshot had"
Temporal, Durable Objects and Rivet manage persistence or placement, whereas XState is inspired by SCXML.
Self-hosted Temporal runs Temporal Server and persistence stores on Docker, Kubernetes or by hand.
Your program creates a tinyactors host object directly for tests and runtime, handling journaling and cross-host transport.
tinyactors compared with Temporal sets the two side by side: tests, crashes and running changes.
Source:Temporal, "Temporal Service"Temporal, "Self-hosted Temporal Service guide"
Cloudflare describes a Durable Object as a Worker that combines compute with storage, placed near its first request.
A tinyactors actor runs inside any server or browser tab your program operates, with storage under your control.
tinyactors compared with Durable Objects sets the two side by side: idle sessions, tests and deploys.
Rivet describes its actors as durable processes in your backend, placed by Rivet Cloud or your control plane.
A tinyactors actor stays in the host that spawned it, and your program routes across hosts.
tinyactors compared with Rivet sets the two side by side: placement, sleeping actors and deploys.
Source:Rivet, "Actors"
XState's README says it is inspired by the SCXML specification.
tinyactors runs SCXML documents themselves, the same chart in every language, and the C core passes 191 W3C tests.
tinyactors compared with XState sets the two side by side: the format, populations and running changes.
Source:XState, README.mdMemory, capacity and performance, "Correct by the standard"