Bun Server
Use `Bun.serve` to start a high-performance HTTP server in Bun
Install
npx skills add jarle/bun-skills --skill Bun Servergit 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-server ~/.claude/skills/Bun-ServerPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Server
> Use `Bun.serve` to start a high-performance HTTP server in Bun
## Basic Setup
```ts title="index.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"}}
const server = Bun.serve({
// `routes` requires Bun v1.2.3+
routes: {
// Static routes
"/api/status": new Response("OK"),
// Dynamic routes
"/users/:id": req => {
return new Response(`Hello User ${req.params.id}!`);
},
// Per-HTTP method handlers
"/api/posts": {
GET: () => new Response("List posts"),
POST: async req => {
const body = await req.json();
return Response.json({ created: true, ...body });
},
},
// Wildcard route for all routes that start with "/api/" and aren't otherwise matched
"/api/*": Response.json({ message: "Not found" }, { status: 404 }),
// Redirect from /blog/hello to /blog/hello/world
"/blog/hello": Response.redirect("/blog/hello/world"),
// Serve a file by lazily loading it into memory
"/favicon.ico": Bun.file("./favicon.ico"),
},
// (optional) fallback for unmatched routes:
// Required if Bun's version < 1.2.3
fetch(req) {
return new Response("Not Found", { status: 404 });
},
});
console.log(`Server running at ${server.url}`);
```
***
## HTML importsDetails
- Skill name
Bun Server- Repository
- jarle/bun-skills
- Path
skills/bun-runtime-http-server/SKILL.md- License
- MIT
- Repo updated
- 24 February 2026
FAQ
What does the Bun Server skill do?
Use `Bun.serve` to start a high-performance HTTP server in Bun
How do I install the Bun Server skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add jarle/bun-skills --skill Bun Server. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Bun Server 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
Bun Spawn
9jarle/bun-skills
Spawn child processes with `Bun.spawn` or `Bun.spawnSync`
Bun S3
9jarle/bun-skills
Bun provides fast, native bindings for interacting with S3-compatible object storage services.
Bun Standalone HTML
9jarle/bun-skills
Bundle a single-page app into a single self-contained .html file with no external dependencies
Browse the most popular Claude skills, all other skills, or write your own with the skills generator.