durable-objects

Build and review Cloudflare Durable Objects with SQLite storage and Vitest tests.

Updated Apr 18, 2026
One-click install
npx skills add https://github.com/rattamnoon/our-third-story --skill durable-objects-rattamnoon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: durable-objects
Source: https://github.com/rattamnoon/our-third-story/tree/main/.agents/skills/durable-objects
Command: npx skills add https://github.com/rattamnoon/our-third-story --skill durable-objects-rattamnoon

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Create and review Cloudflare Durable Objects to coordinate stateful logic at the edge, enabling consistent per-entity storage, RPC methods, alarms, and WebSockets.

Core Features & Use Cases

  • One durable object per coordination unit (e.g., chat room, game session) to maintain isolation and consistency.
  • SQLite storage integration and migrations for durable state.
  • RPC-style methods for public endpoints and lifecycle management, with init and alarm handling.
  • Testing patterns with Vitest and Cloudflare tooling for local validation.

Quick Start

Create a Durable Object class named MySession and implement an RPC method to store and retrieve per-user state.

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 with Cloudflare Durable Objects?

Build stateful Cloudflare Durable Objects by creating a class for each coordination unit like a chat room or game session, implementing RPC methods, and managing the fetch, alarm, and init lifecycle.

When should I use Durable Objects for edge deployments?

Use Durable Objects for edge deployments when you need consistent per-entity storage and stateful coordination, such as managing multiplayer game state, per-user sessions, or RPC-based workflows with WebSocket isolation.

How do I test Cloudflare Durable Objects locally with Vitest?

Test Cloudflare Durable Objects locally with Vitest by applying testing patterns and Cloudflare tooling to validate SQLite storage integration, RPC method execution, and alarm lifecycle events before edge deployment.

Can I use SQLite storage with Cloudflare Durable Objects?

Yes, you can use SQLite storage with Cloudflare Durable Objects to maintain durable state, requiring you to implement storage migrations and manage data persistence within the object's lifecycle.

Does Cloudflare Durable Objects support RPC methods and alarms?

Cloudflare Durable Objects support RPC-style methods for public endpoints and alarm handling, allowing you to manage stateful coordination and execute scheduled tasks within the init and fetch lifecycle.