Sol.College

Structure lesson (licence does not allow quoting code)

Arbor

Original
SwineCoder101/Arbor
SuperStack fork
Blockchains/Arbor @ 8653c5a
Stars
1
Last push (original)
2025-06-16
Languages
TypeScript, JavaScript, CSS, Shell
Detected stack
Next.jsweb3.js
Categories
Other
Licence
none detected: code not quoted on Sol.College
Homepage
https://arbor-nine.vercel.app

Architecture

125 source files. By extension: .tsx ×63, .ts ×60, .js ×2.

Top-level directorySource files
frontend68
experiment30
backend27

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
experiment/jupiter/open-close-position.tsPublicKey, ComputeBudgetProgram, TransactionMessage, VersionedTransaction, getAssociatedTokenAddressSync, findProgramAddressSync
experiment/jupiter/examples/create-market-trade-request.tsPublicKey, ComputeBudgetProgram, TransactionMessage, VersionedTransaction, getAssociatedTokenAddressSync, Program
experiment/jupiter/examples/poll-and-stream-oracle-price-updates.tsPublicKey, Connection, Keypair, AnchorProvider, Program
experiment/safe/dto/main-market.tsPublicKey
experiment/jupiter/constants.tsPublicKey, AnchorProvider, Program, Connection, Keypair
experiment/drift/open-close-position.tsPublicKey, Keypair, getAssociatedTokenAddress, Transaction, Connection, getAccountInfo
backend/src/services/walletService.tsKeypair, Connection, PublicKey, Transaction, getAssociatedTokenAddress
backend/src/test/driftServices.test.tsConnection, PublicKey, Keypair
experiment/safe/flash-loan-cycle.tsConnection, Keypair, Transaction, sendAndConfirmTransaction, PublicKey
experiment/keygen.tsKeypair, Connection, PublicKey, getBalance
experiment/jupiter/examples/generate-position-and-position-request-pda.tsPublicKey, findProgramAddressSync
experiment/safe/util.tsPublicKey, Connection, Keypair, sendTransaction, Transaction

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/arbor/. 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
frontend/arbornpm run dev
frontend/arbornpm run start
frontend/arbornpm run build
frontend/arbornpm run lint
backendnpm run dev
backendnpm run start
backendnpm run build
backendnpm run test
backendnpm run lint

What you could build from it