Skip to main content
Node-API is an interface for building native add-ons to Node.js. Bun implements 95% of this interface from scratch, so most existing Node-API extensions work with Bun. See issue #158 for completion status. As in Node.js, you can require() .node files (Node-API modules) directly.
Alternatively, use process.dlopen: