cloudflare/miniflare

🔥 Fully-local simulator for Cloudflare Workers. For the latest version, see https://github.com/cloudflare/workers-sdk/tree/main/packages/miniflare.

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 37 minutes ago
Added to GitGenius on February 28th, 2026
Created on May 20th, 2021
Open Issues & Pull Requests: 1 (+0)
Number of forks: 210
Total Stargazers: 3,925 (+0)
Total Subscribers: 5 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 40.3 hours
Mean response time: 132.6 days
90th percentile: 453.2 days
Tracked items: 23

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 1
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 1,707 days
Stale 30+ days: 1
Stale 90+ days: 1

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • awaiting dev response (2)
  • bug (1)
  • documentation (1)
  • needs reproduction (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Miniflare is a fully-local simulator for Cloudflare Workers that enables developers to build and test Workers without requiring an internet connection. It provides an alternative to wrangler dev and is written in TypeScript, running workers in a sandbox that implements the Workers runtime APIs. The project is hosted at legacy.miniflare.dev and serves as a development environment with detailed logging, file watching, and pretty error pages that support source maps.

The repository implements a comprehensive set of Cloudflare Workers features. These include support for Fetch Events with both HTTP and HTTPS servers as well as manual dispatch capabilities, Scheduled Events with cron triggering and manual dispatch, and Variables and Secrets management through .env files. The simulator handles Modules support, KV storage with optional persistence, R2 object storage with optional persistence, Cache functionality with optional persistence, and Durable Objects with optional persistence. Additional features encompass Workers Sites, WebSockets, custom and Wrangler builds support, WebAssembly support, source map support, and web standards implementations including Base64, Timers, Fetch, Encoding, URL, Streams, and Crypto APIs. The tool also includes HTMLRewriter functionality, live reload on file changes, compatibility dates and flags support, multiple workers support, and a custom Jest environment with isolated per-test storage.

It is important to note that this repository contains Miniflare 2, which is now deprecated as of the release of Miniflare v3 in 2023. The README explicitly warns that Miniflare 2 simulated the Workers runtime using Node.js, whereas newer versions found in the workers-sdk repository use the open-sourced workerd runtime, which practically eliminates behavior mismatches between development and production deployments. According to the repository documentation, nearly 90 percent of Miniflare installations are now of version 3, and no new features or bug fixes are being published for version 2. Users are strongly encouraged to upgrade to the latest version and a migration guide is provided to facilitate this process.

The project shows active maintenance patterns reflected in its issue and pull request handling. The most active issue labels include awaiting dev response, documentation, and needs reproduction.

Miniflare was originally created by Brendan Coll and drew inspiration from earlier projects including dollarshaveclub/cloudworker and gja/cloudflare-worker-local. The implementation of Durable Objects transactions uses Optimistic Concurrency Control as described in academic literature on database concurrency control methods.