durable-objects

Configure Cloudflare Workers Durable Objects with SQLite storage and RPC methods.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/NAinfini/Guild_Management --skill durable-objects
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: durable-objects
Source: https://github.com/NAinfini/Guild_Management/tree/main/.kilocode/skills/durable-objects
Command: npx skills add https://github.com/NAinfini/Guild_Management --skill durable-objects

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Durable Objects provide stateful coordination at the edge by offering per-entity storage, deterministic routing, and RPC/WebSocket capabilities for scalable apps like chat rooms or multiplayer games.

Core Features & Use Cases

  • One DO per chat room, game instance, or user to coordinate state and enforce consistency.
  • RPC methods, alarms, per-entity storage with SQLite, and WebSocket support for real-time interactions.
  • Use cases: chat rooms, collaborative apps, booking systems, and live dashboards.

Quick Start

Interact with a DO by name in your Worker code. Example: const stub = env.MY_DO.getByName("room-1"); await stub.yourRpcMethod("payload"); This uses RPC methods defined on the DO and assumes wrangler setup with a durable_object binding named MY_DO.

Frequently Asked Questions about durable-objects

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

FAQPage Schema
How do I maintain per-entity state at the edge for a multiplayer game or chat room?

Durable Objects provide per-entity state coordination at the edge by offering deterministic routing and SQLite-based storage. Each game instance or chat room gets a single DO to enforce consistency and manage state lifecycle independently.

What is the best way to handle real-time WebSocket connections in Cloudflare Workers?

Durable Objects handle WebSocket connections in Cloudflare Workers by providing per-entity storage and RPC methods. A single DO instance manages WebSocket connections for a specific room or user, ensuring real-time state coordination across clients.

How do I call a Durable Object by name in a Cloudflare Worker?

Call a Durable Object by name using the getByName method on your binding, such as env.MY_DO.getByName("room-1"), then invoke RPC methods like await stub.yourRpcMethod("payload") after configuring the wrangler setup with a durable_object binding.

Does Cloudflare Workers support SQLite storage for per-entity state coordination?

Cloudflare Workers supports SQLite-based storage for Durable Objects, enabling per-entity state persistence at the edge. This storage model allows each DO instance to maintain isolated state for chat rooms, booking systems, or collaborative apps.

Can I use alarms and RPC methods with Durable Objects for scheduled state coordination?

Durable Objects support alarms and RPC methods for scheduled and on-demand state coordination at the edge. Alarms trigger time-based actions within a DO, while RPC endpoints handle method invocations like getByName and idForName for lifecycle management.

When should I not use Durable Objects for edge state coordination?

Durable Objects are not ideal for stateless request handling or scenarios lacking per-entity coordination needs. If your app requires no persistent state, real-time WebSocket coordination, or isolated per-entity storage, standard Cloudflare Workers without DO bindings are simpler.