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

@adainthelab/universal-ledger-cli

v0.1.2

Published

Client-side context continuity tooling for stateless AI sessions.

Readme

Universal Ledger CLI (ULC)

Universal Ledger CLI (ULC) is a small, intentional command‑line tool for maintaining context continuity across otherwise stateless interactions.

It does not attempt to store or restore AI memory.
Instead, it gives you a clean, user‑owned way to re‑establish shared context at the start of any session.

Think of it as a portable preamble generator backed by simple, human‑editable records.


What ULC Is (and Is Not)

✅ What it is

  • A user‑owned ledger of context records (plain JSON)
  • A way to generate a Pre‑Conversation Context Block (PCCB) on demand
  • A notes‑like system for tracking intent, constraints, and state
  • Offline‑first, deterministic, boring‑in‑a‑good‑way

🚫 What it is not

  • Persistent AI memory
  • A bypass for safeguards
  • A networked service
  • A database or cloud product

ULC assumes the model is stateless and treats all context as explicit input.


Installation (Local / Dev)

git clone https://github.com/AdaInTheLab/universal-ledger
cd universal-ledger
npm install
npm link

This installs the ulc command globally for your user.


Ledger Storage

By default, ledger entries are stored outside your repo:

~/.ulc/ledger/

Each entry is a single JSON file:

2026-01-01-TEST.json
2026-01-02-REAL.json
...

This keeps: - personal context out of source control - ledgers usable across projects - state fully user‑owned

You can override this with --ledger-dir if needed.


Core Commands

ulc init

Create a new ledger entry.

ulc init   --lid 2026-01-01-TEST   --project "Universal Ledger CLI"   --summary "Context continuity across stateless AI sessions"

Optional flags: - --goal "text" (repeatable) - --constraint "text" (repeatable) - --force (overwrite existing entry)


ulc list

List known ledger entries.

ulc list

Outputs a readable summary of all entries in the ledger directory.


ulc update

Patch an existing ledger entry in place.

ulc update   --lid 2026-01-01-TEST   --add-goal "Restore collaboration context deterministically"   --remove-goal "TODO"   --add-note "Refined MVP scope"

Notes: - Only fields you specify are changed - Unknown fields are preserved - Notes are append‑only (with dedupe protection) - Updates bump last_state.as_of and modified_at


ulc wake

Emit a Pre‑Conversation Context Block (PCCB).

ulc wake --lid 2026-01-01-TEST

This prints a structured context block suitable for pasting directly into a new session.

Soft validation

  • Missing required fields → error
  • Incomplete or placeholder content → warnings
  • Output is never blocked unless correctness is compromised

Example Output

[CONTEXT_BLOCK_START]
Source: Universal Ledger CLI v0.1.1
Ledger ID: 2026-01-01-TEST
Project: Universal Ledger CLI

Summary:
- Context continuity across stateless AI sessions

Goals:
- Restore collaboration context deterministically
- Make resets observable

Constraints:
- No claims of persistent AI memory
- No bypassing safeguards

Last Known State:
- As of: 2026-01-01T18:08:55
- Refined MVP scope
[CONTEXT_BLOCK_END]

Design Principles

  • Explicit over implicit
  • Files over databases
  • Warnings over enforcement
  • User agency first
  • No metaphysical claims

ULC is intentionally small. If something feels magical, it's probably wrong.


Versioning

Current version: v0.1.1

The CLI surface is intentionally conservative.
Breaking changes should be rare and explicit.


License

MIT

You own your data. Always.