Skip to main content
Bun implements a set of native APIs on the Bun global object and through several built-in modules. These APIs are heavily optimized and are the canonical “Bun-native” way to implement common functionality. Bun strives to implement standard Web APIs wherever possible. Bun introduces new APIs primarily for server-side tasks where no standard exists, such as file I/O and starting an HTTP server. In these cases, Bun’s approach still builds atop standard APIs like Blob, URL, and Request.
server.ts
Use the links in the table to jump to the associated documentation.