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.
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
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-testing-miniflare-durable-objects-workflow-guide.md | Documentation 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.text | A 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.text | A 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.text | A 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
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - 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
