Bun is an all-in-one JavaScript and TypeScript runtime that includes a fast package manager, bundler, test runner, and Node.js-compatible APIs. It natively executes TypeScript and JSX without a separate compilation step.
When to use: Fast server-side JavaScript, TypeScript-first projects, replacing Node.js for better startup performance, built-in SQLite, password hashing, file I/O, HTTP servers, bundling, and testing without external tooling.
When NOT to use: Projects requiring full Node.js ecosystem compatibility (some native modules unsupported), production environments needing battle-tested stability of Node.js, or browser-only code that does not need a runtime.
Bun JavaScript ランタイム、バンドラー、およびパッケージ マネージャー。 Bun.serve() HTTP サーバー、Bun.file() I/O、SQLite、パスワード ハッシュ、Bun.build() バンドラー、bun:test ランナー、およびパッケージ管理をカバーします。 Bun API を使用してビルドする場合、Bun を使用してスクリプトを実行する場合、コードをバンドルする場合、bun install/add を使用してパッケージを管理する場合、または bun:test を使用してテストを作成する場合に使用します。 ソース: oakoss/agent-skills。