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-trace

v0.1.15

Published

Local web UI for inspecting Codex session traces, tool calls, and subagents.

Readme

codex-trace

Local web UI for inspecting Codex session traces.

codex-trace indexes Codex JSONL sessions from your machine and opens a browser UI for reviewing user messages, assistant responses, tool calls, raw events, and subagent parent/child traces. It is local-first: it reads local files and does not upload session data anywhere.

Install

npm install -g codex-trace

Requires Node.js 22.11.0 or newer.

Quick Start

codex-trace serve

Then open:

http://127.0.0.1:17345

By default, codex-trace reads:

~/.codex/sessions
~/.codex/session_index.jsonl
~/.codex/logs_2.sqlite

It writes its own index under:

~/.codex-trace

Commands

codex-trace serve
codex-trace reindex
codex-trace doctor
codex-trace update

serve starts the local HTTP UI, indexes historical sessions, and tails new JSONL events.

reindex rebuilds the SQLite index from session files.

doctor checks whether the sessions directory, index path, and optional Codex log database are readable.

update updates the global npm installation with npm install -g codex-trace@latest.

Options

serve, reindex, and doctor accept the same path options:

codex-trace serve \
  --sessions ~/.codex/sessions \
  --session-index ~/.codex/session_index.jsonl \
  --logs ~/.codex/logs_2.sqlite \
  --trace-home ~/.codex-trace \
  --index ~/.codex-trace/index.sqlite \
  --live-state ~/.codex-trace/live-state.json \
  --port 17345

UI

  • Session gallery with search.
  • Timeline view grouped around messages and raw events.
  • Tool inspector for function calls, shell results, patch metadata, and failures.
  • Subagent view with parent/child navigation.
  • Live stream for appended session events.
  • Raw JSON expansion for individual events.

Privacy

codex-trace is designed for local inspection. It does not send session data to a remote service. The web server binds to 127.0.0.1 by default.

The UI redacts common secret-like values in normalized previews, but raw event expansion can reveal original local session content. Treat the local web UI as sensitive if your Codex sessions include private code, prompts, credentials, customer data, or logs.

Development

npm test
npm run build
npm run serve
npm pack --dry-run

The published npm package runs compiled JavaScript from dist/. Local development scripts run the TypeScript source through Node's --experimental-strip-types flag, so the project requires Node 22.11.0 or newer.

License

Apache-2.0. See LICENSE.