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

@coreguard/sdk

v0.1.0

Published

CGEP/1 signed-intent SDK — verifyBinding* recomputation surface (WS-2) + guard.* intent lifecycle (Phase 1)

Readme

@coreguard/sdk — Signed Intent SDK (WS-2)

Consumer surface for the CoreGuard signed-intent authorization binding (spec/signed-intent-sdk.md). It is NOT a source of truth and it NEVER decides. The decision stays the Firewall's (decideFirewall); the SDK re-derives and verifies the authorization binding so an integrator can consume it without ever trusting a caller-supplied claim.

The red line (§4.0)

verifyBinding is NOT an API that takes { bindingRef, executionScope, authorized=true, from, relayer } and ratifies them. It runs the full recompute pipeline every call:

intentRef (H(CGEP/1:INTENT, intent))
  → manifestId (H(CGEP/1:AGENT-PROVENANCE, declarationCore(declaration)))
  → bindingRef (H(CGEP/1:FW-BINDING, {intentRef, manifestId, signature}))
  → executionScope (ONLY from the authoritative frozen decision record, FSR-1)
  → authority probe (EOA recover / EIP-1271 magic, injected adapters only)
  → independently derived result

Hard rules you cannot opt out of:

  • Caller-supplied bindingRef / executionScope / authorized / relayer are never honored and never appear in the result. A caller-supplied bindingRef, if given via callerBindingRef, is comparison metadata only: a mismatch ⇒ deterministic NOT_PROVEN / BINDING_REFERENCE_MISMATCH, never OK/BOUND.
  • executionScope is read only from the frozen DECISION record — record.binding.executionScope, whose decisionRef = H("CGEP/1:FW-DECISION", record) is independently recomputed (content address). No record ⇒ NOT_RUN / DECISION_RECORD_MISSING.
  • Execution evidence (executionRef, txHash, receipt, CONTRACT_AUTHORIZATION, CONTRACT_EXECUTION_BINDING, executionBlock) into any PRE binding call is a TypeError (Q-FW10 seam).
  • from / relayer never authorizes. For EIP-1271, from is the explicit eth_call caller context — it MAY affect the probe result (probe semantics only); it never redefines signerBinding.address.
  • Anything missing/absent fails closed: NOT_RUN/NOT_PROVEN, never an implicit OK.

Usage

import { verifyBinding } from "@coreguard/sdk";
// or, in-repo: import { verifyBinding } from "../../packages/sdk/index.js";

const result = await verifyBinding({
  intent,            // canonical intent
  declaration,       // signed CGEP/1 INTENT_DECLARATION
  frozenRecord,      // authoritative frozen FW-DECISION record (from decideFirewall)
  callerBindingRef,  // OPTIONAL reference-only (FSR-2 comparison)
  authorityAtState,  // decimal block string at which the authority probe runs
  evm,               // injected EOA adapter (recoverSignerAddress, typedDataDigest)
  contractAuth,      // injected { ethCall, getCode } for EIP-1271
  from,              // OPTIONAL EIP-1271 eth_call caller context
});

Result contract

{
  status: "OK" | "NOT_PROVEN" | "NOT_RUN",
  label:            // failure label, or "BOUND" on OK
  reason?,          // failure detail
  stage?,           // "binding" | "reference" | "scope" | "authority" (null on OK)
  recomputed: { intentRef, manifestId, bindingRef },  // always independently re-derived
  semantics,        // { intentRef, manifestId, scope, chainId, nonce, signer } (WS-1)
  instance,         // { bindingRef, signature }                  (WS-1)
  executionScope,   // ONLY when OK — byte-identical to the frozen record's scope
  decisionRef,      // content-derived decisionRef of the verified record
  authority,        // { status, label, path, atState, reason? }  probe sub-result
}

Integration: forward an OK result's { intent, declaration } to authorizeForDecision / the Firewall — the SDK verifies the binding, it does not decide.