-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Request
Add native Node.js C++ bindings to enable more efficient VSCode extension development.
Possible implementation
- Add N-API bindings: Create native addon using node-addon-api that wraps existing clp-ffi-js classes (
StreamReader, etc.) - Build system: Add CMake target for native addon alongside existing Emscripten build
Prebuilds: Use prebuildify for common platforms (Windows, macOS, Linux x64/ARM64) - Dual package exports:
{ "exports": { "./node": "./dist/native/clp-ffi-native.node", "./worker": "./dist/ClpFfiJs-worker.js" } }
This maintains the existing WebAssembly build while adding native Node.js support specifically for VSCode extension use cases.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request