Skip to main content
Interop & Tooling
Node-API
Use Bun’s Node-API module to build native add-ons to Node.js
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 will work with Bun out of the box. Track the completion status of it in this issue.
As in Node.js,
Alternatively, use
.node files (Node-API modules) can be required directly in Bun.
process.dlopen:
