Skip to content

bunWay

An Express-compatible web framework built natively for Bun, with 26 built-in middleware and zero external dependencies.

Year
2025–26
Role
Author & maintainer (JointOps)
Status
Live
Context
JointOps (my open-source org)
Open source · Web framework2025–26

Results

  • 2,423

    tests

    4,837 assertions, unit to end-to-end

  • 26

    built-in middleware

    Security, parsing and auth in one package

  • 0

    external dependencies

    Nothing to audit but the framework

bunWay implements the Express.js 4.x API surface (request and response patterns, routing and sub-routers) on top of Bun.serve(), with no polyfills.

26 production middleware ship in the core package: security (helmet, cors, csrf, rateLimit), parsers (json, upload) and auth adapters (jwt, passport). One dependency-free package means a much smaller supply-chain surface.

Routing is a three-tier matcher: static hash lookups first, then parameterized routes, then regex captures.

It is covered by 2,423 tests and 4,837 assertions, from isolated units to full end-to-end HTTP round trips, in strict-mode TypeScript.