Guides
A collection of code samples and walkthroughs for performing common tasks with Bun.
Featured Guides
Learn how to build applications with TanStack Start and Bun
Build Next.js applications using Bun as the runtime
Set up Vite with Bun for fast frontend development
Create your first HTTP server with Bun.serve
Implement real-time communication with WebSockets
Get TypeScript support and autocompletion for Bun APIs
Categories
Browse guides by category:
- Deployment - Deploy Bun applications to various platforms
- Ecosystem & Frameworks - Integrate Bun with popular frameworks
- HTTP & Networking - Build HTTP servers and handle network requests
- WebSocket - Real-time communication with WebSockets
- File System - Read and write files
- Processes - Spawn and manage child processes
- Binary Data - Convert between binary data formats
- Streams - Work with ReadableStreams and Node.js streams
- Test Runner - Write and run tests with Bun
- Package Manager - Manage dependencies with Bun
- Utilities - Common utility functions and helpers