

Provides a low-overhead foreign function interface bun:ffi for calling native code from JavaScript.Implements most of Node-API so many native Node.js modules just work.Ships with a fast SQLite3 client built-in bun:sqlite.env files automatically-no more require("dotenv").config(). Uses the fastest system calls available with Bun.write to write, copy, pipe, send, and clone files.


Exposes Bun.Transpiler-Bun's JSX & TypeScript transpiler-as an API.Supports "paths", "jsxImportSource" and more from tsconfig.json files.Transpiles every file, so TypeScript and JSX just work.Both ESM and CommonJS are supported internally Bun uses ESM. Implements Node's node_modules resolution algorithm, so you can use npm packages in Bun.Implements Web APIs like fetch WebSocket and ReadableStream.The goal of Bun is to run most of the world's JavaScript outside of browsers, bringing performance and complexity enhancements to your future infrastructure, as well as developer productivity through better, simpler tooling. Bun natively implements hundreds of Node.js and Web APIs, including ~90% of Node-API functions (native modules), fs, path, Buffer and more. Use it to run your current JavaScript & TypeScript apps or scripts - on your local computer, server or on the edge. Bun is a complete toolkit for building JavaScript apps, including a bundler, transpiler, and package manager.īun is designed as a drop-in replacement for Node.js. Bun extends JavaScriptCore, the performance-minded JS engine built for Safari. In edge computing environments, reducing cold start times is critical. Bun is a new JavaScript runtime built from scratch to serve the modern JavaScript ecosystem, with three major design goals:
