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

@shroud-fi/compliance

v0.1.3

Published

Operator-side viewing-key tools for ShroudFi. Generate audit trails of payments received without granting spend authority.

Downloads

384

Readme

@shroud-fi/compliance

Operator-side viewing-key tools. Audit trails without spend authority.

npm license: MIT

npm i @shroud-fi/compliance

What it does

@shroud-fi/compliance lets the operator behind an agent generate an audit trail of every payment ever directed at the agent's meta-address — without giving the auditor spend authority and without revealing live strategy.

The mechanism is the scan key. In ShroudFi, the spending key controls funds; the scanning key only sees payments. Exporting a scan-only viewing key gives an auditor full historical visibility into receipts while keeping the spend authority sealed.

Why it matters

Confidentiality infrastructure for AI agents has to coexist with compliance. ShroudFi is not an anonymizer — it's a directed-payment system (like a PO box) where the recipient can selectively prove receipt to a third party. This package is how you do that.

Quick start

import { exportViewingKey, replayHistory } from '@shroud-fi/compliance';
import { deriveAgentIdentity } from '@shroud-fi/core';
import { createTransport } from '@shroud-fi/transport';

const identity = deriveAgentIdentity(masterSeed);
const viewingKey = exportViewingKey(identity);
// Hand `viewingKey` to your auditor — they cannot spend.

// Auditor replays history:
const transport = createTransport({ chain: 'base', rpcUrl });
const history = await replayHistory(transport, viewingKey, {
  fromBlock: 46_800_000n,
  toBlock: 'latest',
});

// history: every payment ever sent to the meta-address, with block + tx context.

Exports

| Symbol | Purpose | |---|---| | exportViewingKey(identity) | Serialize a scan-only key safe to hand to an auditor. | | replayHistory(transport, viewingKey, range) | Reconstruct every payment ever sent to the meta-address. | | ViewingKeyExport | Serializable type, safe to log + store. Does not contain spending authority. |

Full API reference: shroudfi.live/sdk#compliance

Privacy invariants

  • No backdoor. Viewing keys are agent-opt-in and agent-generated. There's no global auditor key and no contract-level disclosure mechanism.
  • Scoped. A viewing key gives one-way visibility to inbound payments to one agent. It does not expose outbound payments the agent sent.
  • Revocable in practice. Since the viewing key only enables reading historical announcements, an agent rotating its meta-address effectively cuts off future visibility for old viewing-key holders.

License

MIT — see LICENSE.

Part of the ShroudFi privacy SDK for AI agents on Base.