Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Durable Objects

Configures and manages Durable Objects within a Miniflare testing environment, including enabling file system persistence, making requests from outside workers, and accessing classes exported by other scripts.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Durable Objects

Configures and manages Durable Objects within a Miniflare testing environment, including enabling file system persistence, making requests from outside workers, and accessing classes exported by other scripts.

When To Use

Use when configuring a local Miniflare environment to simulate Durable Object persistence or when testing interactions between multiple workers and external requests.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-testing-miniflare-durable-objects-workflow-guide.mdDocumentation on configuring and specifying Durable Objects within a Miniflare environment for testing.Questions about documentation on configuring and specifying Durable Objects within a Miniflare environment for testing.
examples/workers-testing-miniflare-durable-objects-cloudflare-workers-miniflare-d.textA Miniflare configuration script demonstrating how to initialize and register Durable Objects for local testing.Exact payloads, commands, or snippets shown in A Miniflare configuration script demonstrating how to initialize and register Durable Objects for local testing.
examples/workers-testing-miniflare-durable-objects-cloudflare-workers-miniflare-d-2.textA configuration example demonstrating how to set a custom persistence path for Durable Objects when using Miniflare.Exact payloads, commands, or snippets shown in A configuration example demonstrating how to set a custom persistence path for Durable Objects when using Miniflare.
examples/workers-testing-miniflare-durable-objects-cloudflare-workers-miniflare-d-3.textA Miniflare configuration script demonstrating how to instantiate and interact with a Durable Object using the Miniflare class.Exact payloads, commands, or snippets shown in A Miniflare configuration script demonstrating how to instantiate and interact with a Durable Object using the Minifl...

What This Skill Covers

  • Specify Durable Objects to add to your environment as follows:
  • Main sections: Objects, Persistence, Manipulating Outside Workers, Using a Class Exported by Another Script.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.cloudflare.com/workers/testing/miniflare/storage/durable-objects