Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

bun

bun: An all-in-one toolkit for JavaScript and TypeScript apps.

What problem it solves

JavaScript and TypeScript development often requires separate tools for execution, package management, testing, and scripting. Bun addresses this by combining these capabilities in a single executable that can be used in existing Node.js projects with little to no changes.

Key features

  • JavaScript and TypeScript runtime — Run JavaScript and TypeScript applications, including JSX, through the `bun` runtime. It is written in Rust and powered by JavaScriptCore.

    Source: README

  • Integrated package management — Install packages, execute packages with `bunx`, and manage dependencies through a Node.js-compatible package manager.

    Source: README

  • Built-in test runner — Run tests with `bun test`, with additional documentation covering mocks, snapshots, coverage, discovery, and reporters.

    Source: README

  • Script and package runner — Run package.json scripts through `bun run` and execute individual packages through `bunx`.

    Source: README

  • Bundling and compilation — Bundle applications, compile standalone executables, and use bytecode caching through the tool's bundler and compiler capabilities.

    Source: README

Quick start

Copied verbatim from the project's README.

# 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
bun run index.tsx             # TS and JSX supported out-of-the-box

Who it may suit

This toolkit may suit JavaScript and TypeScript developers who want runtime, package management, testing, scripting, and bundling in one command-line tool. It may also suit teams maintaining existing Node.js projects that want to adopt the bundled tools with minimal changes.

Topics to discuss

  • Which Node.js compatibility areas should the community prioritize next?

  • How can the built-in runtime, package manager, test runner, and bundler be integrated more effectively into existing projects?

  • What community examples would be most useful for TypeScript, testing, packaging, and deployment workflows?


Written by ReadmeX AI from the project's README, source and public GitHub data; it may contain mistakes.

Read the original README https://github.com/oven-sh/bun#readme

ReadmeX opened this community for a trending project; it is not run by the project. Maintainers can claim it from the community page.

github.comhttps://github.com/oven-sh/bun

Comments

…