durable-objects

Build and audit Cloudflare Durable Objects for stateful workloads.

19|6|Updated Sep 13, 2025
One-click install
npx skills add https://github.com/neverinfamous/memory-journal-mcp --skill durable-objects-neverinfamous
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: durable-objects
Source: https://github.com/neverinfamous/memory-journal-mcp/tree/main/skills/durable-objects
Command: npx skills add https://github.com/neverinfamous/memory-journal-mcp --skill durable-objects-neverinfamous

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Streamline building and auditing Cloudflare Durable Objects to coordinate stateful workloads at the edge, covering per-entity storage, RPC methods, alarms, and WebSocket interactions with best practices and tooling guidance.

Core Features & Use Cases

  • One DO per logical coordination unit (e.g., chat room, game session, tenant) to avoid bottlenecks and enable deterministic routing.
  • Guidance on SQLite storage, migrations, and Wrangler configuration for DOs.
  • References for testing with Vitest, DO lifecycle, alarms, and WebSocket handlers.

Quick Start

Configure a Durable Object workflow, review storage and RPC patterns, and reference the included materials to implement a robust DO-based service.

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

Build stateful workloads with Cloudflare Durable Objects by configuring one DO per logical coordination unit, such as a chat room or tenant, to enable deterministic routing using Wrangler, SQLite storage, and WebSocket handlers.

What is the best way to structure Cloudflare Durable Objects for multiplayer apps?

Structure Cloudflare Durable Objects for multiplayer apps by assigning one DO per game session or tenant, which avoids bottlenecks and enables deterministic routing for state management.

Does Cloudflare Durable Objects support SQLite storage and RPC methods?

Yes, Cloudflare Durable Objects support SQLite storage and RPC methods, providing per-entity storage coordination and remote procedure calls to manage stateful workloads at the edge.

How do I test Cloudflare Durable Objects using Vitest?

Test Cloudflare Durable Objects using Vitest by referencing the included materials for DO lifecycle, alarms, and WebSocket interactions to verify stateful workload behavior and ensure robust service implementation.

When should I not use a single Durable Object for all my users?

Avoid using a single Durable Object for all users when building chat rooms or multiplayer apps to prevent bottlenecks; instead, assign one DO per logical coordination unit to enable deterministic routing.