bun
Installation
SKILL.md
Bun Skill
Product summary
Bun is an all-in-one JavaScript/TypeScript toolkit that ships as a single binary. It includes a runtime (drop-in Node.js replacement), package manager, test runner, and bundler. Use bun run to execute scripts, bun install to manage dependencies, bun test to run tests, and bun build to bundle code. Configuration lives in bunfig.toml (optional, Bun works zero-config) and package.json. Key CLI commands: bun run <script>, bun install, bun add <pkg>, bun test, bun build <entry>. Primary docs: https://bun.com/docs
When to use
Reach for this skill when:
- Running TypeScript/JSX files directly without compilation (
bun run app.ts) - Installing or managing npm packages faster than npm/yarn (
bun install,bun add) - Writing and running tests with Jest-compatible API (
bun test) - Bundling JavaScript/TypeScript for browsers or servers (
bun build) - Building HTTP servers with
Bun.serve()and native APIs - Executing package.json scripts (
bun run start) - Working with file I/O, environment variables, or system processes
- Migrating from Node.js projects (Bun is mostly compatible)
- Setting up monorepos with workspaces