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

@reinconsole/graph

v0.1.1

Published

Rein's reputation graph (Phase 3) — turns guard receipts and gate receipts into explainable reputation scores, and feeds them back into policy (vendorReputationLt) and gate screening.

Downloads

332

Readme

@reinconsole/graph

Phase 3 of Rein — the reputation graph. Guard receipts say what agents tried to spend; gate receipts say what vendors actually earned. The graph listens to both, scores every vendor and payer it has evidence on, and feeds the scores back into enforcement on both sides of the wire.

Status: v0.1 — early open-source infrastructure, live on testnet. APIs may change before 1.0. See the live scoreboard: Rein console.

Install

npm install @reinconsole/graph

Quickstart

import { ReputationGraph, payerCheck } from '@reinconsole/graph';

const graph = new ReputationGraph().observe(engine).observe(indexer).observe(gate);

// Agent side: pushed scores make `vendorReputationLt` policies fire.
await graph.syncVendors(engine.spend);

// Vendor side: confidently-bad wallets are turned away at the door.
createGate({ screen: { check: payerCheck(graph, { denyBelow: 40 }) }, /* ... */ });

How it scores

  • Evidence, not vibes. Per-subject history accumulates straight off the event buses — settlements, refusals (replays weighted heaviest), shadow spends, settled-money edges between counterparties, manual dispute/endorsement reports. Scores are never stored: they recompute from raw evidence on demand, so every score is explainable down to the counts behind it.
  • Five components + confidence. Settlement reliability, dispute hygiene, volume, longevity, and one-hop counterparty quality, blended 0–100. Confidence is first-class: thin or brand-new history yields low confidence, not a fake number — and same-day evidence is discounted until it ages.
  • Unknown is not bad. The evaluator never fires vendorReputationLt without data, syncVendors withholds scores under the confidence floor, and payerCheck passes wallets it knows nothing about. A newcomer is served; a confidently bad actor is refused.
  • No-fault refusals carry no evidence. Rate limits, velocity caps, and rails outages at one vendor's gate never bleed into a payer's global score.
  • One identity, one history. graph.link(canonical, alias) merges subjects across id spaces — an agent's engine ULID, its paying wallets, its on-chain ERC-8004 identity — so evidence follows the party, not the key. Key rotation never splits a score.
  • Run it as a service. buildGraphServer() — remote producers POST /v1/events, anyone reads GET /v1/scores/:kind/:subject and gets the score and the evidence behind it. The durable variant (evidence survives restarts) lives in the monorepo (@reinconsole/store).

Scoring weights are deliberately transparent v0.1 heuristics (DEFAULT_WEIGHTS, overridable) — scores are pure functions of the evidence ledger, so the model can evolve without migrations.

MIT © Rein contributors · Repository · Issues