
Bun Development
Bootstrap or migrate JavaScript/TypeScript projects to Bun for faster installs, bundling, and tests without relearning Node-only habits.
Overview
bun-development is an agent skill most often used in Build (also Ship) that guides Bun runtime setup, migration from Node.js, and use of Bun’s bundler and test tooling.
Install
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill bun-developmentWhat is this skill?
- Official install paths for macOS, Linux, Windows, Homebrew, npm, and bun upgrade
- Bun vs Node.js comparison for speed, bundler, and built-in test runner
- Greenfield JS/TS project startup and Node-to-Bun migration guidance
- Bundler and test-runner workflows without separate webpack/jest setup
- Troubleshooting section for Bun-specific runtime issues
- Documents Bun vs Node.js feature comparison table
- Covers macOS, Linux, Windows, Homebrew, npm global, and bun upgrade paths
Adoption & trust: 2.2k installs on skills.sh; 40.1k GitHub stars; 2/3 security scanners passed (skills.sh audits).
What problem does it solve?
Your JS/TS stack is slow to install and split across Node, a separate bundler, and Jest while you want one fast runtime for local dev.
Who is it for?
Solo builders starting greenfield Bun apps or pragmatically moving small-to-medium Node services where Bun compatibility is acceptable.
Skip if: Production teams locked to Node-only LTS policies, heavy native-addon stacks untested on Bun, or repos that only need frontend framework docs without runtime change.
When should I use this skill?
Starting new JS/TS projects with Bun, migrating from Node.js, optimizing dev speed, using Bun’s bundler or test runner, or troubleshooting Bun-specific issues.
What do I get? / Deliverables
You have Bun installed, a project or migration path using Bun scripts, and clarity on bundling and testing so you can ship the same codebase with less toolchain friction.
- Working Bun installation and upgraded runtime
- Project scripts using bun run, bun test, or bundler
- Documented migration notes from Node where applicable
Recommended Skills
Journey fit
Spans multiple journey phases - primary shelf plus alternate fits below.
Runtime choice and project scaffolding land in Build; migration and test-runner adoption often continue into Ship. Bun work targets server/runtime tooling, package scripts, and backend JS execution—not marketing SEO or production monitoring playbooks.
Where it fits
Scaffold a Bun TypeScript API with package scripts before wiring routes.
Replace Node-only tooling with Bun for a small webhook service.
Run bun test locally as the default gate before tagging a release.
Document Bun upgrade and deploy assumptions for a single-server indie app.
How it compares
Runtime-and-toolchain skill for Bun—not a replacement for framework-specific Next.js or React build guides.
Common Questions / FAQ
Who is bun-development for?
Indie developers and small teams choosing Bun for JS/TS backends, CLIs, and scripts who want agent-guided install, migration, and built-in bundler/test workflows.
When should I use bun-development?
In Build when scaffolding a Bun project or migrating from Node; in Ship when standardizing on bun test and bundler for CI-like local verification before release.
Is bun-development safe to install?
The skill includes curl and PowerShell installers marked critical risk in metadata; review the Security Audits panel on this page and inspect install scripts before executing on your machine.
SKILL.md
READMESKILL.md - Bun Development
# ⚡ Bun Development > Fast, modern JavaScript/TypeScript development with the Bun runtime, inspired by [oven-sh/bun](https://github.com/oven-sh/bun). ## When to Use This Skill Use this skill when: - Starting new JS/TS projects with Bun - Migrating from Node.js to Bun - Optimizing development speed - Using Bun's built-in tools (bundler, test runner) - Troubleshooting Bun-specific issues --- ## 1. Getting Started ### 1.1 Installation ```bash # macOS / Linux brew install oven-sh/bun/bun # Alternative: download the official installer, inspect it, then execute it tmpdir="$(mktemp -d)" trap 'rm -rf "$tmpdir"' EXIT curl -fsSLo "$tmpdir/bun-install.sh" https://bun.sh/install sed -n '1,160p' "$tmpdir/bun-install.sh" bash "$tmpdir/bun-install.sh" # Windows powershell -NoProfile -Command "Invoke-WebRequest https://bun.sh/install.ps1 -OutFile $env:TEMP\\bun-install.ps1; Get-Content $env:TEMP\\bun-install.ps1 -TotalCount 120; powershell -ExecutionPolicy Bypass -File $env:TEMP\\bun-install.ps1" # Homebrew brew tap oven-sh/bun brew install bun # npm (if needed) npm install -g bun # Upgrade bun upgrade ``` ### 1.2 Why Bun? | Feature | Bun | Node.js | | :-------------- | :------------- | :-------------------------- | | Startup time | ~25ms | ~100ms+ | | Package install | 10-100x faster | Baseline | | TypeScript | Native | Requires transpiler | | JSX | Native | Requires transpiler | | Test runner | Built-in | External (Jest, Vitest) | | Bundler | Built-in | External (Webpack, esbuild) | --- ## 2. Project Setup ### 2.1 Create New Project ```bash # Initialize project bun init # Creates: # ├── package.json # ├── tsconfig.json # ├── index.ts # └── README.md # With specific template bun create <template> <project-name> # Examples bun create react my-app # React app bun create next my-app # Next.js app bun create vite my-app # Vite app bun create elysia my-api # Elysia API ``` ### 2.2 package.json ```json { "name": "my-bun-project", "version": "1.0.0", "module": "index.ts", "type": "module", "scripts": { "dev": "bun run --watch index.ts", "start": "bun run index.ts", "test": "bun test", "build": "bun build ./index.ts --outdir ./dist", "lint": "bunx eslint ." }, "devDependencies": { "@types/bun": "latest" }, "peerDependencies": { "typescript": "^5.0.0" } } ``` ### 2.3 tsconfig.json (Bun-optimized) ```json { "compilerOptions": { "lib": ["ESNext"], "module": "esnext", "target": "esnext", "moduleResolution": "bundler", "moduleDetection": "force", "allowImportingTsExtensions": true, "noEmit": true, "composite": true, "strict": true, "downlevelIteration": true, "skipLibCheck": true, "jsx": "react-jsx", "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, "allowJs": true, "types": ["bun-types"] } } ``` --- ## 3. Package Management ### 3.1 Installing Packages ```bash # Install from package.json bun install # or 'bun i' # Add dependencies bun add express # Regular dependency bun add -d typescript # Dev dependency bun add -D @types/node # Dev dependency (alias) bun add --optional pkg # Optional dependency # From specific registry bun add lodash --registry https://registry.npmmirror.com # Install specific version bun add react@18.2.0 bun add react@latest bun add react@next # From git bun add github:user/repo bun add git+https://github.com/user/repo.git ``` ### 3.2 Removing & Updating ```bash # Remove package bun remove lodash # Update p