Browse 1.0.0 documentation
1.0.0 Documentation revision 2

Node.js Integration

Use the direct Node-API JavaScript and TypeScript surface from the supported npm package.

Audience: Node.js integrators

Package boundary#

The supported npm identity is @wa120/ait-native. It contains the portable JavaScript and TypeScript facade and selects the exact 1.0.0 platform Node-API addon.

Code · bash
npm install @wa120/ait-native@1.0.0

The package does not bundle or start ait-server. Its API loads the package-owned addon directly and does not use a child process as the binding transport.

Direct API#

Code · js
import { NativeRuntime } from "@wa120/ait-native";

const ait = new NativeRuntime();
console.log(ait.bindingInfo());
const status = ait.runCli(["status", "--json"]);
console.log(status);

The packaged ait command calls the same native binding in process. The JavaScript API and command therefore share the admitted Rust behavior.

Repository workflow#

Node.js repositories use the same initialization and generated repository instructions as every other supported repository.

Code · bash
npx --no-install ait init
npx --no-install ait status --json

AIT does not inspect package.json to choose test commands or framework behavior. The repository remains responsible for its explicit validation.

Platform packages#

Target-specific addon packages are exact-version implementation dependencies, not separate products. Applications should depend on the supported top-level package and let normal npm resolution select the matching addon.

Version authority

Checked against the exact 1.0.0 source

This page is public documentation, not a second product contract. Use the exact source and distribution contract for release authority.

Owning component Snapshots
  • ait-coreSNP-B06A48DA0245
  • ait-serverSNP-E90456E6425E
  • ait-runnerSNP-6B0A1BB3AFAD
  • ait-pythonSNP-973E3BFAF3DE
  • ait-nodeSNP-F962CC66AA62