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

cc-gist-export

v0.3.0

Published

Export Claude Code session JSONL to a GitHub Gist as Markdown

Readme

cc-gist-export

Export a Claude Code session (JSONL) to a GitHub Gist as Markdown.

Zero runtime deps. Shells out to the gh CLI for gist upload, so auth is whatever gh already has.

Usage

# Pick session via fuzzy picker (fzf if installed, otherwise a numbered prompt)
npx cc-gist-export

# Skip the picker and take the latest session
npx cc-gist-export --latest

# Public gist and open in browser
npx cc-gist-export --public --open

# Specific session file
npx cc-gist-export ~/.claude/projects/-Users-me-repo/<uuid>.jsonl

# Just render markdown to a file (no upload)
npx cc-gist-export --out session.md

# Or dump to stdout
npx cc-gist-export --stdout > session.md

# List recent sessions of the current project
npx cc-gist-export --list

Options

| flag | default | description | |-----------------|---------|----------------------------------------------| | --public | off | Public gist (default: secret) | | --open | off | Open resulting gist URL in the browser | | --title <t> | auto | Gist description | | --out <file> | — | Write markdown to file, skip upload | | --stdout | off | Print markdown to stdout, skip upload | | --no-thinking | off | Skip assistant thinking blocks | | --no-tools | off | Skip tool_use / tool_result blocks | | --latest | off | Take most recent session, skip the picker | | --list | off | List recent sessions for current project | | -h, --help | | Show help |

How session lookup works

With no file argument, the current working directory is mapped to ~/.claude/projects/<slug>/ where <slug> is the cwd with / and . replaced by -. The most recently modified .jsonl in that directory is used.

Output format

  • ## 👤 User and ## 🤖 Assistant sections
  • thinking wrapped in <details> (GFM renders collapsibles on gists)
  • tool_use and tool_result collapsed with truncation on long payloads
  • <system-reminder> user blocks are skipped

Requirements

  • Node.js ≥ 18
  • gh CLI authenticated (gh auth login) if uploading

License

MIT