bun Documentation
Bun documentation. Use for JavaScript runtime, bundler, package manager, test runner, HTTP server, SQLite, and Node.js compatibility.
Quick Reference
| Task | Entry Point |
|---|---|
| Getting started | contents/quickstart.mdx |
| Installation | contents/installation.mdx |
| Runtime APIs | contents/runtime/ |
| Bundler | contents/bundler/ |
| Test runner | contents/test/ |
| Package manager | contents/pm/ |
| Node.js compatibility | contents/runtime/nodejs-compat.mdx |
| How-to guides | contents/guides/ |
When to use
Use this skill when the user asks about:
- Bun runtime APIs (Bun.serve, Bun.file, SQLite, S3, Shell, FFI)
- Bun bundler, single-file executables, and bunfig.toml
- bun install, workspaces, and package manager CLI
- bun test, linting, and formatting
- Node.js compatibility and TypeScript support
How to find information
- First, read
TOC.mdfor complete file listing organized by directory - Identify relevant section based on user's question
- Read specific files for details
TOC.md contains all files organized by directory - always check it first.