npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@vizij/orchestrator-wasm

v0.4.0

Published

WASM bindings for Vizij orchestrator core (JS wrapper)

Downloads

347

Readme

@vizij/orchestrator-wasm

Vizij's orchestrator runtime for JavaScript.

This package ships the WebAssembly build of vizij-orchestrator-core together with a TypeScript wrapper, ABI checks, and orchestration fixtures. It is the primary JavaScript entry point for registering graph and animation controllers, staging blackboard inputs, and stepping merged writes.

Overview

  • Browser and Node compatible ESM package.
  • Wrapper class: Orchestrator.
  • Low-level init and ABI helpers: init(), abi_version().
  • Fixture helpers: listOrchestrationFixtures, loadOrchestrationBundle, loadOrchestrationDescriptor, loadOrchestrationJson.
  • Built from the wasm package in pkg/ plus TypeScript glue in src/.

Installation

npm install @vizij/orchestrator-wasm

For local workspace development:

pnpm run build:wasm:orchestrator
pnpm --filter @vizij/orchestrator-wasm build

API

Top-level exports:

async function init(input?: InitInput): Promise<void>;
function abi_version(): number;
async function createOrchestrator(opts?: CreateOrchOptions): Promise<Orchestrator>;
async function loadOrchestrationBundle(key: string): Promise<OrchestrationBundle>;

Notable Orchestrator methods:

registerGraph(cfg: GraphRegistrationInput | string): string;
replaceGraph(cfg: { id: string; spec: GraphSpec; subs?: GraphSubscriptions }): void;
registerMergedGraph(cfg: MergedGraphRegistrationConfig): string;
registerAnimation(cfg: AnimationRegistrationConfig): string;
exportGraph(id: string): GraphSpec;
prebind(resolver: (path: string) => string | number | null | undefined): void;
setInput(path: string, value: ValueJSON, shape?: ShapeJSON): void;
setHotInputs(paths: string[], opts?: { epsilon?: number }): void;
setInputsSmart(paths: string[], values: Float32Array, shapes?: (ShapeJSON | null)[]): void;
removeInput(path: string): boolean;
step(dtSeconds: number): OrchestratorFrame;
stepDelta(dtSeconds: number, sinceVersion?: number | bigint): OrchestratorFrame & { version: bigint };
listControllers(): { graphs: string[]; anims: string[] };
removeGraph(id: string): boolean;
removeAnimation(id: string): boolean;
setDebugLogging(enabled: boolean): void;
normalizeGraphSpec(spec: object | string): Promise<object>;

Usage

import { init, createOrchestrator } from "@vizij/orchestrator-wasm";

await init();
const orchestrator = await createOrchestrator({ schedule: "SinglePass" });

const graphId = orchestrator.registerGraph({
  spec: { nodes: [], edges: [] },
});

orchestrator.setInput("demo/input/value", { float: 1.0 });
const frame = orchestrator.step(1 / 60);

console.log(graphId, frame.merged_writes, frame.timings_ms);

Use replaceGraph for structural graph edits. stepDelta is the incremental stepping API when a host wants versioned frame diffs instead of full snapshots.

Fixtures

Fixture bundles are loaded from @vizij/test-fixtures at build time:

import { createOrchestrator, loadOrchestrationBundle } from "@vizij/orchestrator-wasm";

const bundle = await loadOrchestrationBundle("chain-sign-slew-pipeline");
const orchestrator = await createOrchestrator({
  schedule: bundle.descriptor.schedule ?? "SinglePass",
});

Available fixture keys today include:

  • scalar-ramp-pipeline
  • blend-pose-pipeline
  • chain-sign-slew-pipeline
  • merged-blend-pipeline

Troubleshooting

  • ABI mismatch: rebuild with pnpm run build:wasm:orchestrator.
  • Graph registration errors: normalize specs first and check typed path strings.
  • Empty merged_writes: confirm a controller actually emits output paths.

Development And Testing

pnpm run build:wasm:orchestrator
pnpm --filter @vizij/orchestrator-wasm test
cargo test -p vizij-orchestrator-wasm

The package test script rebuilds the wrapper and runs the compiled Node test bundle from dist/orchestrator-wasm/tests/all.test.js.

Related Packages