Structure lesson
Easy-gas
What it does
From the project README:
EasyGas is a powerful dashboard application that helps users optimize Solana blockchain transactions by tracking network congestion and recommending appropriate priority fees. This tool provides real-time metrics and historical data to help you make informed decisions about when to execute transactions and what fee levels to set.
- Original
- Japhetjohn/Easy-gas
- SuperStack fork
- Blockchains/Easy-gas @
392aded - Stars
- 1
- Last push (original)
- 2025-05-07
- Languages
- TypeScript, Python, Shell, CSS, HTML, Dockerfile
- Detected stack
- web3.js
- Categories
- Other
- Licence
- MIT
Architecture
86 source files. By extension: .tsx ×65, .ts ×19, .js ×1, .py ×1.
| Top-level directory | Source files |
|---|---|
client | 74 |
server | 6 |
(root) | 4 |
shared | 1 |
python-backend | 1 |
Where the Solana code lives
Source files that import a Solana SDK, ranked by how many Solana APIs they use, with the APIs each one calls. Read them in this order to see how the app talks to the chain.
| File | Solana APIs used |
|---|---|
client/src/lib/solanaHelpers.ts | VersionedTransaction, Connection, PublicKey, TransactionMessage, getLatestBlockhash, transfer |
client/src/hooks/useWallet.ts | Transaction, PublicKey, Connection, useWallet, getBalance |
client/src/hooks/useSolanaConnection.ts | Connection |
Dapp: devnet deploy pending
⏳ Devnet deploy pending — goes live when the devnet wallet is topped up. This fork's own dapp is not deployed yet, so there is no program address or transaction to show. It is queued in dapp-queue.txt; once devnet SOL is available it is deployed, exercised with real devnet transactions, and this section switches to the live dapp at /dapps/easy-gas/. Until then, the lesson and step-by-step guide below are complete, and you can run it locally with the commands below.
How to run, build and test
These commands come from the repo's own manifests (package.json scripts, Anchor.toml, Cargo, go.mod, Makefile). Check the README for prerequisites and environment variables.
| Directory | Command | Runs |
|---|---|---|
. | npm run dev | NODE_ENV=development tsx server/index.ts |
. | npm run start | NODE_ENV=production node dist/index.js |
. | npm run build | vite build && esbuild server/index.ts --platform=node --packages=external --bundle --format=esm --outdir=dist |
What you could build from it
- Fork the SuperStack copy and extend it within the Other gaps listed on the idea page.