oven-sh /

Bun

Live map
Snapshotmain · 8326d1b

A Rust-first native core hosts JavaScriptCore and shares parsers, networking, and package logic across commands.

Click a building or route
Choose a path

Load an entry module, advance asynchronous work, and complete an HTTP operation.

System map8 components · 10 connections
130%
Bun: one native JavaScript toolchain architectureStart at the binary, descend into the JavaScript runtime, then compare the bundled build, install, and test branches.entry point and runtim…module specifiers and …fetch, transpile, and …HTTP requests, streams…Bun binaryJavaScriptruntimeModule loaderEvent loopHTTP stackBundlerPackagemanagerTest runner
Connections
BuildingsEntryServiceComputeStorageRuntimeToolingExternal

Terms, in plain English

JavaScriptCoreWebKit's JavaScript engine, embedded by Bun for parsing and executing JavaScript.

How to study this repo

  1. 1
    Dispatch a command

    Trace the binary's selection of run, build, install, or test behavior.

  2. 2
    Load one module

    Follow a specifier through native resolution into JavaScriptCore evaluation.

  3. 3
    Compare shared machinery

    See which module and runtime services are reused by build and test commands.