@corsa-bind/napi
v0.7.0
Published
Native Node.js bindings for corsa and typescript-go stdio workflows
Downloads
985
Readme
@corsa-bind/napi
@corsa-bind/napi exposes the corsa Rust workspace to Node.js through
napi-rs.
Install
npm i @corsa-bind/napiThe published root package stays JS-only and pulls in the matching native binary through platform-specific optional dependencies.
What it ships
- native Node.js bindings for the
corsaAPI and LSP surface - an ESM TypeScript wrapper under
dist/ - no bundled
typescript-goexecutable
Runtime requirement
You must provide a compatible typescript-go (tsgo) executable yourself and
pass its path through TsgoApiClient.spawn({ executable: "/path/to/tsgo" }).
Development
vp install
vp run -w build_wrapper
vp test run --config ./vite.config.ts src/bindings/nodejs/corsa_node/ts/**/*.test.tsRepository-level executable examples live under examples/,
including mock-client, virtual-document, distributed-orchestrator, and
real-tsgo snapshot samples.
