Skip to main content

JavaScript SDK 0.2.0 — first stable release, on npm

The first stable release of the Valen HTTP and modular ONNX SDK for JavaScript and TypeScript, published on npm as @valen-team/sdk.

Highlights​

  • Decisions and SystemOne requests over HTTP, and local inference with modular ONNX bundles.
  • Local asset integrity checks and offline caching; text, image and video preprocessing.
  • Promotes the 0.2.0 development API without a request/response schema change.

Package name​

The npm package is @valen-team/sdk, because the original @valen scope was unavailable. The GitHub v0.2.0 release is preserved; the npm-v0.2.0 tag records the scope change, and the inference source and dependency versions are unchanged. Use @valen-team/sdk in dependency names and imports:

JavaScript
import { Valen } from '@valen-team/sdk';

Compatibility​

  • Node.js 20+; the Node backend uses ONNX Runtime 1.30.0.
  • Browser inference uses the explicitly pinned development WebGPU runtime.
  • ONNX format_version=2, contract_version=valen-decisions-1. GGUF models are served through HTTP, not Valen.local.

Validation​

The package passed 12 contract tests, TypeScript checks and packaged self-import under the new name, and passed Linux CPU 0.8B ONNX FP32 text inference with probabilities matching the Python SDK exactly. The registry SRI and SHA1 match the reviewed tarball.

Install​

Terminal
npm install @valen-team/sdk@0.2.0