{
  "slug": "bun",
  "name": "Bun",
  "aliases": ["Bun.js", "Bun runtime"],
  "vendor": { "name": "Oven", "slug": "oven", "website": "https://bun.sh" },
  "homepage_url": "https://bun.sh/",
  "docs_url": "https://bun.sh/docs",
  "repo_url": "https://github.com/oven-sh/bun",
  "license_url": "https://github.com/oven-sh/bun/blob/main/LICENSE.md",
  "product_type": "language",
  "product_status": "active",
  "summary": "All-in-one JavaScript and TypeScript runtime, package manager, bundler and test runner built on JavaScriptCore by Oven",
  "description": "Bun is a JavaScript and TypeScript runtime developed by Oven, written in Zig and built on Apple's JavaScriptCore engine rather than V8. It ships as a single binary that combines a runtime with Node.js API compatibility, an npm-compatible package manager, a bundler, a test runner and a shell scripting helper. TypeScript and JSX files run directly without a build step.\n\nBun is commonly adopted to speed up install and test cycles in existing Node projects, since `bun install` and `bun test` can usually be dropped into a repository that keeps Node for production. It also serves as a full runtime for Hono, Elysia or Next.js applications on macOS and Linux. Caveats: Node compatibility is extensive but not complete, so some native modules and edge cases behave differently; Windows support arrived later and is less mature; and the core team is small relative to Node's, so production teams should verify their dependency set.",
  "capabilities": ["JavaScript and TypeScript execution without a compile step", "npm-compatible package manager with lockfile", "Built-in bundler and test runner", "Node.js API compatibility layer", "Native SQLite, HTTP server and WebSocket APIs"],
  "workflows": ["Replace npm install and Jest in an existing repository for faster CI", "Run a Hono or Express API directly from TypeScript sources", "Bundle a front end without a separate bundler"],
  "advantages": ["Single binary covering runtime, packages, bundling and tests", "Runs TypeScript directly", "MIT license"],
  "limitations": ["Node.js compatibility is not complete", "Smaller team and ecosystem than Node", "Statically links JavaScriptCore (LGPL), which matters for redistribution"],
  "prerequisites": ["macOS, Linux or Windows; install script, Homebrew or npm"],
  "audiences": ["JavaScript developers seeking faster toolchains", "Teams building TypeScript APIs", "Front-end developers"],
  "alternatives": ["nodejs", "deno", "vite", "jest"],
  "comparison_notes": "Node.js is the compatibility baseline Bun targets and remains the most widely tested runtime; Deno, the other alternative runtime, emphasizes web-standard APIs and a permission model. Vite and Jest are the single-purpose tools Bun's bundler and test runner most often replace.",
  "categories": [{ "slug": "programming-languages", "primary": true }],
  "tags": ["javascript", "typescript", "open-source", "cli", "runtime"],
  "use_cases": ["build-web-apps", "host-web-apps"],
  "operating_systems": ["macos", "linux", "windows"],
  "execution_modes": ["local", "self-hosted"],
  "interfaces": ["cli", "library"],
  "deployment_models": ["on-premises", "desktop"],
  "integrations": ["npm registry", "Hono", "Next.js", "TypeScript", "Docker"],
  "data_formats": ["JSON", "TOML (bunfig)", "bun.lock", "SQLite"],
  "languages": ["Zig", "JavaScript", "TypeScript", "C++"],
  "source_model": "open-source",
  "license_spdx": "MIT",
  "pricing_model": ["open-source", "free"],
  "self_hostable": true,
  "sources": [
    { "url": "https://bun.sh/", "type": "official_site", "title": "Bun — A fast all-in-one JavaScript runtime", "supports": ["name", "summary"], "checked_at": "2026-11-02" },
    { "url": "https://bun.sh/docs", "type": "official_docs", "title": "Bun Documentation", "supports": ["capabilities"], "checked_at": "2026-11-02" },
    { "url": "https://github.com/oven-sh/bun/blob/main/LICENSE.md", "type": "license_page", "supports": ["license_spdx", "limitations"], "checked_at": "2026-11-02", "note": "Bun itself MIT; statically linked JavaScriptCore is LGPL-2" }
  ],
  "confidence": "high",
  "discovery_method": "editorial-research",
  "depth": "standard",
  "editorial_status": "reviewed",
  "visibility": "public",
  "featured": false,
  "author": "batch-B1"
}
