Zum Inhalt springen
Kitbay
Einreichen

durable-objects

Apache-2.0Aktualisiert am 10. Nov. 20263.337GitHub-Sterne

A Cloudflare skill for writing, debugging and reviewing Durable Objects, the Workers feature for stateful, strongly consistent per-entity storage and coordination.

Was der Skill vermittelt

A Cloudflare skill for writing, debugging and reviewing Durable Objects, the Workers feature for stateful, strongly consistent per-entity storage and coordination. It lists when Durable Objects fit (chat rooms, games, booking, per-user data, WebSockets) and when plain Workers are the better choice, then gives Wrangler configuration, a basic class pattern, rules for stub creation, storage, SQLite queries, alarms and authorization, and a list of patterns to avoid. Reference files cover the core rules, testing with Cloudflare's Vitest integration and related Workers details. The agent is told to retrieve current docs first.

Funktionen

  • Create Durable Object classes with RPC methods and alarms
  • Configure Durable Object bindings and migrations in Wrangler
  • Review Durable Object code against Cloudflare's rules
  • Write tests with the Workers Vitest integration