JavaScript API
Embed validation, execution, snapshots, Constraints, and rendering in an application.
JavaScript API overview
Embed WorkSpec validation, execution, snapshots, Constraints, rendering, and migration in Node.js applications.
API stability and support policy
Understand stable, experimental, compatibility, and internal WorkSpec JavaScript API classifications.
Validation APIs
Validate a WorkSpec Starting State document or a project with executable sources.
Project execution
Create one authoritative WorkSpec run with the supported runtime API.
Snapshot APIs
Inspect an existing authoritative run or create a one-call project snapshot.
Constraint execution APIs
Run Constraint source against an existing authoritative WorkSpec run.
Rendering APIs
Render a resolved WorkSpec snapshot or project as deterministic standalone SVG.
Migration API
Migrate Previous UAW Syntax data to the historical WorkSpec 2.1 shape.
State visual helpers
Create asset IDs and resolve State Library visuals with supported JavaScript helpers.
Playback model APIs
Resolve pure playback state from authored WorkSpec tasks and interactions.
Custom validation APIs
Run supported custom validators with subprocess isolation or in the current process.
Types and data structures
Reference for the public TypeScript declarations returned by the WorkSpec JavaScript API.
Tooling and analysis APIs
Experimental Changes source analysis for editors and developer tools.
JavaScript API index
Generated support classification for every export reachable from the WorkSpec package entrypoint.