Hello Bun!

Bun... chi esser tuuu?

Bun è un runtime JavaScript

Bun è un runtime JavaScript

Server-side rendering React

Bun è un PACKAGE MANAGER

Bun è un PACKAGE MANAGER

Installing dependencies from cache for a Remix app.

Bun è un Bundler

Bun è un TEST Runner

Bun è un TEST Runner

Running the test suite for Zod

Bun is an all-in-one toolkit

Bun's superpowers

  • Speed
    Bun processes start 4x faster than Node.js currently
     
  • TypeScript & JSX support
    You can directly execute .jsx, .ts, and .tsx files. Bun's transpiler converts these to vanilla JavaScript before execution

Bun's superpowers

  • ESM & CommonJS compatibility
     
import { stuff } from "./es-module.js";
import Stuff from "./es-module.js";
const myStuff = require("./my-commonjs.cjs");

Bun's superpowers

  • Web-standard APIs
    Bun implements standard Web APIs like fetch, WebSocket, and ReadableStream. Leveraging JavaScriptCore engine, developed by Apple for Safari, so some APIs like Headers and URL directly use Safari's implementation.
     
  • Node.js compatibility. In addition to supporting Node-style module resolution, Bun aims for full compatibility with built-in Node.js globals (process, Buffer) and modules (path, fs, http, etc.)
    This is an ongoing effort that is not complete

Bun's so faaast...

Bun è scritto in zig

Bun

By Quirico Tursi