durable-objects

Develop and review Cloudflare Durable Objects with Workers, wrangler, and Vitest.

5|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/lidge-jun/cli-jaw-skills --skill durable-objects-lidge-jun
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: durable-objects
Source: https://github.com/lidge-jun/cli-jaw-skills/tree/main/durable-objects
Command: npx skills add https://github.com/lidge-jun/cli-jaw-skills --skill durable-objects-lidge-jun

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables the creation and management of stateful, coordinated applications on Cloudflare's edge, solving the challenge of building real-time, consistent distributed systems.

Core Features & Use Cases

  • Stateful Applications: Build chat rooms, multiplayer games, booking systems, and more.
  • Edge Computing: Deploy logic close to users for low latency.
  • Coordination: Implement RPC methods, alarms, WebSockets, and SQLite storage.
  • Use Case: Develop a real-time collaborative document editor where changes are instantly reflected for all users, leveraging Durable Objects for state management and WebSockets for communication.

Quick Start

Use the durable-objects skill to create a new Durable Object class for managing user sessions.

Frequently Asked Questions about durable-objects

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

FAQPage Schema
How do I build stateful applications on Cloudflare Workers?

To build stateful applications on Cloudflare Workers, you can use Durable Objects to manage state, handle concurrency, and coordinate real-time interactions like WebSockets and RPC methods directly on the edge.

What are Cloudflare Durable Objects used for in edge computing?

Cloudflare Durable Objects are used in edge computing to provide low-latency state management and coordination for distributed systems, enabling use cases like chat rooms, multiplayer games, and collaborative document editors.

How do I configure wrangler for Cloudflare Durable Objects?

Configuring wrangler for Cloudflare Durable Objects involves defining the Durable Object bindings in your wrangler configuration file to connect your Workers integration, enabling state management and RPC capabilities.

Can I test Cloudflare Durable Objects with Vitest?

Yes, you can test Cloudflare Durable Objects with Vitest to validate state management, WebSocket connections, and RPC methods, ensuring your stateful edge applications function correctly before deployment.

Does Cloudflare Durable Objects support SQLite storage and alarms?

Yes, Cloudflare Durable Objects support SQLite storage for persistent state and alarms for scheduled tasks, allowing you to build coordinated applications with robust background processing and data consistency.

What is the best way to handle real-time WebSockets on the edge?

The best way to handle real-time WebSockets on the edge is using Cloudflare Durable Objects to maintain persistent connections and coordinate state changes instantly across users, ensuring low latency and consistent data synchronization.