durable-objects

Develops Cloudflare Durable Objects apps with RPC alarms and SQLite storage.

2|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/ylxai/hafiportrait-saas --skill durable-objects-ylxai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: durable-objects
Source: https://github.com/ylxai/hafiportrait-saas/tree/main/.kiro/skills/durable-objects
Command: npx skills add https://github.com/ylxai/hafiportrait-saas --skill durable-objects-ylxai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @cloudflare/durable-objects, wrangler, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill simplifies the development of stateful, coordinated applications on Cloudflare's edge using Durable Objects, making it easier to build applications like chat rooms, multiplayer games, and booking systems.

Core Features & Use Cases

  • Stateful Coordination: Enables building applications that maintain state between sessions and interactions.
  • RPC Methods & Alarms: Implements Remote Procedure Calls and scheduled tasks to extend application functionality.
  • SQLite Storage: Provides local storage for data persistence across sessions.
  • Use Cases: Ideal for creating real-time applications with strong consistency and entity-based storage.

Quick Start

Create a new durable object class to coordinate state for a chat room or a game.

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?

You can build stateful applications on Cloudflare Workers by using Durable Objects to maintain state, implement RPC methods, and manage SQLite storage for data persistence across sessions.

What are Cloudflare Durable Objects used for?

Cloudflare Durable Objects are used for stateful coordination in real-time applications like chat rooms, multiplayer games, and booking systems, providing strong consistency and entity-based storage at the edge.

How do I implement RPC and alarms in Cloudflare Durable Objects?

To implement RPC and alarms in Cloudflare Durable Objects, you define RPC methods for remote calls and use the alarm API to schedule tasks, extending your application's coordination and timing functionality.

Do I need Wrangler to configure Cloudflare Durable Objects?

Yes, you need Wrangler to configure Cloudflare Durable Objects, as it requires specific Wrangler configuration to bind the Durable Objects to your Workers and manage deployment.

Can I use SQLite storage with Durable Objects for data persistence?

Yes, you can use SQLite storage with Durable Objects to provide local data persistence across sessions within your stateful Cloudflare edge applications.

When should I use Durable Objects instead of standard Workers?

Use Durable Objects instead of standard Workers when your application requires strong consistency, stateful coordination, or entity-based storage that standard stateless Workers cannot maintain across interactions.