Dev.to
7/11/2026

Why I rewrote `sirv` for Edge Runtimes (and added a plugin system)
Short summary
@rabbx/sirv is a zero-dependency static file middleware rebuilt for edge runtimes, using native Web APIs (Request, Response, ReadableStream) instead of Node shims. It adds a composable plugin system with setHeaders and transform hooks, enabling use cases like a 20-line Markdown-to-HTML site generator. Benchmarks show ~95k req/s with 0.3ms latency on Bun via zero-copy streaming.
- •Zero-dependency static file middleware for Bun, Deno, Node.js, and Cloudflare Workers
- •Plugin system with composable transform hooks and conditional ordering
- •~95k req/s at 0.3ms latency on Bun; MIT licensed and production-ready
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



