This repository compares different Solana TypeScript libraries by implementing the same simple task: creating a wallet on devnet, airdropping 1 SOL to it, and sending a memo transaction.
The example was originally taken from the https://www.gillsdk.com/api/gill and adapted for comparison across different libraries.
Code complexity is measured by counting programming tokens (keywords, identifiers, operators, literals, punctuation) while excluding comments and whitespace. Token counting is performed using the TypeScript Compiler API.
- Solana Kit
- Solana Kite
- Gill
- Framework Kit
- Metaplex Umi
- web3.js v1
- web3.js v1 with @solana-developers/helpers
- Helius SDK
npx tsx count-tokens.tsRun npx tsx count-tokens.ts to see the results. As of 2026 01 21, they are:
=== Token Count Results ===
Kite 79 tokens
Framework Kit 99 tokens (25.3% more code)
web3.js v1 + helpers 122 tokens (54.4% more code)
web3.js v1 145 tokens (83.5% more code)
Gill 157 tokens (98.7% more code)
Umi 182 tokens (130.4% more code)
Helius SDK 247 tokens (212.7% more code)
Solana Kit 251 tokens (217.7% more code)
npx tsx kite.ts
npx tsx gill.ts
npx tsx kit.ts
npx tsx framework-kit.ts
npx tsx umi.ts
npx tsx web3js.ts
npx tsx web3js-with-solana-helpers.ts
npx tsx helius-sdk.ts