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

@razroo/iso-ledger

v0.1.0

Published

Deterministic append-only event ledger for AI-agent workflows: idempotent writes, local queries, verification, and materialized state views.

Readme

@razroo/iso-ledger

Append-only operational state for agent workflows.

state-trace is working memory. iso-trace is transcript observation. iso-guard checks whether a run followed policy. iso-ledger is the small deterministic layer for workflow truth: append validated events, dedupe by idempotency key, query before side effects, verify the file, and materialize a compact state view.

It is local-only, model-free, and MCP-free. The default storage format is newline-delimited JSON at .iso-ledger/events.jsonl.

Install

npm install -D @razroo/iso-ledger

CLI

iso-ledger init

iso-ledger append application.submitted \
  --key "url:https://example.test/jobs/123" \
  --subject "job:example:ai-engineer" \
  --idempotency-key "apply:https://example.test/jobs/123" \
  --data '{"status":"applied"}'

iso-ledger has --key "url:https://example.test/jobs/123"
iso-ledger query --type application.submitted --where status=applied
iso-ledger verify
iso-ledger materialize --out state.json

Every command accepts --ledger <events.jsonl>. append, query, has, verify, and materialize also support --json.

Event Shape

{
  "id": "evt_apply_001",
  "type": "application.submitted",
  "at": "2026-04-26T00:10:00.000Z",
  "key": "url:https://example.test/jobs/123",
  "subject": "job:example:ai-engineer",
  "idempotencyKey": "apply:https://example.test/jobs/123",
  "data": {
    "status": "applied"
  },
  "meta": {
    "runId": "demo"
  }
}

Fields:

  • id uniquely identifies one event. If omitted, iso-ledger derives it.
  • type names the event, usually domain.verb.
  • at is an ISO timestamp. If omitted on append, current time is used.
  • key is a lookup key such as a URL, company+role, or external id.
  • subject is the entity being materialized.
  • idempotencyKey prevents duplicate appends for the same side effect.
  • data is domain state.
  • meta is provenance such as run id, source, or tool.

Library API

import { appendEvent, hasEvent, queryEvents, readLedger } from "@razroo/iso-ledger";

await appendEvent({ dir: process.cwd() }, {
  type: "application.submitted",
  key: "url:https://example.test/jobs/123",
  subject: "job:example:ai-engineer",
  idempotencyKey: "apply:https://example.test/jobs/123",
  data: { status: "applied" },
});

const events = readLedger({ dir: process.cwd() });
if (hasEvent(events, { key: "url:https://example.test/jobs/123" })) {
  // skip duplicate side effect
}

The API is synchronous on purpose. Ledger files are small operational state files, and synchronous local reads make shell/CLI adapters simple.

Fit With The iso Stack

  • iso-orchestrator controls durable workflow execution.
  • iso-ledger records canonical domain events and idempotency keys.
  • iso-trace observes harness transcripts.
  • iso-guard audits policy over trace or ledger-derived events.

For JobForge, the future adapter can record scan/application/tracker events here, then materialize markdown/TSV views as compatibility output.