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/harness

v0.2.6

Published

VisIQ SDK — AI agent governance harness

Readme

@visiq/harness

Governance for AI agents — one function, injected into your agentic framework.

@visiq/harness wraps the tools and executors of your agent framework so every tool call and retrieval is evaluated against your VisIQ governance rules in process, before it runs. Decisions are made by the same compiled governance core (@visiq/core-wasm) that powers the VisIQ platform — so what you enforce locally is exactly what the control plane authored.

  • Fail-closed by design — if a decision can't be made (core unavailable, network error, malformed policy), the call is denied, never allowed.
  • One call to adoptvisiq(target) wraps a framework executor or an individual tool. No rewrite of your agent.
  • Human-in-the-loop — an approval_required decision blocks the tool and waits for a human to approve/deny (bounded by a timeout that itself fails closed).
  • Retrieval redaction — masks sensitive fields in retrieved content according to policy.

Install

npm install @visiq/harness

@visiq/core-wasm (the compiled decision core) is a required dependency and is installed automatically. Node.js ≥ 20 only (the core is loaded as native Node WASM — not a browser build).

Quickstart

import { visiq } from "@visiq/harness";
import { AgentExecutor } from "langchain/agents";

// Wrap your framework's executor — every governed tool call now flows
// through VisIQ before it executes.
const executor = visiq(new AgentExecutor({ agent, tools }));

await executor.invoke({ input: "..." });

Wrap an individual tool with an explicit, rule-friendly agent identity:

const search = visiq(new SearchTool(), { agentId: "research-agent" });

Configuration

Options may be passed to visiq(target, options) or supplied via environment variables (option takes precedence, then the env var):

| Option | Env var | Purpose | |---|---|---| | apiKey | VISIQ_API_KEY | Backend API key. | | endpoint | VISIQ_ENDPOINT | Backend endpoint URL. | | agentId | VISIQ_AGENT_ID | Stable agent identity. If unset it is derived (package name → hostname) and auto-provisioned in monitor mode. | | hitlTimeoutMs | VISIQ_HITL_TIMEOUT_MS | Max wait (ms) for a human to resolve an approval_required decision before failing closed. Default 120000. |

Multi-agent delegation

For multi-agent (ORCHESTRATE) flows, mint the env a child process needs so its authority is a scoped delegation of the parent's:

const childEnv = await visiq.delegate("summarizer-agent");
spawn("node", ["summarizer.js"], { env: { ...process.env, ...childEnv } });

Behavior contract

  • Deny is terminal — a denied tool call throws before the tool runs; the underlying tool is never invoked.
  • Approval blocks — an approval_required decision suspends the call until a human resolves it, or the HITL timeout elapses (then it fails closed).
  • Errors fail closed — any evaluation error results in denial, never a silent allow.

License

MIT © VisIQ Labs. See LICENSE.