durable-objects

Coordinate Durable Objects on Cloudflare Workers with SQLite storage and Vitest testing.

Updated Feb 18, 2026
One-click install
npx skills add https://github.com/daveio/syn-horse --skill durable-objects-daveio
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: durable-objects
Source: https://github.com/daveio/syn-horse/tree/main/.agents/skills/durable-objects
Command: npx skills add https://github.com/daveio/syn-horse --skill durable-objects-daveio

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Durable Objects provide per-entity stateful coordination at the Cloudflare edge, enabling predictable routing, isolated execution, and reliable storage for distributed applications.

Core Features & Use Cases

  • One DO per logical unit (chat room, game session, user) to ensure strong consistency and scalable coordination
  • RPC-style methods exposure with SQLite storage support, migrations, and alarms for scheduled tasks
  • Real-world scenarios include real-time collaboration, multiplayer coordination, and per-entity state tracking across edge deployments

Quick Start

Set up a Durable Object namespace and initialize an instance to persist per-entity state.

Frequently Asked Questions about durable-objects

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage per-entity state at the Cloudflare edge?▼

Durable Objects provide per-entity stateful coordination at the Cloudflare edge by ensuring predictable routing, isolated execution, and reliable SQLite storage for distributed applications.

How do I set up real-time coordination for multiple game sessions using Workers?▼

You can set up real-time coordination by assigning one Durable Object per logical unit like a game session, exposing RPC-style methods to ensure strong consistency and scalable multiplayer coordination.

Does Cloudflare Durable Objects support SQLite storage and scheduled tasks?▼

Yes, Cloudflare Durable Objects support SQLite storage, database migrations, and alarms for scheduled tasks to persist per-entity state and trigger future operations reliably.

How do I test Durable Objects initialization patterns and RPC interactions?▼

You can test Durable Objects initialization patterns and RPC interactions using Vitest, validating edge state logic, DO bindings, and SQLite storage behavior before deployment.

When should I use Durable Objects instead of standard stateless Workers?▼

Use Durable Objects instead of standard stateless Workers when your application requires strong consistency, isolated execution per entity, or real-time collaboration across edge deployments.