
Bun Runtime
- 5.6k installs
- 238k repo stars
- Updated August 5, 2026
- affaan-m/everything-claude-code
Bun Runtime is an agent skill that documents Bun as runtime, package manager, bundler, and test runner, including Bun vs Node tradeoffs, Node migration, and Vercel configuration.
About
Bun Runtime is a Claude Code agent skill for Bun as an all-in-one JavaScript toolkit: runtime, package manager, bundler, and test runner. Use it when adopting Bun, migrating from Node, writing or debugging Bun scripts and tests, or configuring Bun on Vercel. The skill contrasts when to prefer Bun for new JS/TS projects, fast install and run speed, a single run-install-test-build toolchain, and Vercel Bun runtime support versus Node for maximum ecosystem compatibility, legacy tooling, or known Bun dependency issues. Migration guidance replaces node with bun run, npm install with bun install, npm scripts with bun run, and npx with bun x. Documented workflows cover bun install lockfiles (bun.lock or bun.lockb), env-file script runs, bun test with a Jest-like API, Bun.file and Bun.serve runtime APIs, and Vercel settings using bun install --frozen-lockfile plus bun run build or bun build output. Best practices commit lockfiles, prefer bun run for scripts, run TypeScript natively, and keep dependencies current as Bun evolves.
- Prefer Bun for new JS/TS projects, fast installs, Vercel Bun runtime, and one toolchain for run, install, test, and buil
- Prefer Node when maximum ecosystem compatibility, legacy tooling, or known Bun dependency issues apply.
- Migration swaps node for bun run, npm install for bun install, and npx-style runs for bun x.
- Built-in bun test exposes a Jest-like API; Bun runs TypeScript files natively without extra transpiler setup.
- Vercel deploys: set Bun runtime, use bun install --frozen-lockfile, and bun run build or bun build --outdir=dist.
Bun Runtime by the numbers
- 5,551 all-time installs (skills.sh)
- +236 installs in the week ending Aug 5, 2026 (Skillselion tracking)
- Ranked #31 of 1,435 DevOps & CI/CD skills by installs in the Skillselion catalog
- Security screen: LOW risk (skills.sh audit)
- Data as of Aug 5, 2026 (Skillselion catalog sync)
bun-runtime capabilities & compatibility
- Capabilities
- compare bun vs node adoption criteria · map node and npm commands to bun equivalents · run bun install, bun run, and env file scripts · author and execute bun test suites · use bun.file and bun.serve runtime apis · configure bun builds and frozen lockfile install
- Works with
- vercel
- Use cases
- devops · ci cd · testing
- Platforms
- macOS · Linux · Windows · WSL
- Runs
- Local or remote
- Pricing
- Free
What bun-runtime says it does
Bun is a fast all-in-one JavaScript runtime and toolkit: runtime, package manager, bundler, and test runner.
`bun install` is significantly faster than npm/yarn.
Commit the lockfile (`bun.lock` or `bun.lockb`) for reproducible installs.
npx skills add https://github.com/affaan-m/everything-claude-code --skill bun-runtimeAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 5.6k |
|---|---|
| repo stars | ★ 238k |
| Security audit | 3 / 3 scanners passed |
| Last updated | August 5, 2026 |
| Repository | affaan-m/everything-claude-code ↗ |
What it does
Choose Bun vs Node, migrate scripts, run bun test, and configure Bun installs and builds on Vercel.
Who is it for?
New JS/TS projects, fast local scripts, Vercel deployments with Bun runtime, and teams wanting one toolchain for run, install, test, and build.
Skip if: Projects requiring maximum legacy Node ecosystem compatibility or dependencies with documented Bun incompatibilities.
When should I use this skill?
Adopting Bun, migrating from Node, writing or debugging Bun scripts/tests, or configuring Bun on Vercel or other platforms.
What you get
Developers get concrete Bun install, run, test, serve, and Vercel deploy commands plus migration mappings from npm and node conventions.
- Runtime selection rationale
- Bun toolchain configuration
By the numbers
- Four Bun roles documented: runtime, package manager, bundler, and test runner.
Files
Bun Runtime
Bun is a fast all-in-one JavaScript runtime and toolkit: runtime, package manager, bundler, and test runner.
When to Use
- Prefer Bun for: new JS/TS projects, scripts where install/run speed matters, Vercel deployments with Bun runtime, and when you want a single toolchain (run + install + test + build).
- Prefer Node for: maximum ecosystem compatibility, legacy tooling that assumes Node, or when a dependency has known Bun issues.
Use when: adopting Bun, migrating from Node, writing or debugging Bun scripts/tests, or configuring Bun on Vercel or other platforms.
How It Works
- Runtime: Drop-in Node-compatible runtime (built on JavaScriptCore, implemented in Zig).
- Package manager:
bun installis significantly faster than npm/yarn. Lockfile isbun.lock(text) by default in current Bun; older versions usedbun.lockb(binary). - Bundler: Built-in bundler and transpiler for apps and libraries.
- Test runner: Built-in
bun testwith 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 runtime to Bun in project settings. Build: bun run build or bun build ./src/index.ts --outdir=dist. Install: bun install --frozen-lockfile for reproducible deploys.
Examples
Run and install
# 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.tsScripts and env
bun run --env-file=.env dev
FOO=bar bun run script.tsTesting
bun test
bun test --watch// test/example.test.ts
import { expect, test } from "bun:test";
test("add", () => {
expect(1 + 2).toBe(3);
});Runtime API
const file = Bun.file("package.json");
const json = await file.json();
Bun.serve({
port: 3000,
fetch(req) {
return new Response("Hello");
},
});Best Practices
- Commit the lockfile (
bun.lockorbun.lockb) for reproducible installs. - Prefer
bun runfor scripts. For TypeScript, Bun runs.tsnatively. - Keep dependencies up to date; Bun and the ecosystem evolve quickly.
interface:
display_name: "Bun Runtime"
short_description: "Bun runtime, package manager, and test runner"
brand_color: "#FBF0DF"
default_prompt: "Use $bun-runtime to choose and apply Bun runtime workflows."
policy:
allow_implicit_invocation: true
Related skills
Forks & variants (1)
Bun Runtime has 1 known copy in the catalog totaling 1.4k installs. They canonicalize to this original listing.
- affaan-m - 1.4k installs
How it compares
Pick bun-runtime over generic Node docs when evaluating Bun as a unified runtime, installer, bundler, and test runner for a new JS/TS stack.
FAQ
When should I choose Bun over Node?
Prefer Bun for new JS/TS projects, scripts where install and run speed matter, Vercel Bun runtime, and a single toolchain. Prefer Node for maximum ecosystem compatibility, legacy tooling, or known Bun dependency issues.
How do I migrate npm and node commands to Bun?
Replace node script.js with bun run script.js or bun script.js, npm install with bun install, npm scripts with bun run, and npx with bun x. Commit bun.lock or bun.lockb for reproducible installs.
What Vercel settings does the skill recommend for Bun?
Set runtime to Bun in project settings, install with bun install --frozen-lockfile, and build with bun run build or bun build ./src/index.ts --outdir=dist.
Is Bun Runtime safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.