Bun API Reference
This is the complete API reference for Bun, documenting all available APIs, types, and functions. Use the sidebar navigation to browse modules and specific APIs, which are color-coded by type.
This documentation is generated from Bun's TypeScript definitions, which you can find in the oven-sh/bun repository under packages/bun-types
.
Bun
Core runtime APIs for file system, networking, processes, and more.
1645 total symbols
View documentation →
bun:ffi
Foreign Function Interface for calling native C functions from JavaScript.
215 total symbols
View documentation →
bun:jsc
Low-level JavaScript Core engine APIs for advanced use cases.
49 total symbols
View documentation →
bun:sqlite
Built-in SQLite database integration with a simple, performant API.
53 total symbols
View documentation →
bun:test
Testing utilities for writing unit and integration tests.
251 total symbols
View documentation →
Globals
Variables and classes that exist in Bun's global scope
961 total symbols
View documentation →