What problem does it solve?
It helps you build and review stateful, strongly coordinated application logic on Cloudflare’s edge without turning concurrency, storage, and routing into guesswork.
Core Features & Use Cases
- Durable Object design guidance: Choose when Durable Objects are appropriate and structure coordination around the right “coordination atoms” (e.g., per room/game/user).
- Correct routing & identity patterns: Use deterministic instance selection (getByName, idFromName) and apply appropriate stub creation strategies.
- Production-grade implementation rules: Persist primary data with Durable Objects SQLite storage, initialize with blockConcurrencyWhile only during setup, prefer RPC methods over fetch, and structure alarms and WebSocket handling safely.
- Testing and review support: Validate behavior with Vitest using @cloudflare/vitest-pool-workers and apply best-practice review heuristics for concurrency and storage safety.
Quick Start
Ask it to help you implement a Durable Object RPC method that stores per-entity state in SQLite, schedules a per-instance alarm, and provides a Vitest test plan for the method and alarm behavior.