
Bun
- 16 installs
- 356 repo stars
- Updated March 25, 2026
- brianlovin/agent-config
This is a copy of bun by brianlovin - installs and ranking accrue to the original listing.
bun is a Claude skill that instructs the agent to use Bun as the default JS/TS runtime and package manager, with command mappings and Bun-native APIs.
About
bun is a guidance skill that tells the agent to use Bun as the default JavaScript and TypeScript runtime and package manager. It provides command mappings from Node, npm, pnpm, and Vite to Bun, plus Bun-specific APIs to prefer over Node equivalents. Developers use it so generated code and commands stay Bun-native across the runtime, testing, and frontend dev.
- Maps common Node/npm/pnpm/vite commands to their Bun equivalents
- Steers agents to Bun-native APIs like Bun.serve(), bun:sqlite, Bun.sql, and Bun.file()
- Covers bun:test and Bun.serve()-based frontend dev with HMR instead of Vite
Bun by the numbers
- 16 all-time installs (skills.sh)
- Data as of Aug 1, 2026 (Skillselion catalog sync)
bun capabilities & compatibility
- Capabilities
- runtime guidance · package management · server setup · test setup
- Works with
- postgres · redis
- Use cases
- api development
- Pricing
- Free
What bun says it does
Use Bun as the default JavaScript/TypeScript runtime and package manager.
Bun automatically loads `.env` files - don't use dotenv.
Use HTML imports with `Bun.serve()` instead of Vite. Supports React, CSS, Tailwind.
npx skills add https://github.com/brianlovin/agent-config --skill bunAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 16 |
|---|---|
| repo stars | ★ 356 |
| Last updated | March 25, 2026 |
| Repository | brianlovin/agent-config ↗ |
What it does
Keep an agent using Bun as the runtime and package manager, with Bun-native APIs instead of Node/npm/Vite equivalents.
Who is it for?
Projects standardizing on Bun as the runtime and package manager
When should I use this skill?
You are running JS/TS with Bun and want commands and APIs to be Bun-native
What you get
- Bun-native commands and code
By the numbers
- 6-row command mapping table
Files
Bun Runtime
Use Bun as the default JavaScript/TypeScript runtime and package manager.
Command Mappings
| Instead of | Use |
|---|---|
node file.ts | bun file.ts |
ts-node file.ts | bun file.ts |
npm install | bun install |
npm run script | bun run script |
jest / vitest | bun test |
webpack / esbuild | bun build |
Bun automatically loads .env files - don't use dotenv.
Bun-Specific APIs
Prefer these over Node.js equivalents:
| API | Purpose | Don't use |
|---|---|---|
Bun.serve() | HTTP server with WebSocket, HTTPS, routes | express |
bun:sqlite | SQLite database | better-sqlite3 |
Bun.redis | Redis client | ioredis |
Bun.sql | Postgres client | pg, postgres.js |
Bun.file() | File operations | node:fs readFile/writeFile |
Bun.$\cmd\`` | Shell commands | execa |
WebSocket | WebSocket client (built-in) | ws |
Testing
Use bun:test for tests:
import { test, expect } from "bun:test";
test("description", () => {
expect(1).toBe(1);
});Run with bun test.
Frontend Development
Use HTML imports with Bun.serve() instead of Vite. Supports React, CSS, Tailwind.
Server:
import index from "./index.html"
Bun.serve({
routes: {
"/": index,
"/api/users/:id": {
GET: (req) => Response.json({ id: req.params.id }),
},
},
development: { hmr: true, console: true }
})HTML file:
<html>
<body>
<script type="module" src="./app.tsx"></script>
</body>
</html>Bun's bundler transpiles .tsx, .jsx, .js automatically. CSS is bundled via <link> tags.
Run with bun --hot ./server.ts for HMR.
Documentation
For detailed API docs, see node_modules/bun-types/docs/**.md.
Related skills
FAQ
What should I use instead of npm install?
Use `bun install`.
How do I run a server in Bun?
Use `Bun.serve()` with routes instead of express, and run with `bun --hot ./server.ts` for HMR.
Do I need dotenv with Bun?
No, Bun automatically loads .env files.