Skip to content

bunWayBun-native routing toolkit

Run everything. The Bun way.

Bun Way hero illustration

Why bunWay?

  • Bun-first: built around Bun.serve, native Request/Response objects, and the Bun test runner.
  • Express-friendly: plug into familiar middleware and router patterns without losing Fetch semantics.
  • Batteries included: JSON parsers, CORS, error handling, docs, and a roadmap toward sessions, cookies, and more.

Try it in 30 seconds ​

ts
import { bunway, cors, json } from "bunway";

const app = bunway();
app.use(cors({ origin: true }));
app.use(json());

app.get("/hello", (ctx) => ctx.res.json({ message: "Run everything. The Bun way." }));

app.listen(7070);

Drop the snippet into bun run and see Bun-native routing in action.

What you'll find here ​

πŸ“š

Core Primitives

Deep dive into WayRequest, WayResponse, and WayContext to master the building blocks.

πŸ—ΊοΈ

Router

Understand the routing lifecycle, middleware pipelines, and sub-routers with Bun-first ergonomics.

🧩

Middleware

Explore body parsing, CORS, and error handling tutorials to keep everything Bun-native.

🀝

Build Together

Jump into the roadmap and contribution guide to help shape bunWay.

Ready to run everything the Bun way? ​

Start with the Getting Started guide, then star us on GitHub and help shape the toolkit.