@solana/kit) is the standard JavaScript SDK
for this: you assemble a client from small plugins, add React bindings when you
need them, and pull in generated clients for the programs you call.
Main libraries
@solana/kit
The core SDK: RPC, codecs, signers, and transactions, plus
createClient,
the plugin host every other library extends.Kit plugins
@solana/kit-plugin-* packages you compose with .use(...): RPC, wallet,
signer, and transaction planning.@solana/react
React bindings for a Kit client:
ClientProvider plus hooks for reads,
subscriptions, and wallet state.@solana-program/*
Generated clients for onchain programs (System, Token, and more), with
instruction builders and plugins like
tokenProgram().Coming from web3.js or wallet-adapter?Adopt the Kit plugins above, or upgrade in place to
web3.js v3 and
wallet-adapter v3+,
which keep their familiar APIs on top of Kit.
- Kit client guide: build a client from plugins for RPC, signing, and sending transactions.
- React guide:
@solana/reactbindings and wallet hooks layered on the same client. - Messages & auth: sign messages and authenticate wallet users without a transaction.
- Next.js tutorial: a full connect-wallet and SOL transfer app in the App Router.
- Migrating to Kit: how web3.js and wallet-adapter concepts map onto Kit.
Security: Frontend checklist
- Connect wallets through Wallet Standard, with
@solana/reactand@solana/kit-plugin-walletor with@solana/wallet-adapterv3. - Never ask users for a recovery phrase or private key. The wallet signs, and your app receives only the signature.
- Treat a connected address as a claim. Verify a signed message on your server before you act for that user.
- Build each transaction from what the user sees on screen, and add nothing else.
- Keep RPC API keys and other secrets out of the browser bundle.
- Limit the scripts that can run on pages that request signatures.
- Commit your lockfile, install from it in CI, and hold back new releases for a few days.