Technical & DevelopmentAdvanced
durable-objects
Stateful actor-based Durable Objects for Cloudflare Workers.
Developer Setup
Setup & Installation
bash
npx skills add https://github.com/cloudflare/skills --skill durable-objectsnpx skills add https://github.com/cloudflare/skills --skill durable-objectsOr paste this URL into your assistant to install:
Overview
What This Skill Does
Enables stateful, in-memory coordination, SQLite transactional storage, alarms, and websocket pipelines using Durable Objects.
Application
When to use this Skill
- Creating stateful coordination components like chat rooms or multiplayer lobbies.
- Implementing transactional RPC methods on Cloudflare Durable Objects.
- Persisting key-value or SQLite state directly within stateful DO instances.
- Configuring background alarms and scheduling timers for DO lifecycle events.
- Testing Durable Object code bases using Vitest and Mock environments.
Documentation
Show Skills.md file
Durable Objects
Build stateful, coordinated applications on Cloudflare's edge using Durable Objects.
Retrieval Sources
Your knowledge of Durable Objects APIs and configuration may be outdated. Prefer retrieval over pre-training for any Durable Objects task.
| Resource | URL |
|---|---|
| Docs | https://developers.cloudflare.com/durable-objects/ |
| API Reference | https://developers.cloudflare.com/durable-objects/api/ |
| Best Practices | https://developers.cloudflare.com/durable-objects/best-practices/ |
| Examples | https://developers.cloudflare.com/durable-objects/examples/ |
Fetch the relevant doc page when implementing features.
When to Use
- Creating new Durable Object classes for stateful coordination
- Implementing RPC methods, alarms, or WebSocket handlers
- Reviewing existing DO code for best practices
- Configuring wrangler.jsonc/toml for DO bindings and migrations
- Writing tests with
@cloudflare/vitest-pool-workers - Designing sharding strategies and parent-child relationships
Lines 1 - 25 of 181
Recommendations