/web:bun-runtimefrom web
Covers Bun usage as a runtime, package manager, bundler, and test runner. Includes migration from Node, Vercel deployment config, and best practices.
Ships in web. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Bun is a fast all-in-one JavaScript runtime and toolkit: runtime, package manager, bundler, and test runner.
Use when: adopting Bun, migrating from Node, writing or debugging Bun scripts/tests, or configuring Bun on Vercel or other platforms.
bun install is significantly faster than npm/yarn. Lockfile is bun.lock (text) by default in current Bun; older versions used bun.lockb (binary).bun test with Jest-like API.Migration from Node: Replace node script.js with bun run script.js or bun script.js. Run bun install in place of npm install; most packages work. Use bun run for npm scripts; bun x for npx-style one-off runs. Node built-ins are supported; prefer Bun APIs where they exist for better performance.
Vercel: Set "bunVersion": "1.x" in vercel.json — this runs Vercel Functions and Routing Middleware on the Bun runtime instead of Node.js (accepted values today: "1.x", "1.4.x"; Vercel manages minor versions). Build: bun run build or bun build ./src/index.ts --outdir=dist. Install: bun install --frozen-lockfile — or bun ci, which behaves the same — for reproducible deploys (both fail when bun.lock doesn't match package.json).
# Install dependencies (creates/updates bun.lock or bun.lockb)
bun install
# Run a script or file
bun run dev
bun run src/index.ts
bun src/index.ts
bun run --env-file=.env dev
FOO=bar bun run script.ts
bun test
bun test --watch
// test/example.test.ts
import { expect, test } from "bun:test";
test("add", () => {
expect(1 + 2).toBe(3);
});
const file = Bun.file("package.json");
const json = await file.json();
Bun.serve({
port: 3000,
fetch(req) {
return new Response("Hello");
},
});
bun.lock or bun.lockb) for reproducible installs.bun run for scripts. For TypeScript, Bun runs .ts natively.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
bun, javascript-runtime, package-manager, bundler, test-runner, vercel
Other plugins' skills for the same job
6 skills in this plugin
/api-designREST API design patterns including resource naming, status codes, pagination, filtering, error responses, versioning, and rate limiting for production APIs. Use when designing or reviewing REST endpoints, or deciding between status codes, pagination styles, or versioning strategies./content-hash-cache-patternCache expensive file processing results using a composite key of SHA-256 content hash plus processor version and config — path-independent, auto-invalidating, with service layer separation. Use when caching costly file-processing outputs (PDF parsing, OCR, text extraction, image analysis) that recur across runs and the cache must survive file moves/renames while auto-invalidating on content change./npx claudepluginhub davie521/claude-skills --plugin web