Pular para o conteúdo
Kitbay
Enviar
SkillOficial

durable-objects

Apache-2.0Atualizado em 10 de nov. de 20263.337Estrelas no GitHub

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

O que a skill ensina

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.

O que faz

  • 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