durable-objects

Implement stateful Cloudflare Durable Objects with Wrangler, SQLite, and Vitest.

1|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/avoidthekitchen/avilingo-v2 --skill durable-objects-avoidthekitchen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: durable-objects
Source: https://github.com/avoidthekitchen/avilingo-v2/tree/main/beakspeak/.agents/skills/durable-objects
Command: npx skills add https://github.com/avoidthekitchen/avilingo-v2 --skill durable-objects-avoidthekitchen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Cloudflare Durable Objects enable stateful coordination at the edge, but teams often struggle with patterns, correct configuration, and best practices to avoid race conditions and data loss.

Core Features & Use Cases

  • Guidance on modeling one DO per coordination unit (chat room, game session, or tenant)
  • How to configure storage (SQLite), alarms, RPC methods, and worker bindings
  • Testing patterns with Vitest and examples for deterministic behavior and correctness

Quick Start

Set up a Cloudflare Durable Objects project with Wrangler, implement a DO class, and expose RPC methods for coordination.

Frequently Asked Questions about durable-objects

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test Cloudflare Durable Objects with Vitest for deterministic behavior?

Use Vitest to test Cloudflare Durable Objects by implementing specific testing patterns that ensure deterministic behavior and correctness. This approach validates stateful edge workers and verifies RPC methods, alarms, and storage interactions reliably.

Can I use SQLite storage with Cloudflare Durable Objects and Wrangler?

Yes, you can configure SQLite storage for Cloudflare Durable Objects using Wrangler. This setup allows edge workers to persist state locally within the DO, supporting reliable data retention and stateful coordination across interactions.

What are the limitations or safety guidelines when implementing Cloudflare Durable Objects?

Limitations of Cloudflare Durable Objects include potential race conditions and data loss if not configured properly. Follow safety guidelines for alarms, RPC methods, and worker bindings to ensure maintainability and reliable stateful coordination at the edge.

Does Cloudflare Durable Objects support RPC methods and WebSocket interactions?

Yes, Cloudflare Durable Objects support RPC methods and WebSocket interactions for real-time edge computing. You can expose RPC methods for coordination and manage WebSocket connections to handle interactive stateful workflows effectively.