All Guides
Bun Runtime Setup
Install the Bun JavaScript/TypeScript runtime. A fast alternative to Node.js.
Beginner5 min
Setup Steps
1. Install Bun:
curl -fsSL https://bun.sh/install | bash2. Reload your shell:
source ~/.bashrc3. Check version:
bun --version4. Create a new project:
bun init5. Install packages (npm compatible):
bun install express
bun add react react-dom6. Run a TypeScript file:
bun run index.ts7. Run scripts:
bun run dev
bun run build8. Bun's built-in test runner:
bun test9. Use as a package manager (much faster):
bun install # instead of npm install
bun add package # instead of npm install package10. HTTP server (built-in):
typescript
Bun.serve({
port: 3000,
fetch(req) {
return new Response("Hello Bun!")
}
})Related Guides
Deploy to Vercel
Deploy your Next.js or React project to the Vercel platform.
Deploy to Netlify
Deploy your static site or JAMstack project to Netlify.
Deno Setup
Install the Deno JavaScript/TypeScript runtime. A secure and modern alternative.
Rust and Cargo Setup
Install the Rust programming language and Cargo package manager.