Bun implements a set of native APIs on the `Bun` global object and through a number of built-in modules. These APIs represent the canonical "Bun-native" way to perform some common development tasks. They are all heavily optimized for performance. Click the link in the left column to view the associated documentation. {% table %} - Topic - APIs --- - [HTTP](/docs/api/http) - `Bun.serve` --- - [File I/O](/docs/api/file-io) - `Bun.file` `Bun.write` --- - [Processes](/docs/api/spawn) - `Bun.spawn` `Bun.spawnSync` --- - [TCP](/docs/api/tcp) - `Bun.listen` `Bun.connect` --- - [Transpiler](/docs/api/transpiler) - `Bun.Transpiler` --- - [Routing](/docs/api/file-system-router) - `Bun.FileSystemRouter` --- - [HTMLRewriter](/docs/api/html-rewriter) - `HTMLRewriter` --- - [Utils](/docs/api/utils) - `Bun.peek` `Bun.which` --- - [SQLite](/docs/api/sqlite) - `bun:sqlite` --- - [FFI](/docs/api/ffi) - `bun:ffi` --- - [Testing](/docs/api/test) - `bun:test` --- - [Node-API](/docs/api/node-api) - `Node-API` --- {% /table %}