← ClaudeAtlas

bunlisted

Build fast applications with Bun JavaScript runtime. Use when creating Bun projects, using Bun APIs, bundling, testing, or optimizing Node.js alternatives. Triggers on Bun, Bun runtime, bun.sh, bunx, Bun serve, Bun test, JavaScript runtime.
Makiya1202/ai-agents-skills · ★ 2 · AI & Automation · score 65
Install: claude install-skill Makiya1202/ai-agents-skills
# Bun - The Fast JavaScript Runtime Build and run JavaScript/TypeScript applications with Bun's all-in-one toolkit. ## Quick Start ```bash # Install Bun (macOS, Linux, WSL) curl -fsSL https://bun.sh/install | bash # Windows powershell -c "irm bun.sh/install.ps1 | iex" # Create new project bun init # Run TypeScript directly (no build step!) bun run index.ts # Install packages (faster than npm) bun install # Run scripts bun run dev ``` ## Package Management ```bash # Install dependencies bun install # Install all from package.json bun add express # Add dependency bun add -d typescript # Add dev dependency bun add -g serve # Add global package # Remove packages bun remove express # Update packages bun update # Run package binaries bunx prisma generate # Like npx but faster bunx create-next-app # Lockfile bun install --frozen-lockfile # CI mode ``` ### bun.lockb vs package-lock.json ```bash # Bun uses binary lockfile (bun.lockb) - much faster # To generate yarn.lock for compatibility: bun install --yarn # Import from other lockfiles bun install # Auto-detects package-lock.json, yarn.lock ``` ## Bun Runtime ### Run Files ```bash # Run any file bun run index.ts # TypeScript bun run index.js # JavaScript bun run index.jsx # JSX # Watch mode bun --watch run index.ts # Hot reload bun --hot run server.ts ``` ### Built-in APIs ```typescript // File I/O (super fast) const file = Bun.file('data.json'); cons