Last Updated: November 21, 2025
Bun
Fast all-in-one JavaScript runtime
Core Features
| Item | Description |
|---|---|
Fast Runtime
|
3x faster than Node.js |
Package Manager
|
Faster than npm/yarn |
Bundler
|
Built-in bundler |
Test Runner
|
Built-in testing |
TypeScript
|
Native TypeScript support |
Node.js Compatible
|
Run Node.js apps |
Common Commands
bun install
Install dependencies (fast)
bun run script.ts
Run TypeScript directly
bun test
Run tests
bun build ./index.tsx
Bundle for production
bun create next myapp
Create app from template
bun add package
Add package
Performance Benefits
| Item | Description |
|---|---|
Install Speed
|
25x faster than npm |
Runtime Speed
|
3x faster than Node.js |
Startup Time
|
4x faster than Node.js |
Bundling
|
Built-in, no webpack needed |
Best Practices
- Use bun install for faster dependency installs
- Run TypeScript directly without transpiling
- Use built-in test runner instead of Jest
- Leverage bun build for production bundling
💡 Pro Tips
Quick Reference
Bun is designed to be a drop-in replacement for Node.js