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

@image-cascade/cli

v0.2.3

Published

Rescue CLI for oversized image-context-cascade session files.

Readme

@image-cascade/cli

Rescue CLI for oversized agent session files: downgrades historical base64 images to short stable placeholders, offline.

For agents without a request-construction hook — Claude Code included — this rewrites bloated .jsonl session files (or single JSON documents) so they stop resending megabytes of pixels the model already saw.

Usage

npx @image-cascade/cli rescue path/to/session.jsonl        # dry-run: shows what would be saved
npx @image-cascade/cli rescue path/to/session.jsonl --yes  # backs up the original, then rewrites

Or install globally — the binary is named image-cascade:

npm install -g @image-cascade/cli
image-cascade rescue path/to/session.jsonl --yes
image-cascade --version

Options:

  • --yes — write changes. Default is dry-run and writes nothing.
  • --all — downgrade all image blocks, including when no user-message boundary is found (default is to keep everything in that case).
  • --json — machine-readable statistics.
  • --version, -v / --help, -h.

Claude Code SessionEnd hook

image-cascade hook claude-code reads a Claude Code hook payload from stdin and archives that session's historical images. It always uses the source store, is fail-open, and is intended for SessionEnd hooks.

echo '{}' | image-cascade hook claude-code

Environment variables:

  • ICC_DISABLE=1 — kill switch for hook-triggered processing.
  • ICC_STORE_DIR=/path/to/store — override the default store directory.

Safety properties

  • Dry-run by default — nothing is written without --yes.
  • Automatic backup — the original is copied to <file>.icc-backup before rewriting.
  • Atomic write — output goes to a temp file, then renames over the original; a crash never leaves a half-written session.
  • Malformed lines pass through untouched, and the line count never changes.
  • Idempotent — rerunning on a rescued file finds nothing left to downgrade.
  • Two streaming passes, O(1) memory — a multi-GB JSONL session never gets loaded whole.
  • Current-turn images (at or after the last user message) are kept intact.

Measured on a real 381-line Claude Code session: 6.26 MB → 1.36 MB (−78%), every line still valid JSON.

Built on image-context-cascade — see the GitHub repository for the full story, docs, and the request-level middleware that prevents the bloat in the first place.

Apache-2.0.