rembrembdocs

Skip to main content

Bun home pagelight logodark logo

[Runtime

](../../index.md)[Package Manager

](../../pm/cli/install/index.md)[Bundler

](../../bundler/index.md)[Test Runner

](../../test/index.md)[Guides

](../../guides/index.md)[Reference

](https://bun.com/reference)[Blog

](https://bun.com/blog)[Feedback

](../../feedback/index.md)

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, .node files (Node-API modules) can be required directly in Bun.

const napi = require("./my-node-module.node");

Alternatively, use process.dlopen:

let mod = { exports: {} };
process.dlopen(mod, "./my-node-module.node");

Was this page helpful?

Suggest editsRaise issue

[

Cron

Previous

](../cron/index.md)[

FFI

Next

](../ffi/index.md)