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

@safetnsr/session-distill

v0.3.2

Published

distill recurring context from AI agent sessions into CLAUDE.md

Readme

session-distill

distill recurring context from AI agent sessions into CLAUDE.md.

stop re-explaining yourself every session.

install

npx @safetnsr/session-distill

zero dependencies beyond chalk. no config. no network calls.

usage

# auto-detect agent sessions, output to stdout
npx @safetnsr/session-distill

# write directly to CLAUDE.md
npx @safetnsr/session-distill --out CLAUDE.md

# preview top 10 recurring patterns
npx @safetnsr/session-distill --top 10

# show what would change without writing
npx @safetnsr/session-distill --diff

# pipe any chatlog
cat chat.md | npx @safetnsr/session-distill

# machine-readable output
npx @safetnsr/session-distill --json

supported agents

  • claude code — reads ~/.claude/projects/ JSONL files automatically
  • aider — reads .aider.chat.history.md from cwd or parent dirs
  • any chatlog — pipe markdown-formatted chatlogs via stdin

how it works

session-distill runs a 4-step pipeline, 100% local:

  1. extract — heuristic pattern matching finds facts in your messages: explicit instructions ("always use typescript"), stack mentions, conventions ("we use X"), and corrections ("no, we use npm not pip")
  2. cluster — Jaccard similarity groups related facts across sessions (threshold > 0.6)
  3. rank — frequency × recency scoring surfaces the most important recurring patterns
  4. render — generates a structured CLAUDE.md with sections: stack, workflow, preferences, context

every line includes (seen in X/Y sessions) so you can verify what matters.

options

--adapter <name>    force adapter: claude-code | aider | markdown | stdin
--project <path>    path to sessions directory or file
--top <n>           show top N patterns without generating CLAUDE.md
--merge             merge with existing CLAUDE.md instead of replacing
--diff              show what would change without writing
--json              machine-readable output
--all               scan all sessions (default: 20 most recent)
--out <file>        write to file instead of stdout (default: stdout)
--version, -v       show version
--help, -h          show help

privacy

100% local. zero network calls. your sessions never leave your machine.

session-distill reads files from your local filesystem, processes them in memory, and outputs to stdout or a local file. nothing is sent anywhere.

license

MIT