GitHub - cloudflare/miniflare: 🔥 Fully-local simulator for Cloudflare Workers

github.com
3 min read
standard
🔥 Fully-local simulator for Cloudflare Workers. Contribute to cloudflare/miniflare development by creating an account on GitHub.
🔥 Miniflare

Miniflare is a simulator for developing and testing Cloudflare Workers.

🎉 Fun: develop workers easily with detailed logging, file watching and pretty error pages supporting source maps.

develop workers easily with detailed logging, file watching and pretty error pages supporting source maps. 🔋 Full-featured: supports most Workers features, including KV, Durable Objects, WebSockets, modules and more.

supports most Workers features, including KV, Durable Objects, WebSockets, modules and more. ⚡ Fully-local: test and develop Workers without an internet connection. Reload code on change quickly.

It's an alternative to wrangler dev , written in TypeScript, that runs your workers in a sandbox implementing Workers' runtime APIs.

See https://miniflare.dev for more detailed documentation.

Features

📨 Fetch Events (with HTTP(S) server and manual dispatch)

Fetch Events (with HTTP(S) server and manual dispatch) ⏰ Scheduled Events (with cron triggering and manual dispatch)

Scheduled Events (with cron triggering and manual dispatch) 🔑 Variables and Secrets with .env Files

Variables and Secrets with Files 📚 Modules Support

Modules Support 📦 KV (with optional persistence)

KV (with optional persistence) ✨ Cache (with optional persistence)

Cache (with optional persistence) 📌 Durable Objects (with optional persistence)

Durable Objects (with optional persistence) 🌐 Workers Sites

Workers Sites ✉️ WebSockets

WebSockets 🛠 Custom & Wrangler Builds Support

Custom & Wrangler Builds Support ⚙️ WebAssembly Support

WebAssembly Support 🗺 Source Map Support

Source Map Support 🕸 Web Standards: Base64,…
Read full article