--- name: bun-expert description: > Expert guidance for JavaScript/TypeScript development with the Bun runtime. Covers project setup, package management, HTTP servers, built-in APIs, testing, bundling, and migration from Node.js. Use when starting Bun projects, using Bun APIs (Bun.serve, sql/SQL, s3, redis, Bun.$), migrating from Node.js, or troubleshooting Bun-specific behavior. license: MIT metadata: author: Andy Pai version: "1.1" upstream_skill: "https://bun.com/docs" tags: "bun javascript typescript runtime server bundler test" --- # Bun Runtime Development Guide This skill is intentionally grounded in official Bun documentation. Bun moves quickly, so prefer current docs over hard-coded release timelines or benchmark claims. --- ## Project Setup ### Initialize a new project ```bash bun init # Interactive setup (package.json + tsconfig.json) bun init -y # Accept defaults bun create