Node.js native N-API bindings for the tinybuf C++ protocol library.
- Node.js ≥ 18 or Bun
cmake-jsbuild toolchain (CMake ≥ 3.15, Python 3, C++17 compiler)
bun install # or npm install
bun run build # or npm run buildBuild tasks:
bun run build:native: Rebuild the C++ N-API addon withcmake-jsbun run build:ts: Compile TypeScript files withbun buildbun run build: Run native rebuild + TypeScript buildbun run electron-rebuild: Rebuild native addon for Electron
src/tinybuf-node.cpp: C++ N-API implementation wrapping tinybufinclude/: Header files for the underlying tinybuf C++ libraryindex.ts: TypeScript entrypoint and type definitionsCMakeLists.txt: CMake build configuration