Skip to content

Node.js / TypeScript

The Node.js adapter binds the core to JavaScript with napi-rs. napi-rs also generates the TypeScript declarations, including the doc comments written in Rust.

The first framework integrations planned are Express and Hono, in Phase 2 of the roadmap.

The TypeScript API reference is generated from adapters/node/index.d.ts and appears under API reference once the adapter exposes an API.

The adapter validates every value that crosses the FFI boundary and carries out the effects the core returns. It never decides a cookie flag, a timeout or whether a token is valid. See how adapters work.

The adapter’s source is in adapters/node/. Read how to contribute first.