Total Pageviews

Sunday, 28 June 2026

Bun

 

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one

 

stars Bun speed

Documentation   •   Discord   •   Issues   •   Roadmap

What is Bun?

Bun is an all-in-one toolkit for JavaScript and TypeScript apps. It ships as a single executable called bun.

At its core is the Bun runtime, a fast JavaScript runtime designed as a drop-in replacement for Node.js. It's written in Zig and powered by JavaScriptCore under the hood, dramatically reducing startup times and memory usage.

bun run index.tsx             # TS and JSX supported out-of-the-box

The bun command-line tool also implements a test runner, script runner, and Node.js-compatible package manager. Instead of 1,000 node_modules for development, you only need bun. Bun's built-in tools are significantly faster than existing options and usable in existing Node.js projects with little to no changes.

bun test                      # run tests
bun run start                 # run the `start` script in `package.json`
bun install <pkg>             # install a package
bunx cowsay 'Hello, world!'   # execute a package

Install

Bun supports Linux (x64 & arm64), macOS (x64 & Apple Silicon), and Windows (x64 & arm64).

Linux users — Kernel version 5.6 or higher is strongly recommended, but the minimum is 5.1.

x64 users — if you see "illegal instruction" or similar errors, check our CPU requirements

# with install script (recommended)
curl -fsSL https://bun.com/install | bash

# on windows
powershell -c "irm bun.sh/install.ps1 | iex"

# with npm
npm install -g bun

# with Homebrew
brew tap oven-sh/bun
brew install bun

# with Docker
docker pull oven/bun
docker run --rm --init --ulimit memlock=-1:-1 oven/bun

Upgrade

To upgrade to the latest version of Bun, run:

bun upgrade

Bun automatically releases a canary build on every commit to main. To upgrade to the latest canary build, run:

bun upgrade --canary

View canary build

Quick links

Guides

Essentials

Articles

Courses & Books

Boilerplates

Extensions

Frameworks

  • Elysia - Fast, and friendly Bun web framework.
  • Hono - Ultrafast web framework for Cloudflare Workers, Deno, and Bun. Fast, but not only fast.
  • Vixeny - A fast, pure functional web framework for Bun and Deno.
  • Grace - An innovative, type-safe and easy-to-use API framework.
  • Primate - Expressive, minimal and extensible web framework.
  • NBit - A zero-dependency, strongly-typed web framework for Bun, Node and Cloudflare workers.
  • GraphQL Yoga - A fast, fully featured GraphQL Framework that runs on Bun, Cloudflare Workers, Deno, and any JS environment.
  • Gamepadzilla A plug-and-play gamepad frontend framework for HTML5 mobile games, supporting both virtual and physical joysticks. No scripting required.
  • BunWork - Simple, Fast and Minimalist Backend Framework with No Pain
  • Brisa A full-stack web framework with Server Actions and Web Components with JSX + signals
  • Mantou - A Fullstack React Framework with auto generated documentation.
  • Blade — Build instant web apps with React.

Libraries

  • @stricjs/utils - A set of blazingly fast, general-purpose web utilities.
  • Hattip - Set of JavaScript packages for building HTTP server applications, with Bun support.
  • Siopao - Minimal routing library. Based on Radix Tree.
  • Fluxify - A neat little library powered by Bun for building apis.
  • GraphQL Mesh - Gateway that takes any source API and exposes GraphQL. Runs on Bun, Cloudflare Workers, Deno, and any JS environment.
  • bun-types - Typescript with Bun.

Utilities

  • bun-fs-router-plugin - Bundler plugin to enable filesystem based routing at build time
  • bun-utilities - Bindings for useful functions for bun.
  • bun-livereload - Automatically reload any imports.
  • bun-html-live-reload - Automatically reload html when Bun server hot reloads.
  • bun-wifi-name - Get current wifi name in Bun.
  • serve-static-bun - Serve static files using Bun.serve or Bao.js.
  • bun-promptx - Terminal prompt library based on bubbles via bun:ffi.
  • blipgloss - Style definitions for nice terminal layouts 👄.
  • Orama - 🌌 Fast, in-memory, typo-tolerant, full-text search engine written in TypeScript.
  • bnx - zx inspired shell for Bun/Node.
  • bun-aws-lambda - Hacky attempt to get bun to run on AWS Lambda
  • postgres-bun - fast postgres bindings for bun runtime (libpq ffi)
  • prerender-macro - Bun plugin to prerender JSX components using a kind of macro
  • type-explorer - Runtime type inspection and schema generation for JS/TS.

Adapters

Videos

[EN] 🇬🇧

[ES] 🇪🇸

Tools

  • bun.new - Instant Bun playground in browser.
  • Bum - A fast Bun version manager written in Rust.
  • sublime-bun - Bun binary files viewer and other Bun-related stuff for Sublime Text editor.
  • Shumai - A delicious new outlook on command line argument handling with Bun.
  • asdf-bun - asdf version manager plugin for installing Bun.
  • setup-bun - Set up your GitHub Actions workflow with a specific version of Bun.
  • action-setup-bun - Setup GitHub Actions workflow with a specific version of Bun.
  • bun-discord-bot - Interaction Discord bot written in JS and TS using Bun runtime environment.
  • bun-discord-bot(serverless) - Official serverless discord bot for bun discord server.
  • bunbot - Native cross-platform GUI automation for the Bun runtime. Supports Mac and Windows for now.
  • Discall - A async functional discord API wrapper written in bun.
  • bun-doc - A procedural documentation and website generator written in Bun.
  • VS Code Bun extension - VS Code extension to execute JavaScript .js file or TypeScript .ts file by Bun.

Community

from  https://github.com/oven-sh/awesome-bun


No comments:

Post a Comment