← Catalog

No. 087 · cloud

Durable Objects

Stateful coordination with RPC and WebSockets

Version 1.0.0 License MIT Format SKILL.md

Build stateful applications with Durable Objects: coordinate state across requests, implement real-time collaboration, use SQLite for persistence, and connect via WebSockets.

When to use this skill

  • Creating a Durable Object
  • Implementing real-time collaboration
  • Using SQLite in Durable Objects

Core concepts

This skill provides guidance on durable objects best practices, patterns, and common pitfalls. It is designed to be loaded on demand when a relevant task is detected.

Installation

curl -LO https://opencode-skills.example/downloads/cloud/durable-objects.zip
unzip durable-objects.zip -d ~/.config/opencode/skills/

Restart OpenCode — the skill loads automatically.

When it triggers

  • creating a Durable Object
  • implementing real-time collaboration
  • using SQLite in Durable Objects