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

@cognexuslabs/openclaw-artzain

v0.2.7

Published

OpenClaw plugin: CogNEXUS before_tool_call gate (deny/review/errors block; not /approve).

Readme

@cognexuslabs/openclaw-artzain

OpenClaw plugin that registers api.on("before_tool_call", …) and calls the CogNEXUS Decision API before a host tool runs. deny, review, and engine refusals (HTTP 503 / missing key) return { block: true }.

This is pattern C. Envelope pattern B (model base_url swap) is still docs/sdk/recipes/openclaw-provider.json5.

What this is not

  • Not a Connectors-panel card.
  • Not published from the engine repository. Dest (CogNEXUSlabs/cognexus-tools) publishes the npm package through Trusted Publishing, with provenance, on an openclaw-v* tag. The ClawHub listing (clawhub/SKILL.md) points at that package; it is not a code bundle.
  • Not a mapping of CogNEXUS review onto OpenClaw /approve.

Install

openclaw plugins install @cognexuslabs/openclaw-artzain

To try a change that is not released yet, install the folder from a checkout instead, dest or the engine dual-home:

openclaw plugins install ./openclaw       # CogNEXUSlabs/cognexus-tools
openclaw plugins install ./sdk/openclaw   # the engine repository

Set COGNEXUS_API_KEY on the Gateway (sandbox key from /get-a-key, not a dashboard JWT and not an envelope cnxe_… key). Optional: COGNEXUS_API_BASE_URL, or plugin config apiKey / baseUrl / agentDid.

{
  plugins: {
    entries: {
      "artzain-tool-gate": {
        enabled: true,
        config: {
          // apiKey: "cnx_…",    // or COGNEXUS_API_KEY
          // baseUrl: "https://app.cognexuslabs.ai",
        },
      },
    },
  },
}

Contract

| Outcome | Plugin result | |---|---| | allow | tool runs | | deny | { block: true, blockReason } | | review | { block: true } — human owns it in the CogNEXUS Review Queue | | HTTP 503 / 401 / 422 / missing key | { block: true } (fail closed) | | a redirect (HTTP 3xx) | { block: true }: not followed, so the key stays with the configured host |

Instance announce (v0.2, opt-in)

Instances no scanner can reach (laptops, home labs) can self-register with the CogNEXUS Agent Wrangler:

{
  "announce": true,
  "instance": "jeans-laptop",
  "announceAgents": ["main"],
  "announceSkills": ["artzain"]
}

Once per process (on the first gated tool call), the plugin POSTs this identity — names only, never content or config — to POST /api/v1/registry/announce with the same Decision API key it already holds. Rows land as source openclaw behind the standard sealed registration gate, in the review queue like every other discovery. announceAgents defaults to the hook's agentId (the identity on your decision leaves), then agentDid. Pick a stable instance name (no #) — changing it re-namespaces the rows. Announce is telemetry, not a gate: it never blocks or delays tool gating, and its failure never fails closed. Transient failures (network, 5xx, 429) retry on a later gated call; a 3xx or 4xx refusal means config — fix and restart. The success log line reports the server's registered/seen/blocked/deferred/failed counts; deferred rows are held by capacity and only submitted again on a re-announce, and failed rows hit a server-side write error and were not stored at all — an announce can be accepted (HTTP 200) and still catalogue nothing, so read the counts, not the status.

Pull enroll (v0.2.5, default on)

Agents that already hold a Decision API key pull their adapter:

{
  "enroll": true,
  "instance": "jeans-laptop",
  "enrollToken": "<one-shot token from Govern / the snippet pack>"
}

enrollToken is optional. Without it the reply is { adapter, decision: { already_have_key: true }, envelope: null } — never a cnxe_. Set enroll: false to skip. Enroll is telemetry, not a gate: it never blocks or delays tool gating. Transient failures retry on a later gated call; a 3xx or 4xx means config — fix and restart.