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

solana-survivor

v0.1.8

Published

@solana/web3.js → @solana/kit migration engine — automated codemods + AI agent

Readme

solana-survivor

Automate your @solana/web3.js@solana/kit migration

npx solana-survivor migrate

Solana replaced their entire core SDK. Every project on @solana/web3.js needs to migrate — and there's no official automated path.

Solana Survivor is a production-grade migration engine. It combines deterministic AST codemods with an AI agent to automate up to 90% of the work, then generates a full report so you know exactly what happened.


What it does

┌──────────────────────────────────────────────────────────┐
│                 npx solana-survivor migrate               │
├───────────┬──────────────────────────────────────────────┤
│  Stage 1  │  Scanner   — finds every web3.js usage       │
│  Stage 2  │  Codemods  — deterministic AST transforms    │
│  Stage 3  │  AI Agent  — resolves edge cases             │
│  Stage 4  │  Verify    — runs tsc + your test suite      │
│  Stage 5  │  Report    — coverage %, flags, next steps   │
└───────────┴──────────────────────────────────────────────┘

Commands

migrate — Run the full pipeline

npx solana-survivor migrate [path]
npx solana-survivor migrate ./my-project --dry-run
npx solana-survivor migrate ./my-project --verbose --skip-agent

Options:

  • --dry-run — Preview transforms without writing files
  • --skip-agent — Skip the AI agent step
  • --skip-verify — Skip TypeScript verification
  • --verbose — Show detailed output

scan — Analyse without transforming

npx solana-survivor scan [path]

Outputs a manifest of every @solana/web3.js call site found. Writes .solana-survivor/manifest.json.

report — Display the last migration report

npx solana-survivor report [path]

Reads .solana-survivor/migration-report.json and prints a formatted summary.

verify — Run post-migration checks

npx solana-survivor verify [path]

Runs tsc --noEmit and your project's test suite, reports zero-error status.


Coverage

| Pattern | Automation level | How | |---|---|---| | from '@solana/web3.js' imports | Automated | Rewrites to tree-shaken @solana/kit imports | | new Connection(url) | Automated | → createSolanaRpcClient(url) | | new PublicKey(str) | Automated | → address(str) | | .toBase58() | Automated | Removed — Address is a branded string | | Keypair.generate() | Automated | → await generateKeyPair() | | Keypair.fromSecretKey() | Automated | → await importKeyPair({...}) | | LAMPORTS_PER_SOL arithmetic | Automated | → solToLamports() / lamportsToSol() | | SystemProgram.transfer({...}) | Automated | → getTransferSolInstruction({...}) | | new Transaction().add(...) | Automated | → pipe-based createTransaction builder | | sendAndConfirmTransaction(...) | Automated | → sendAndConfirmTransactionFactory pattern | | WebSocket subscriptions | Todo-flagged | Manual — async iterator pattern required | | Custom wallet adapters | AI Agent | Claude reads your adapter and proposes a diff | | Dynamic transaction builders | AI Agent | Claude resolves runtime-shape ambiguity |


Migration report

Every run produces .solana-survivor/migration-report.json and prints:

Solana Survivor — Migration Report
───────────────────────────────────
Files scanned:          47
Codemod coverage:       78%   (37 files fully transformed)
AI agent coverage:      12%   (6 files — proposals in agent-diffs/)
Manual review needed:   10%   (4 files — see flags below)
TypeScript errors:      0     (was 143 before migration)
Time taken:             12s

Flags
└─ send-flow    ×3   src/tx/send.ts ...
└─ async-pattern ×2  src/subscriptions.ts ...

Todo markers

When the codemod can't automatically transform a pattern, it inserts a comment:

// solana-survivor-todo: [send-flow] sendAndConfirmTransaction — requires factory pattern setup.
// Add to module top: const sendAndConfirm = sendAndConfirmTransactionFactory({ rpc, rpcSubscriptions }).

Categories: send-flow · async-pattern · wallet-adapter · transaction-builder · unknown

Search your codebase for solana-survivor-todo to find everything that needs attention.


Requirements

  • Node.js 18+
  • TypeScript project (JavaScript also supported)

License

MIT