https://github.com/tom-sherman/xstate-cloudflare-workers
https://github.com/tom-sherman/xstate-cloudflare-workers
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tom-sherman/xstate-cloudflare-workers
- Owner: tom-sherman
- Created: 2022-05-15T17:17:23.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-04T18:50:25.000Z (about 3 years ago)
- Last Synced: 2025-03-26T10:21:15.480Z (3 months ago)
- Language: TypeScript
- Size: 61.5 KB
- Stars: 20
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# XState Cloudflare Durable Objects
XState + Durable Objects = 🚀
A collection of example showing how to use and deploy XState in a Cloudflare Workers environment.
## Examples
### [Donuts](/donuts/)
A simple state machine deployed into a Durable Object. Uses only pure transitions and is implemented using `machine.transition(event)`.
### [Async Counters](/async-counter/)
Demonstrates performing async work in the machine. Uses Durable Objects built in concurrency management to queue concurrent events and prevent race conditions.
### More coming soon...
Still Todo: actors, multiple workers, type safety across workers, DO alarms...