Bun
bun.sh
- Free plan
- Windows
- macOS
- Linux
What Bun is
Bun combines a JavaScript and TypeScript runtime, package manager, test runner, and bundler in one binary. The runtime uses JavaScriptCore and supports Node.js APIs and node_modules. Its npm-compatible package manager handles workspaces, catalogs, overrides, and patches, with dependency resolution, private registry authentication, offline installation, and a readable lockfile. The test runner includes Jest-compatible expectations, mocks, snapshots, DOM testing, and coverage. For browser and server projects, the bundler handles TypeScript, JSX, CSS, and HTML; it also supports a development server with hot module reloading and single-file executables. Built-in APIs cover databases, Redis, S3-compatible storage, HTTP, and WebSockets. Bun names Next.js, Remix, Nuxt, Astro, SvelteKit, Hono, and Elysia among the frameworks that run on it. It is MIT-licensed and available for macOS, Linux, and Windows, with minimum operating-system and processor requirements. The free, open-source toolkit can be installed through an official script, npm, Homebrew, Windows package managers, or Docker.
Who it suits
Bun suits JavaScript and TypeScript developers looking for runtime, package management, testing, and bundling in one toolkit. It also fits teams using the named frameworks or supported operating systems.
Good to know, and what to watch
- Combines runtime, package manager, test runner, and bundler.
- Supports workspaces, private registries, and offline installation.
- Test runner includes mocks, snapshots, and coverage.
- Bundler handles TypeScript, JSX, CSS, and HTML.
- Free and MIT-licensed.
- Requires macOS 13.0 or later.
- Windows requires version 1809 or later.
- Requires an x64 CPU with SSE4.2 support.
Plans
Every plan and priceBun
Open source
Getting started
- Visit the Bun website
- Install using the official script, npm, Homebrew, a Windows package manager, or Docker
- Choose a supported macOS, Linux, or Windows system
- Install project dependencies with Bun’s package manager
- Run tests or bundle the project with Bun
Limits to check
Bun is free and MIT-licensed, with no paid-plan limits listed. Platform requirements include macOS 13 or later, Windows 10 version 1809 or later, and an x64 CPU with SSE4.2 support.
The Club's review
Bun is an open-source JavaScript and TypeScript runtime that also brings package management, testing, and bundling into one toolkit. It suits developers who want a consolidated workflow and whose machines meet its processor and operating-system requirements. Its breadth is the main draw; its platform minimums are the key reason to look elsewhere.
Overview
Bun combines a runtime, package manager, test runner, and bundler in a single binary. That makes it a broad choice for JavaScript development rather than a package manager alone: one toolkit covers running code, managing dependencies, testing, and preparing browser or server builds. Bun is MIT-licensed and developed in public on GitHub, and it directs users to Discord for support and discussion.
The runtime executes JavaScript and TypeScript on JavaScriptCore and supports Node.js APIs and node_modules. Bun names Next.js, Remix, Nuxt, Astro, SvelteKit, Hono, and Elysia among frameworks that run on it. That range makes Bun relevant to developers working in those ecosystems, though framework compatibility by itself does not guarantee that an individual project will work without changes.
Key features
Runtime and package management
Bun’s npm-compatible package manager supports workspaces, catalogs, overrides, and patches, with a readable lockfile. It accepts npm packages, Git and GitHub repositories, tarballs, file dependencies, and npm aliases. Dependency resolution, private registry authentication, and offline installation are supported, giving teams several ways to manage dependencies across projects and network conditions.
Testing and bundling
The test runner includes Jest-compatible expectations, mocks, snapshots, DOM testing, and coverage. Developers can use those capabilities within Bun’s wider toolkit instead of treating testing as a separate product. The bundler handles TypeScript, JSX, CSS, and HTML for browsers and servers; its dev server supports hot module reloading, and it can create single-file executables. This is a substantial set of build options, though teams focused only on one of these jobs may prefer a narrower tool.
Built-in APIs
Bun includes APIs for PostgreSQL, MySQL, SQLite, Redis, S3-compatible storage, HTTP, and WebSockets. Its built-in security-related APIs include password hashing with Argon2 and bcrypt, CSRF tokens, and OS keychain secrets storage. These integrations put a variety of common development capabilities alongside the runtime, but they do not change the need to check whether Bun’s platform requirements fit the machines in a team’s environment.
Pricing
Bun is free and open source. The Bun plan costs nothing and includes an open-source JavaScript runtime and toolkit under the MIT license. There are no paid plan tiers to weigh against that offer, making the cost straightforward for individual developers and teams alike.
Platforms
Bun supports Linux, macOS, and Windows, with minimum requirements that narrow that compatibility: macOS 13.0 or later, Windows 10 version 1809 or later, and an x64 CPU with SSE4.2 support. Check those requirements before standardizing on Bun, particularly for teams with older devices or mixed hardware. Installation options include an official script, npm, Homebrew, Windows package managers, and Docker.
Who it's for
Bun is a strong fit for JavaScript and TypeScript developers who want a runtime, dependency management, testing, and bundling together, especially those working with its named frameworks or needing workspace and private-registry support. Its free, MIT-licensed toolkit also makes it accessible to teams that want to adopt it without a software subscription. It is a weaker fit where machines fall below its operating-system or processor minimums, or where the need is specifically for a package manager rather than a broader development toolkit.
Pros and cons
- Pro: A single binary combines runtime, package management, testing, and bundling, reducing the number of separate tools needed for those tasks.
- Pro: The npm-compatible package manager supports workspaces, several dependency sources, private registry authentication, and offline installation.
- Pro: The test runner and bundler cover a wide range of common development needs, including DOM testing, hot module reloading, and single-file executables.
- Pro: The MIT-licensed toolkit is free, and installation options include package managers and Docker as well as an official script.
- Con: Bun requires macOS 13.0 or later, Windows 10 version 1809 or later, and an x64 CPU with SSE4.2 support, excluding older systems and some processors.
- Con: Its broad scope is unnecessary for readers who only need a package manager.
Alternatives
npm is worth considering when public package publishing and public registry access are the main need; its free plan is aimed at public package authors. Choose Yarn for a free, open-source package manager without adopting Bun’s bundled runtime, test runner, and bundler. JSPM is another free option for open-source import-map package management tools.
Pantry, Deno Sandbox, and vlt are alternatives to consider for readers comparing other package or development tools. Bower is a free command-line utility, while Textadept is a free, MIT-licensed text editor. For broader comparisons, browse JavaScript Package Managers, Monorepo Management Tools, and Package Managers.
Verdict
Choose Bun if you want a free, MIT-licensed JavaScript and TypeScript toolkit that brings runtime, package management, tests, and bundling together. That consolidation is its clearest advantage. Look elsewhere if your hardware misses its minimum requirements or you only need a package manager.
The verdict
Bun brings several JavaScript development tools together and includes built-in APIs for databases, storage, and networking. Check its operating-system and processor requirements before choosing it.
Questions people ask
Is Bun free and open source?
Yes. Bun is free, open-source software under the MIT license.
Which operating systems does Bun support?
Bun supports macOS, Linux, and Windows, subject to its stated operating-system and x64 SSE4.2 requirements.
What package sources can Bun install?
Its package manager supports npm packages, Git and GitHub repositories, tarballs, file dependencies, and npm aliases.
Which frameworks run on Bun?
Bun names Next.js, Remix, Nuxt, Astro, SvelteKit, Hono, and Elysia.
How can Bun be installed?
Installation options include an official script, npm, Homebrew, Windows package managers, and Docker.
What the maker publishes
- Built-in integrations
- Bun includes APIs for PostgreSQL, MySQL, SQLite, Redis, S3-compatible storage, HTTP, and WebSockets. source
- Bundling
- Bun’s bundler handles TypeScript, JSX, CSS, and HTML for browsers and servers, and supports a dev server with hot module reloading and single-file executables. source
- Company
- Bun says it has joined Anthropic, which is investing in Bun as infrastructure for Claude Code, Claude Agent SDK, and future AI coding products. source
- Dependency resolution
- Yes source
- Framework compatibility
- The site names Next.js, Remix, Nuxt, Astro, SvelteKit, Hono, and Elysia as frameworks that run on Bun. source
- Install options
- The install page offers installation through an official script, npm, Homebrew, Windows package managers, and Docker. source
- Lockfile support
- Yes source
- Offline installation
- Yes source
- Open source
- Bun says it remains open-source and MIT-licensed and continues to be developed in public on GitHub. source
- Package formats
- npm packages,Git repositories,GitHub repositories,tarballs,file dependencies,npm aliases source
- Package manager
- Bun’s npm-compatible package manager supports workspaces, catalogs, overrides, patches, and a readable lockfile. source
- Platform limits
- Bun requires macOS 13.0 or later, Windows 10 version 1809 or later, and x64 CPUs with SSE4.2 support. source
- Private registry auth
- Yes source
- Runtime
- Bun runs JavaScript and TypeScript on JavaScriptCore and supports Node.js APIs and node_modules. source
- Security features
- Bun lists password hashing with Argon2 and bcrypt, CSRF tokens, and OS keychain secrets storage among its built-in APIs. source
- Support
- Bun directs users to its Discord for support and discussion. source
- Supported platforms
- macOS,Linux,Windows source
- Testing
- Bun’s test runner offers Jest-compatible expectations, mocks, snapshots, DOM testing, and coverage. source
- What it does
- Bun combines a JavaScript runtime, package manager, test runner, and bundler in a single binary. source
- Workspace support
- Yes source
Checked against the maker's pages on 7 Oct 2026.