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

ledger-agent-template

v0.1.0

Published

Open Ledger agent workflow scaffolds with visible approval gates, fixtures, receipts, and agent skills.

Readme

Ledger Agent Template

Open scaffolds for building agent-assisted Ledger workflows where proposals, approvals, hardware gates, and receipts stay visible.

The goal is simple: help builders start with safe local fixtures, then replace one lane at a time with real Ledger, WebAuthn, wallet, policy, app, or review infrastructure.

Nothing in this template signs, sends, swaps, decrypts, authenticates, or releases secrets on behalf of a user without an explicit human or device gate.

One-Line Start

npx ledger-agent-template my-ledger-agent-workflows
cd my-ledger-agent-workflows
npm install
npm run check
npm run demo:journey

For agent-assisted implementation, give the agent this first:

Read AGENT_START_HERE.md, then use the matching repo-local skill before changing any demo.

What You Get

| Folder | What it teaches | First safe run | |---|---|---| | 01-headless-cli | Agent proposes an operation, human reviews it, signing stays blocked | npm run check:headless | | 02-dmk-skills-app | App action waits for Ledger-shaped validation before publish | npm run demo:dmk:fixture | | 03-hardware-auth | Security Key/WebAuthn session plus fresh sensitive-access gate | Open the local browser scaffold | | 04-guided-journey | Guided run across the headless, app-gate, auth, and journey-map lanes | npm run demo:journey |

Start with npm run demo:journey when you want to see what a Ledger Signer can do across the scaffold. It walks through the lanes in order, runs the same commands the individual demos use, opens the browser surfaces where useful, captures reviewer observations, and writes one combined receipt.

Use the individual demos when you want to learn or extend one pillar at a time. Fixture runs still do not prove physical Ledger verification, server-verified WebAuthn, production custody, signing, broadcast, wallet movement, or secret release.

Human Index

| Need | Start here | |---|---| | Understand the project | README.md | | Install the template | npx ledger-agent-template <target-dir> | | Pick the right demo | docs/BUILDER_LADDER.md | | Understand safety boundaries | docs/LEDGER_LAYERING.md | | See what evidence should look like | contracts/EVIDENCE_CONTRACT.md | | Publish or fork the repo | docs/PUBLISHING.md | | Extend a specific demo | That demo's README.md, BOUNDARY.md, and BUILDER_PATHS.md |

Agent Index

| Agent task | Required context | |---|---| | Orient in the repo | AGENT_START_HERE.md, then AGENTS.md | | Change 01-headless-cli | 01-headless-cli/AGENTS.md and skills/ledger-headless-attestation/SKILL.md | | Change 02-dmk-skills-app | 02-dmk-skills-app/AGENTS.md and skills/ledger-app-gate/SKILL.md | | Change 03-hardware-auth | 03-hardware-auth/AGENTS.md and skills/ledger-auth-sensitive-access/SKILL.md | | Change 04-guided-journey | 04-guided-journey/AGENTS.md and skills/guided-ledger-journey/SKILL.md | | Add evidence | contracts/EVIDENCE_CONTRACT.md | | Change repo structure | AGENTS.md, docs/BUILDER_LADDER.md, and docs/PUBLISHING.md |

Agent Skill Guidance

Agents should treat files under skills/ as operating instructions, not optional documentation.

Before editing a demo, an agent should:

  1. Read AGENT_START_HERE.md.
  2. Read the target demo's AGENTS.md.
  3. Read the matching skills/<skill-name>/SKILL.md.
  4. State the target demo, builder level, files to touch, approval boundary, and expected evidence.
  5. Implement only inside that stated scope.
  6. Run the relevant validation command before handing work back.

This keeps agents from flattening the scaffold, skipping the Ledger layer, or overstating fixture evidence as real hardware proof.

Repository Shape

This is intentionally one repo. The demos share one evidence contract, one builder ladder, one validation command, and one set of agent skills.

Split a demo into its own repo only after it has an independent runtime, release path, maintainer, or audience. Until then, the numbered folders should stay together as one inspectable ladder.

Commands

npm run check
npm run check:headless
npm run demo:journey
npm run demo:journey:auto
npm run demo:dmk:fixture

npm run check verifies the scaffold contract. npm run check:headless exercises the headless receipt path. npm run demo:journey runs and guides each lane before writing a combined receipt under 04-guided-journey/receipts/. It assumes real Ledger validation for Ledger lanes after prompting you to connect and unlock the device; the harness then requests the Ethereum or Security Key app when possible. Type demo at a Ledger prompt to use fixture mode. npm run demo:journey:auto is only for CI or smoke checks where a guided reviewer is not present.

npm run demo:comprehensive remains as a backwards-compatible alias, but new docs and generated scaffolds should point people to npm run demo:journey.

When moving from Ethereum signing lanes into the Security Key lane, exit the current Ledger app back to the dashboard before continuing. The harness requests the Security Key app, but that request can fail if Ethereum is still foregrounded.

Ledger Packages

This template installs the Ledger hardware packages needed by the USB attestation lanes. Fixture mode remains the default safe path, but the real Ledger path should be available without making builders discover packages by hand.

To run real Ledger attestation, use a connected, unlocked Ledger with the Ethereum app open, then run the non-fixture validation path from the relevant demo.

Boundaries

  • Fixture validation is not physical Ledger verification.
  • WebAuthn client evidence is not server verification.
  • Wallet proof is optional and action-specific, not primary identity by default.
  • Agents cannot approve their own sensitive actions.
  • No demo should hide signing, broadcast, secret release, or privileged access behind agent automation.