durable-objects

Create and review Cloudflare Durable Objects with RPC, SQLite, alarms, and WebSockets.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables the creation and review of stateful, coordinated applications on Cloudflare's edge, addressing complex needs like real-time interactions and persistent per-entity storage.

Core Features & Use Cases

  • Stateful Coordination: Ideal for chat rooms, multiplayer games, and booking systems.
  • RPC & WebSockets: Implement robust communication patterns.
  • Data Persistence: Utilize SQLite storage for reliable data management.
  • Testing & Configuration: Covers Workers integration, wrangler configuration, and Vitest testing.
  • Use Case: Develop a real-time collaborative document editing system where each document is managed by a Durable Object, ensuring all users see the latest changes instantly and safely.

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?

Durable Objects handle stateful coordination on Cloudflare Workers by managing per-entity SQLite storage, implementing RPC methods, and maintaining WebSocket connections for real-time interactions.

How do I use SQLite storage in Cloudflare Durable Objects?

Use SQLite storage in Cloudflare Durable Objects to manage persistent data within your stateful applications, enabling reliable per-entity data management for use cases like collaborative document editing.

Can I use Vitest to test Cloudflare Durable Objects and WebSockets?

Yes, you can use Vitest to test Cloudflare Durable Objects and WebSockets by integrating Workers configurations and wrangler setups, ensuring comprehensive development and accurate review of your stateful logic.

What is the best way to coordinate real-time user sessions at the edge?

The best way to coordinate real-time user sessions at the edge is using Cloudflare Durable Objects, which provide robust WebSocket support and RPC communication patterns for applications like multiplayer games and chat rooms.

Does this approach support RPC methods and alarms for stateful coordination?

Yes, this approach supports RPC methods and alarms for stateful coordination, allowing you to trigger scheduled tasks and implement robust communication patterns within your Cloudflare Workers applications.