Aarpit2222

arpit2222/solana-web3js-to-kit

Production-oriented migration codemod for @solana/web3.js v1 to @solana/kit with deterministic rewrites, explicit AI handoff, and real-repo validation

solanaweb3.jsweb3jssolana-kitmigrationcodemodrpctransactionskeypairpublickey
Public
0 executions

Run locally

npx codemod @arpit2222/solana-web3js-to-kit

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.js to @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

More context

The migration engine is conservative by design:

  • deterministic transforms first
  • explicit AI_REQUIRED markers for structural edge cases
  • real-repo validation focus instead of toy examples

See the repository for the judge checklist, requirements audit, and case study:

Ready to contribute?

Build your own codemod and share it with the community.