cloudflare-durable-objects

Enable stateful edge applications with Durable Objects for global coordination.

22|1|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/itechmeat/llm-code --skill cloudflare-durable-objects-itechmeat
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cloudflare-durable-objects
Source: https://github.com/itechmeat/llm-code/tree/main/skills/cloudflare-durable-objects
Command: npx skills add https://github.com/itechmeat/llm-code --skill cloudflare-durable-objects-itechmeat

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Enable stateful edge applications with Durable Objects for globally consistent coordination across clients and regions.

Core Features & Use Cases

  • DurableObjectState access and lifecycle management with per-object storage
  • Storage backends: SQLite-backed SQL API and KV
  • WebSocket hibernation to keep connections alive at the edge
  • Alarms for scheduled tasks and RPC-based method invocation
  • Bindings and migrations to manage object lifecycles and schema evolution
  • Real-world use cases: real-time collaboration, chat services, and distributed coordination

Quick Start

Define a Durable Object class, configure wrangler bindings for your namespace, implement storage usage, and deploy to Cloudflare Workers to observe stateful behavior at the edge.

Frequently Asked Questions about cloudflare-durable-objects

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

FAQPage Schema
How do I build stateful applications with Cloudflare Workers?▼

Stateful Cloudflare Workers applications are built using Durable Objects to provide globally consistent coordination across clients and regions. This approach enables per-object storage and persistent state at the edge for real-time collaboration.

What is the best way to manage distributed state coordination in serverless edge apps?▼

Distributed state coordination in serverless edge apps is best managed using Durable Objects for globally consistent state synchronization. This provides a Durable Object API layer with per-object storage backends like SQLite and KV.

Does Cloudflare Workers support SQLite for per-object storage in Durable Objects?▼

Yes, Cloudflare Workers supports SQLite-backed SQL API for per-object storage in Durable Objects. This allows developers to manage stateful data locally within the object alongside KV storage backends.

How do I keep WebSocket connections alive at the edge without high costs?▼

WebSocket hibernation keeps connections alive at the edge by suspending idle Durable Objects while maintaining the WebSocket session. This reduces compute costs while preserving real-time communication state for chat and collaboration apps.

Can I schedule tasks and handle schema migrations in Cloudflare Durable Objects?▼

Yes, you can schedule tasks using alarms and handle schema evolution using migrations in Cloudflare Durable Objects. Alarms enable RPC-based method invocation for scheduled tasks, while bindings manage object lifecycles.

When do I need Durable Object bindings for my Cloudflare Workers project?▼

Durable Object bindings are needed when your Cloudflare Workers project requires stateful coordination, such as real-time chat rooms or collaborative documents. They provide a DurableObjectState API layer for managing per-object storage and lifecycle.