Bun Routing
Define routes in `Bun.serve` using static paths, parameters, and wildcards
Install
npx skills add jarle/bun-skills --skill Bun Routinggit clone --depth 1 https://github.com/jarle/bun-skills.git /tmp/bun-skills
mkdir -p ~/.claude/skills
cp -r /tmp/bun-skills/skills/bun-runtime-http-routing ~/.claude/skills/Bun-RoutingPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Routing
> Define routes in `Bun.serve` using static paths, parameters, and wildcards
You can add routes to `Bun.serve()` by using the `routes` property (for static paths, parameters, and wildcards) or by handling unmatched requests with the [`fetch`](#fetch) method.
`Bun.serve()`'s router builds on top uWebSocket's [tree-based approach](https://github.com/oven-sh/bun/blob/0d1a00fa0f7830f8ecd99c027fce8096c9d459b6/packages/bun-uws/src/HttpRouter.h#L57-L64) to add [SIMD-accelerated route parameter decoding](https://github.com/oven-sh/bun/blob/main/src/bun.js/bindings/decodeURIComponentSIMD.cpp#L21-L271) and [JavaScriptCore structure caching](https://github.com/oven-sh/bun/blob/main/src/bun.js/bindings/ServerRouteList.cpp#L100-L101) to push the performance limits of what modern hardware allows.
## Basic Setup
```ts title="server.ts" icon="https://mintcdn.com/bun-1dd33a4e/nIz6GtMH5K-dfXeV/icons/typescript.svg?fit=max&auto=format&n=nIz6GtMH5K-dfXeV&q=85&s=5d73d76daf7eb7b158469d8c30d349b0" theme={"theme":{"light":"github-light","dark":"dracula"}}
Bun.serve({
routes: {
"/": () => new Response("Home"),
"/api": () => Response.json({ success: true }),
"/users": async () => Response.json({ users: [] }),
},
fetch() {
return new Response("Unmatched route");
},
});
```Details
- Skill name
Bun Routing- Repository
- jarle/bun-skills
- Path
skills/bun-runtime-http-routing/SKILL.md- License
- MIT
- Repo updated
- 24 February 2026
FAQ
What does the Bun Routing skill do?
Define routes in `Bun.serve` using static paths, parameters, and wildcards
How do I install the Bun Routing skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add jarle/bun-skills --skill Bun Routing. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Bun Routing popular?
It lives in jarle/bun-skills, which has 9 GitHub stars and 1 forks.
Related skills
Bun Archive
9jarle/bun-skills
Create and extract tar archives with Bun's fast native implementation
Bun Auto Install
9jarle/bun-skills
Bun's automatic package installation feature for standalone script execution
Bun Bun Add
9jarle/bun-skills
Add packages to your project with Bun's fast package manager
Browse Memberships
9Lord1Egypt/RA-Skills
Return Sam's Club's consumer membership tiers (Club, Plus) with standard annual prices, current promo first-year prices, promo window dates, and the full per-tier benefits list. Read-only; never joins or enters payment info.
Bun Hashing
9jarle/bun-skills
Bun provides a set of utility functions for hashing and verifying passwords with various cryptographically secure algorithms
Check Diesel Subsidies
9Lord1Egypt/RA-Skills
Look up Spain's professional-diesel excise-tax refund (Devolución gasóleo profesional, procedure DL03) on AEAT's Sede Electrónica: refund rate, eligibility, annual caps, authorised card issuers, and the auth-walled personal-refund query.
Browse the most popular Claude skills, all finance & crypto skills, or write your own with the skills generator.