durable-objects

Coordinate stateful edge logic with Cloudflare Durable Objects.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/ecomm360-sl/isaacbosch-emdash-web --skill durable-objects-ecomm360-sl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: durable-objects
Source: https://github.com/ecomm360-sl/isaacbosch-emdash-web/tree/main/.agents/skills/durable-objects
Command: npx skills add https://github.com/ecomm360-sl/isaacbosch-emdash-web --skill durable-objects-ecomm360-sl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Cloudflare Durable Objects coordinate stateful logic at the edge, enabling deterministic per-entity coordination, consistent storage, and real-time interactions across distributed workers.

Core Features & Use Cases

  • One Durable Object per logical coordination unit (chat rooms, games, or users) to maintain state and coordinate RPC methods.
  • SQLite storage support for durable state, alarms for scheduled tasks, and WebSocket support for persistent connections.
  • Guidance for wrangler configuration, migrations, testing with Vitest, and best practices for initialization and observability.

Quick Start

Initialize a Durable Object namespace, implement a class extending DurableObject, and expose RPC-style methods for operations.

Frequently Asked Questions about durable-objects

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

FAQPage Schema
How do I coordinate stateful logic at the edge using Cloudflare Durable Objects?

You coordinate stateful logic at the edge by implementing a Durable Object class that extends DurableObject, using deterministic routing with getByName to maintain per-entity state and expose RPC methods.

How does SQLite-backed storage work within a Durable Object?

SQLite-backed storage within a Durable Object provides durable state persistence for each logical coordination unit, ensuring consistent data storage and enabling reliable scheduled tasks via alarms.

What is the best way to test Durable Objects and configure wrangler migrations?

The best way to test Durable Objects and configure wrangler migrations is using Vitest for testing alongside wrangler configuration, ensuring proper initialization and observability for per-entity lifecycles.

Can I use WebSockets and RPC methods together in a Cloudflare Durable Object?

Yes, you can use WebSockets and RPC methods together in a Cloudflare Durable Object to enable persistent connections and coordinate real-time interactions across distributed workers.

When should I use Durable Objects for per-entity coordination instead of standard Workers?

Use Durable Objects for per-entity coordination when you need deterministic routing, consistent SQLite-backed storage, and real-time interactions across distributed workers for units like chat rooms or games.

Why does my Durable Object fail to maintain state consistently across distributed workers?

Durable Objects maintain state consistently by enforcing deterministic routing with getByName and SQLite-backed storage, so failures often stem from improper initialization or incorrect wrangler migration configurations.