Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
brianlovin avatar

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)
At a glance

bun capabilities & compatibility

Capabilities
runtime guidance · package management · server setup · test setup
Works with
postgres · redis
Use cases
api development
Pricing
Free
From the docs

What bun says it does

Use Bun as the default JavaScript/TypeScript runtime and package manager.
SKILL.md
Bun automatically loads `.env` files - don't use dotenv.
SKILL.md
Use HTML imports with `Bun.serve()` instead of Vite. Supports React, CSS, Tailwind.
SKILL.md
npx skills add https://github.com/brianlovin/agent-config --skill bun

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs16
repo stars356
Last updatedMarch 25, 2026
Repositorybrianlovin/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

SKILL.mdMarkdownGitHub ↗

Bun Runtime

Use Bun as the default JavaScript/TypeScript runtime and package manager.

Command Mappings

Instead ofUse
node file.tsbun file.ts
ts-node file.tsbun file.ts
npm installbun install
npm run scriptbun run script
jest / vitestbun test
webpack / esbuildbun build

Bun automatically loads .env files - don't use dotenv.

Bun-Specific APIs

Prefer these over Node.js equivalents:

APIPurposeDon't use
Bun.serve()HTTP server with WebSocket, HTTPS, routesexpress
bun:sqliteSQLite databasebetter-sqlite3
Bun.redisRedis clientioredis
Bun.sqlPostgres clientpg, postgres.js
Bun.file()File operationsnode:fs readFile/writeFile
Bun.$\cmd\``Shell commandsexeca
WebSocketWebSocket 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.

Backend & APIsbackendtesting

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.