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

@dominator/compresskit

v0.1.0

Published

ZK Compression migration toolkit for Solana — analyze, cost, migrate, and scaffold compressed accounts.

Downloads

17

Readme

compresskit

CLI toolkit for migrating Solana programs to ZK Compression.

Install

npm install -g compresskit

Commands

compresskit analyze <PROGRAM_ID>

Scan a program for compression opportunities.

$ compresskit analyze TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA

compresskit analyze

✔ found 1,247 accounts

  accounts          1247
  size groups       3
  avg size          165 bytes
  ────────────────────────────────────────
  estimated rent    2.8910 SOL
  compressed        0.1446 SOL
  savings           95%

  ✓ run 'compresskit cost TokenkegQfe...' for breakdown

compresskit cost <PROGRAM_ID>

Side-by-side cost comparison per account group.

$ compresskit cost TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA

compresskit cost — devnet

✔ 1247 accounts loaded

  size        count   regular         compressed      savings
  ──────────────────────────────────────────────────────────────
  82 B        312     0.2900 SOL      0.0145 SOL      95%
  165 B       890     2.1040 SOL      0.1052 SOL      95%
  340 B       45      0.4970 SOL      0.0249 SOL      95%
  ──────────────────────────────────────────────────────────────
  TOTAL       1247    2.8910 SOL      0.1446 SOL      95%

  ✓ save 2.7464 SOL with ZK compression

compresskit migrate <PROGRAM_ID> [--output ./dir]

Generate a migration plan + MIGRATION.md with step-by-step instructions.

$ compresskit migrate 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin --output ./migration

compresskit migrate — devnet

✔ 48 accounts in 2 groups

  step 1            compress 32 accounts (200 bytes)
    rent            0.0730 SOL
    compressed      0.0037 SOL
    savings         95%

  step 2            compress 16 accounts (512 bytes)
    rent            0.0694 SOL
    compressed      0.0035 SOL
    savings         95%

  ────────────────────────────────────────
  total savings     0.1352 SOL
  output            ./migration/MIGRATION.md

  ✓ migration plan written to MIGRATION.md

The generated MIGRATION.md includes:

  • Account groups table
  • Cost comparison
  • Rust migration code (Light Protocol SDK)
  • Client-side migration script
  • Verification + rollback plan

compresskit verify <PROGRAM_ID>

Check remaining uncompressed accounts after migration.

$ compresskit verify 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin

compresskit verify — devnet

✔ verification complete

  program           9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin
  network           devnet
  accounts          12
  rent held         0.0182 SOL
  ────────────────────────────────────────
  ⚠ 12 uncompressed accounts remaining
  next step         run 'compresskit migrate' to generate plan

compresskit template <type> [--output ./dir]

Scaffold a new project with compression built in.

$ compresskit template loyalty --output ./my-loyalty

compresskit template — loyalty

  type              Loyalty Program (points, tiers, redemption)
  output            /Users/dev/my-loyalty
✔ 7 files created

        Cargo.toml  programs/loyalty/Cargo.toml
          lib.rs    programs/loyalty/src/lib.rs
      package.json  app/package.json
        compress.ts app/src/compress.ts
    Anchor.toml     Anchor.toml
    .env.example    .env.example
    README.md       README.md

  ✓ loyalty template ready at /Users/dev/my-loyalty
  next steps        cd ./my-loyalty && anchor build

Templates: loyalty (points/tiers), gaming (scores/achievements), social (followers/posts).

Each template includes:

  • Anchor program with compressed account patterns
  • TypeScript client with Light Protocol SDK integration
  • Anchor.toml + .env.example + README

Options

All commands accept -n, --network <devnet|mainnet> (default: devnet).

Stack

TypeScript CLI built with commander.js, chalk, and ora.

Dev

cd cli
npm install
npm run build
node dist/index.js analyze <PROGRAM_ID>

License

MIT