Show HN: Actor Kit – XState Machines for Cloudflare Workers

https://github.com/jonmumm/actor-kit
by jonathanrmumm • 2 years ago
6 0 2 years ago

Actor Kit is a library for running state machines in Cloudflare Workers, leveraging XState for robust state management. It provides a framework for managing the logic, lifecycle, persistence, synchronization, and access control of actors in a distributed environment.

Key features include:

- Persistent, distributed state management - Type-safe events and state with TypeScript and Zod - Real-time updates and seamless server-to-client state transfer - Access control and secure data management - Framework-agnostic with examples for Next.js and Remix integration - Actor lifecycle management in distributed environments - Support for real-time collaboration - State migration support

The project is in early development, and I'm seeking feedback on the ideas and APIs.

Cheers, Jon

Related Stories

Loading related stories...

Source preview

github.com