solana-kit-migrator
solana-kit-migrator is a production-oriented codemod for migrating @solana/web3.js v1 projects
to @solana/kit.
Published package:
@arpit2222/solana-web3js-to-kit
What it does
- Rewrites common imports and API calls from
@solana/web3.jsto@solana/kit - Handles connection, keypair, public key, transaction, buffer, lamport, and sysvar migrations
- Marks structural edge cases for explicit AI follow-up instead of guessing
- Includes tests and real-repo validation notes
Usage
bash
Example
Input
ts
Output
ts
Package notes
- Registry package:
@arpit2222/solana-web3js-to-kit - Repository: https://github.com/arpit2222/solana-kit-migrator
- License: MIT
More context
The migration engine is conservative by design:
- deterministic transforms first
- explicit
AI_REQUIREDmarkers for structural edge cases - real-repo validation focus instead of toy examples
See the repository for the judge checklist, requirements audit, and case study: