Bun: JavaScript runtime, bundler, and package manager
Fast JavaScript runtime with built-in bundler and package manager.
Learn more about bun
Bun is a modern JavaScript runtime, package manager, and bundler built from the ground up using the JavaScriptCore engine and written in Zig for performance optimization. The runtime provides native APIs for common operations like file I/O and SQLite database access through built-in modules that bypass the need for external dependencies. It implements fast file system operations using direct system calls and includes an embedded SQLite driver that supports prepared statements, transactions, and synchronous query execution. The architecture prioritizes startup time and execution speed by bundling core functionality directly into the runtime rather than relying on separate packages. Bun achieves significant performance improvements over traditional Node.js workflows through optimized native implementations of package management, transpilation, and module resolution.
Zig and JavaScriptCore implementation
Bun is written in Zig and uses JavaScriptCore as its JavaScript engine, which differs from Node.js's V8 engine. This architectural choice affects startup time, memory usage, and runtime characteristics.
Integrated toolchain
Rather than separate tools, Bun combines runtime, bundler, test runner, and package manager into a single executable. This reduces the number of dependencies and configuration files needed for JavaScript projects.
Built-in TypeScript and JSX support
Bun handles TypeScript and JSX files natively without requiring separate build steps or configuration. Files are transpiled on execution without generating intermediate files.
// Read and write files using Bun's native APIs
const file = Bun.file("data.json");
const data = await file.json();
// Write file with Bun.write
await Bun.write("output.txt", "Hello from Bun!");
// Read file as text
const content = await Bun.file("output.txt").text();Bun v1.3.6
- –@billywhizz
- –@cirospaciari
- –@dylan-conway
- –@franklinfollis
- –@jackkleeman
Bun v1.3.5
- –@cirospaciari
- –@dylan-conway
- –@hamidrezahanafi
- –@jarred-sumner
Bun v1.3.4
- –@dylan-conway
- –@jarred-sumner
- –@lydiahallie
- –@markovejnovic
- –@shendongming
See how people are using bun
Top in Developer Tools
Related Repositories
Discover similar tools and frameworks used by developers
Neovim
Refactored Vim with modern APIs, async job control, and Lua scripting while maintaining plugin compatibility.
Bubble Tea
Go framework for terminal user interfaces based on The Elm Architecture with inline/fullscreen modes.
fonts
TrueType font binaries and metadata organized by license.
winget-cli
Multi-interface Windows package manager for Store and community repositories.
json-server
Zero-config REST API server from JSON files.