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، والمجمع، ومدير الحزم. يغطي خادم HTTP Bun.serve() وBun.file() I/O وSQLite وتجزئة كلمة المرور ومجمع Bun.build() وbun:test runner وإدارة الحزم. يُستخدم عند الإنشاء باستخدام Bun APIs، أو تشغيل البرامج النصية باستخدام Bun، أو تجميع التعليمات البرمجية، أو إدارة الحزم باستخدام Bun install/add، أو كتابة الاختبارات باستخدام Bun:test. المصدر: oakoss/agent-skills.