Skip to content

solanakite/solana-typescript-library-comparison

Repository files navigation

Solana TypeScript Library Comparison

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.

Libraries Compared

Token Counting

npx tsx count-tokens.ts

Results

Run 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)

Running the Examples

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •