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 runtime, bundler e gestore di pacchetti. Copre il server HTTP Bun.serve(), l'I/O Bun.file(), SQLite, l'hashing delle password, il bundler Bun.build(), bun:test runner e la gestione dei pacchetti. Da utilizzare durante la creazione con API Bun, l'esecuzione di script con Bun, il raggruppamento di codice, la gestione di pacchetti con installazione/aggiunta bun o la scrittura di test con bun:test. Fonte: oakoss/agent-skills.