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

@visiq/core-wasm

v0.1.14

Published

VisIQ governance core for Node.js — the one compiled Rust rule engine behind every VisIQ SDK, prebuilt to WebAssembly; evaluate(event, bundle) takes plain objects and synchronously returns a decision object.

Readme

@visiq/core-wasm

The VisIQ governance evaluation core (experiments/matrix-v2/visiq-core-rs, the ONE compiled Rust engine) exposed to JavaScript/TypeScript via WebAssembly — so the TS SDK evaluates through the same core the Go / Java / Ruby / Python bindings use, instead of a parallel TS implementation that can drift.

const { evaluate } = require('@visiq/core-wasm');
// PLAIN OBJECTS IN, PLAIN OBJECT OUT — `evaluate` does the JSON marshalling
// itself. Do NOT pre-stringify: `evaluate(JSON.stringify(event), …)` double-
// encodes, the core sees a JSON *string* where an object belongs, and the
// decision comes back with `allowed: true` for an event policy DENIES.
const decision = evaluate(event, bundle);
if (!decision.allowed) {
  // blocked by policy — do not execute the tool call
}
  • Synchronous, no async init. --target nodejs glue instantiates the wasm from bytes at require time (new WebAssembly.Module/Instance) — a drop-in for a sync call. (Node/server only; a browser build would need --target web + async init.)
  • evaluate(event, bundle) → decision takes and returns plain objects; the language-neutral seam underneath is evaluate_json (JSON string in, JSON string out), and this package's wrapper is what stringifies/parses around it. Fail-closed (G001) on malformed input — never throws.
  • Faithful. node conformance.mjs proves it reproduces the frozen golden corpus (sdk-corpus/GOLDEN-oracle-vectors.json) — the same vectors every other binding reproduces. 118/118, 0 diverge.

Rebuild

./build.sh (needs rustup + wasm32-unknown-unknown + wasm-bindgen-cli =0.2.100; the crate pins wasm-bindgen = "=0.2.100" so CLI/schema versions match).

Scope

evaluate returns the full decision object — {decision, allowed, reason, ruleId, ruleCode, enforced, agentMode, action:{decision,argRedactionRules}, retrieval:{action,redactionRules}}. Matched-rule attribution (reason prose, ruleId, ruleCode) IS emitted in-core; decisionId is not — it is minted by the caller. @visiq/runtime declares this package a REQUIRED dependency and calls it the sole decision engine, so the harness cutover is done, not pending. Remaining seams are tracked in experiments/matrix-v2/visiq-core-rs/PARITY-GAPS.md.