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.
Runtime Bun JavaScript, bundler et gestionnaire de packages. Couvre le serveur HTTP Bun.serve(), les E/S Bun.file(), SQLite, le hachage de mot de passe, le bundle Bun.build(), bun:test runner et la gestion des packages. À utiliser lors de la création avec les API Bun, de l'exécution de scripts avec Bun, du regroupement de code, de la gestion de packages avec bun install/add ou de l'écriture de tests avec bun:test. Source : oakoss/agent-skills.