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

@act0r/codex-transcript-md

v0.1.0

Published

Export OpenAI Codex rollout JSONL sessions to clean Markdown transcripts.

Readme

codex-transcript-md

Export OpenAI Codex rollout JSONL sessions to clean Markdown transcripts.

This package is intentionally small and standalone: it reads Codex's original ~/.codex/sessions/**/rollout-*.jsonl files directly. It does not depend on any external session index, database, or local web app.

Usage

npx @act0r/codex-transcript-md --current
npx @act0r/codex-transcript-md --current --publish-0g
npx @act0r/codex-transcript-md <session-id> -o session.md
npx @act0r/codex-transcript-md ~/.codex/sessions/2026/05/11/rollout-....jsonl -o session.md
npx @act0r/codex-transcript-md <session-id> --stdout

If -o/--out and --stdout are omitted, the file is written to:

~/.codex/exports/codex-session-<session-id>.md

What gets exported

The exporter follows Codex's user-visible rollout events:

  • event_msg:user_message
  • event_msg:agent_message

It skips model context, developer/system instructions, reasoning, tool calls, tool outputs, token counters, and other internal events. That makes the Markdown safe to hand back to an LLM for review without dragging along hidden runtime context.

Options

Usage: codex-transcript-md <session-id-or-jsonl-path> [options]
       codex-transcript-md --current [options]

Options:
  -o, --out <file>           write Markdown to this path
  --stdout                   print Markdown to stdout
  --current                  export the newest local Codex rollout JSONL
  --publish-0g               publish the Markdown to 0g.hk after exporting
  --0g-name <name>           optional 0g.hk semantic short name
  --0g-ttl <ttl>             0g.hk TTL: 1h, 1d, or 7d (default: 7d)
  --codex-home <dir>         Codex home directory (default: ~/.codex)
  --session-root <dir>       session root to search (default: <codex-home>/sessions)
  --exports-dir <dir>        default output directory (default: <codex-home>/exports)
  -h, --help                 show help
  -v, --version              show version

0g.hk temporary public link

Publishing is explicit because 0g.hk pages are public temporary notes. Use:

npx @act0r/codex-transcript-md --current --publish-0g
npx @act0r/codex-transcript-md <session-id> --publish-0g --0g-name my-session --0g-ttl 1d

The CLI posts the Markdown body to https://0g.hk/, prints the public and raw URLs, and stores the edit token in ${XDG_DATA_HOME:-~/.local/share}/0g-hk/links.jsonl with file mode 600. It never prints the edit token. 0g.hk accepts text notes up to 24,576 bytes; larger exports stay local.

Codex skill

This package also ships an agent skill at skills/export-session. Install the skill with:

npx skills add @act0r/codex-transcript-md -g --skill export-session -y --full-depth

After restarting your agent session, you can ask in chat:

/export-session
/export-session publish
/export-session -o ~/Desktop/session.md

The skill calls npx -y @act0r/codex-transcript-md and still reads only Codex rollout JSONL files; it does not use cxs or what7. When the user asks to publish/share, it adds --publish-0g and uses 0g.hk.

Programmatic API

import { exportSessionToMarkdown } from "@act0r/codex-transcript-md";

const result = await exportSessionToMarkdown({
  input: "019e14c8-ba55-76e3-a86a-c4d232dedbe0",
  outFile: "session.md",
});

console.log(result.messageCount, result.outputPath);