<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/next-gen-static-file-middleware-rabbx-sirv--kfzz9o0tw" -->

---
title: next Gen static file middleware (@rabbx/sirv) | daily.dev
description: @rabbx/sirv is a zero-dependency static file middleware built for edge runtimes including Bun, Deno, Node.js, and Cloudflare Workers. It avoids heavy...
canonical: https://daily.dev/posts/next-gen-static-file-middleware-rabbx-sirv--kfzz9o0tw
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: next Gen static file middleware (@rabbx/sirv) | daily.dev
og:description: @rabbx/sirv is a zero-dependency static file middleware built for edge runtimes including Bun, Deno, Node.js, and Cloudflare Workers. It avoids heavy...
og:url: https://daily.dev/posts/next-gen-static-file-middleware-rabbx-sirv--kfzz9o0tw
og:image: https://api.daily.dev/og/posts/kFzZ9O0tW.png
og:image:alt: next Gen static file middleware (@rabbx/sirv)
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# next Gen static file middleware (@rabbx/sirv)

**[rabbxdev](https://daily.dev/sources/m8wa2jdbsp8rfyh3tuvri)** · [@rabbxdev](https://daily.dev/rabbxdev) · 1 min read · 0 upvotes · 0 comments

## Summary

@rabbx/sirv is a zero-dependency static file middleware built for edge runtimes including Bun, Deno, Node.js, and Cloudflare Workers. It avoids heavy Node-specific shims and large dependency trees. Key features include zero-copy streaming on Bun for low latency, a composable plugin system with setHeaders and transform hooks, and native Web API support for consistent behavior across CF Workers and Deno.

## Content

We spend hours optimizing database queries, but completely ignore how we serve static assets.

I built `@rabbx/sirv` to fix the static file story across edge runtimes (Bun, Deno, Node, CF Workers).

The catch with most static middleware is they rely on heavy Node-specific shims or pull in massive dependency trees. `@rabbx/sirv` is zero-dependency and built for the edge.

Key architectural choices:

- Zero-copy streaming on Bun to keep latency flat.
- A composable plugin system (`setHeaders` + `transform`) so you aren't forced into a rigid middleware chain.
- Native Web API support so it runs identically on CF Workers and Deno.

If you're building on the edge and tired of bloated static servers, check it out. https://github.com/rabbxdev/sirv

## Similar posts on daily.dev

- [VoidZero’s Rolldown Library: Rollup Compatible API with the Speed Of Rust](https://daily.dev/posts/voidzero-s-rolldown-library-rollup-compatible-api-with-the-speed-of-rust-qe7qd6dlx) · InfoQ · 0 upvotes · 0 comments
- [Serving a website with Cloudflare Workers static assets](https://daily.dev/posts/serving-a-website-with-cloudflare-workers-static-assets-ast0sepwo) · Flavio Copes · 1 upvotes · 0 comments
- [Bun v1.3.6](https://daily.dev/posts/bun-v1-3-6-wx4br4zyw) · Bun · 94 upvotes · 1 comments

---

Tags: [#edge-computing](https://daily.dev/tags/edge-computing), [#bun](https://daily.dev/tags/bun)

[View this post on daily.dev](https://daily.dev/posts/next-gen-static-file-middleware-rabbx-sirv--kfzz9o0tw)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/next-gen-static-file-middleware-rabbx-sirv--kfzz9o0tw","headline":"next Gen static file middleware (@rabbx/sirv)","text":"@rabbx/sirv is a zero-dependency static file middleware built for edge runtimes including Bun, Deno, Node.js, and Cloudflare Workers. It avoids heavy Node-specific shims and large dependency trees. Key features include zero-copy streaming on Bun for low latency, a composable plugin system with setHeaders and transform hooks, and native Web API support for consistent behavior across CF Workers and Deno.","url":"https://daily.dev/posts/next-gen-static-file-middleware-rabbx-sirv--kfzz9o0tw","datePublished":"2026-07-11T15:38:05.077Z","dateModified":"2026-07-11T15:38:20.797Z","author":{"@type":"Person","name":"rabbxdev","url":"https://daily.dev/rabbxdev","image":"https://avatars.githubusercontent.com/u/280131170?v=4","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":120}},"image":"https://media.daily.dev/image/upload/s--h6GU8s9Z--/f_auto/v1783784286/posts/kFzZ9O0tW?_a=BAMAMicg0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/m8wa2jdbsp8rfyh3tuvri","name":"rabbxdev"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"rabbxdev","item":"https://daily.dev/sources/m8wa2jdbsp8rfyh3tuvri"},{"@type":"ListItem","position":3,"name":"next Gen static file middleware (@rabbx/sirv)"}]}
```

