Native Node.js bindings for Dear ImGui using N-API.
This package ships prebuilt .node binaries for major desktop targets and TypeScript declarations generated from Dear ImGui metadata.
bun install imgui-nativeimport imgui from "imgui-native";
const ctx = imgui.createContext();
const io = imgui.getIO();
// ... your frame loop ...
imgui.destroyContext(ctx);At runtime, the loader searches for:
build/Release/imgui.node(local development build)prebuild/<platform>-<arch>/imgui.node(published package binary)
Current release workflow produces prebuilds for:
linux-x64win32-x64darwin-x64darwin-arm64
Generate bindings and build:
uv sync
bun install
git submodule update --init --recursive
bun run configure
bun run buildMIT, matching Dear ImGui. See LICENSE.