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

@marketnow/trust-core

v2.0.3

Published

UTA Verification Core — the full agent-trust stack in one zero-dependency package: 12-stage verification pipeline, Ed25519 (RFC 8032) + JCS (RFC 8785) canonicalization, proof-of-possession, behavioral baselines with statistical drift detection (7 signal c

Readme

@marketnow/trust-core

UTA Verification Core v2 — the full agent-trust stack in one zero-dependency package: behavior analysis (baselines + drift), policy engine (capability graph + org policies + approval workflow), trajectory analysis (attack chains + data flow), and cross-agent trust, on top of the 12-stage verification pipeline. Every module ships typed end-to-end and is exercised by a registry-installed smoke suite (21/21) before release.

npm install @marketnow/trust-core

Behavior — baselines + drift

import { computeBaseline, detectDrift } from '@marketnow/trust-core';

const baseline = computeBaseline(observations, { server_id, server_version, tool_fingerprint_hash, window_start, window_end });
const drift = detectDrift(baseline, baselineObs, currentObs, currentWindow);
// drift.signals — 7 signal classes; drift.severity 'critical' on new egress hosts,
// credential env reads, process spawns, latency/data-volume anomalies

Capability graph + org policies

import { matchCapabilities, MINIMAL_SAFE, evaluatePolicy, DEFAULT_STRICT_POLICY } from '@marketnow/trust-core';

const match = matchCapabilities(manifest, MINIMAL_SAFE);     // matches: boolean + satisfied/unsatisfied
const decision = evaluatePolicy(trustScore, manifest, DEFAULT_STRICT_POLICY);
// → { action: 'ALLOW' | 'REQUIRE_APPROVAL' | 'BLOCK', reason, rules_triggered }

Three preset policies (STRICT / ENTERPRISE / PERMISSIVE) + full approval workflow (createApprovalRequest, approveRequest, denyRequest, TTL, pending caps).

Trajectory — attack chains + data flow

import { detectAttackChains, scoreTrajectory, buildDataFlowGraph } from '@marketnow/trust-core';

const chains = detectAttackChains(calls);   // AC-001 search→read→download→execute, AC-002 read .env→exfiltrate, …
const traj = scoreTrajectory(calls);        // risk 0–10 + should_block_call index
const flow = buildDataFlowGraph(calls);     // nodes/edges + exfiltration_paths

Each step individually allowed — the chain is what gets blocked (each action alone = ALLOW, chain = BLOCK).

Cross-agent trust + memory poisoning

import { evaluateDelegation, scanMemoryForPoisoning } from '@marketnow/trust-core';

const delegation = evaluateDelegation(request, { from_trust_score, to_trust_score, to_capabilities, to_revoked, to_suspicious_flags, delegation_chain_depth });
const scan = scanMemoryForPoisoning(memoryEntries); // instruction injection, taint, sensitivity anomalies

Core (v1 line)

| Export | What it does | |---|---| | verifyCredential(credential, context) | 12-stage verification pipeline, structured VerificationResult | | TrustEngine | Composable trust-decision engine over the pipeline | | sign / verify | Ed25519 (RFC 8032) over JCS-canonicalized payloads | | canonicalize / canonicalHash | RFC 8785 JCS + SHA-256 | | generatePoPChallenge / verifyPoP | Proof of Possession | | RevocationTransparencyLog | RFC 6962-style Merkle log, signed tree heads, inclusion/consistency proofs | | computeToolFingerprint / diffFingerprints | TFP-1.0 tool fingerprinting + drift reports | | computeConfidence / summarizeFindings | Evidence-first findings: risk score + confidence score + coverage |

Design principles

  • Fail-closed: unknown revocation state or unreachable evidence never counts as "valid".
  • Deterministic: RFC 8785 JCS before every hash/signature.
  • Zero dependencies: only node:crypto.
  • Typed end-to-end: full .d.ts for every module.

Related packages

  • @marketnow/trust-adapters — 9 credential formats (ATC, EAT, A2A, W3C-VC, OAuth, SPIFFE, X.509, MCP, ZTA)
  • @marketnow/trust-gateway — runtime gateway (TrustGateway, withTrustGateway)
  • marketnow-mcp — MCP server exposing the live trust tools (15 tools)
  • agent-trust-card — ATC/1.0 SDK and CLI

License

Dual-licensed under MIT OR Apache-2.0, at your option — free for any use, including commercial use. This repo and all MarketNow npm packages (marketnow-mcp v1.14.0+, agent-trust-card v1.4.0+, @marketnow/*) ship dual-licensed: see LICENSE-MIT and LICENSE-APACHE. Trademarks ("MarketNow", "UTA", "ATC") are reserved by AliceLabs LLC — see NOTICE.