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

codex-ledger

v0.2.0

Published

CLI for ledgering AI-assisted code changes.

Downloads

11

Readme

Codex-Ledger

Codex-Ledger keeps a Git-native audit trail of AI-assisted changes. It mirrors commits into dedicated ai/* branches, writes trace files, and can summarize diffs with an LLM so reviewers can understand what happened and why.

Requirements

  • Node.js 18+
  • Git 2.30+
  • OpenAI API key for LLM summaries (optional but recommended)

Install (local dev)

npm install
npm run build
npm pack

Then test in another repo:

npx ..\version-controlled-codex\codex-ledger-0.1.1.tgz --help

Config

Create a .env in the repo you want to run the tool on:

OPENAI_API_KEY=your_key_here
OPENAI_MODEL=gpt-4.1-mini

Optional:

CODEX_LEDGER_USE_LLM_SUMMARY=1
CODEX_LEDGER_LOG_LEVEL=info
CODEX_LEDGER_LOG_FORMAT=text
CODEX_LEDGER_TRACKING_POLICY=mirror-only

Quickstart (hook-based)

  1. Install the git hook:
ledger hooks:install
  1. (Optional) Add prompt attribution for the next commit:
ledger annotate "Refactor login to use JWT" --model gpt-4.1-mini
  1. Make changes and commit as usual.
  2. Review .codex-ledger/traces/<commit>.md and .json in your repo.

Quickstart (explicit AI run)

ledger do "Add a hello.py that prints hello world"

This creates an ai/* branch, applies the patch, commits, writes a trace, and returns you to your original branch.

0.2.0 Core Audit Commands

Session lifecycle:

ledger session:open "refactor auth"
ledger session:close
ledger session:archive
ledger session:reopen --session <session_id>

Tracking policy:

ledger policy:get --json
ledger policy:set merge-ai --json

Conflict workflow:

ledger conflict:status --json
ledger conflict:resume --reason "resolved manually" --json

Audit reports:

ledger timeline --json
ledger explain <commit_hash> --json
ledger diff-report --json

Reports are written to .codex-ledger/reports/.

Diagnostics

ledger doctor

Use --json for machine-readable output.

Demo scripts

See scripts/demo.ps1 (Windows) and scripts/demo.sh (bash) for a full end-to-end flow.