Sol.College

Structure lesson (licence does not allow quoting code)

Flexanon

Anonymous Portfolio on Solana built for Colosseum Cypherpunk. 🏆 1st place in Consumer app on solana using Zerion API Sidetrack

Original
deepakA18/Flexanon
SuperStack fork
Blockchains/Flexanon @ 43c916c
Stars
3
Last push (original)
2025-10-30
Languages
TypeScript, CSS, Rust, JavaScript
Detected stack
AnchorNext.jsweb3.js
Categories
Consumer & Social
Licence
none detected: code not quoted on Sol.College
Homepage
https://flexanon.vercel.app

Architecture

102 source files. By extension: .tsx ×59, .ts ×38, .js ×3, .rs ×2.

Top-level directorySource files
frontend68
backend30
solana-programs4

On-chain programs: solana-programs/programs/solana-programs

How it works: instructions and accounts

Each instruction handler and the accounts struct it validates, found by reading the Rust source. Links go to the exact line at the pinned commit.

InstructionAccountsSource
revoke_allRevokeCommitmentsolana-programs/programs/solana-programs/src/lib_with_relayer.rs:93
revoke_allRevokeCommitmentsolana-programs/programs/solana-programs/src/lib.rs:54

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.

FileSolana APIs used
solana-programs/tests/flexanon.tsKeypair, SystemProgram, PublicKey, requestAirdrop, findProgramAddressSync, Transaction
backend/src/services/relayer.tsKeypair, PublicKey, Program, Connection, getBalance, SystemProgram
backend/tests/e2e-zerion.test.tsPublicKey, Keypair, Connection, Program, AnchorProvider, Transaction
backend/tests/integration.test.tsPublicKey, Keypair, Connection, SystemProgram, Program, Transaction
backend/src/lib/solana.tsPublicKey, Connection, Program, getAccountInfo, AnchorProvider
solana-programs/programs/solana-programs/src/lib_with_relayer.rsPubkey, seeds, init_if_needed, Program, has_one
solana-programs/programs/solana-programs/src/lib.rsPubkey, seeds, init_if_needed, Program, has_one
backend/tests/test-relayer.test.tsKeypair, Connection, PublicKey, Transaction, requestAirdrop, getAccountInfo
backend/tests/test-e2e.tsPublicKey, Keypair, Connection
backend/src/routes/relayer.tsPublicKey, getBalance, Transaction
frontend/components/connect-wallet-button.tsxWalletMultiButton, useWallet
backend/src/services/share.tsPublicKey

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/flexanon/. 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.

DirectoryCommandRuns
frontendnpm run dev
frontendnpm run start
frontendnpm run build
frontendnpm run lint
backendnpm run dev
backendnpm run start
backendnpm run build
backendnpm run test
solana-programsnpm run lint
solana-programsanchor build
solana-programsanchor test
solana-programsanchor run test

What you could build from it