Prompt Buddy logoPrompt Buddy

cloudflare ยท Cloudflare Workers Docs

Workers Miniflare

A guide to using Miniflare as a local simulator to develop, test, and debug Cloudflare Workers with support for runtime APIs like KV, Durable Objects, and R2.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Miniflare

A guide to using Miniflare as a local simulator to develop, test, and debug Cloudflare Workers with support for runtime APIs like KV, Durable Objects, and R2.

When To Use

Use when you need to set up a local development environment to simulate Cloudflare Workers runtime APIs, write integration tests, or manage local storage for KV, R2, and D1 bindings.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-testing-miniflare-workflow-guide.mdAn overview of the Miniflare API used for simulating Cloudflare Workers environments for advanced testing use cases.Questions about an overview of the Miniflare API used for simulating Cloudflare Workers environments for advanced testing use cases.

What This Skill Covers

  • This documentation describes the Miniflare API, which is only relevant for advanced use cases. Instead, most users should use Wrangler to build, run & deploy...

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