Automated migration engine from @solana/web3.js to @solana/kit. Version 0.1.8, built with TypeScript, requires Node >= 20. Combines deterministic AST codemods with an AI agent (Claude) to automate up to 90% of Solana SDK migration work. Unlike manual migration guides or simple find-and-replace scripts, it handles complex patterns like Keypair generation, transaction building, and LAMPORTS_PER_SOL arithmetic, inserting todo markers for unsupported patterns. Reports are JSON-saved for reproducibility.
npm install solana-survivorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Run the migration pipeline in dry-run mode first, then apply changes, and view the migration report.
Upgrade Node.js to version 20 or higher using nvm or your package manager.
Use `npx solana-survivor migrate --dry-run` before committing changes.
Install `@solana/kit` manually after migration: npm install @solana/kit
Always inspect the generated report and agent-diffs/ directory for required manual steps.
Manually migrate subscription patterns to async iterators as described in @solana/kit docs.
Run: npm install @solana/kit
Use CLI via npx instead of programmatic import; package is not designed for programmatic use.
Review the migration report for flagged files and manually fix type errors. Run `npx solana-survivor verify` to rerun checks.