Full lesson
ForgexAI
What it does
From the project README:
ForgexAI is a revolutionary **Solana Agent Studio** that democratizes AI-powered blockchain automation. Our platform enables users to create sophisticated Solana agents without coding, featuring visual workflow builders, comprehensive protocol integrations, and seamless AI orchestration.
- Original
- forgexai/ForgexAI
- SuperStack fork
- Blockchains/ForgexAI @
7c418a8 - Stars
- 0
- Last push (original)
- 2025-12-12
- Languages
- TypeScript, JavaScript, CSS
- Detected stack
- @solana/kitNext.jsweb3.js
- Categories
- Other
- Licence
- MIT
- Homepage
- https://studio.forgexai.com
Architecture
140 source files. By extension: .tsx ×90, .ts ×49, .js ×1.
| Top-level directory | Source files |
|---|---|
components | 77 |
app | 44 |
lib | 14 |
(root) | 2 |
hooks | 2 |
public | 1 |
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/forgexai/. Until then, the lesson and step-by-step guide below are complete, and you can run it locally with the commands below.
Key code, explained
Excerpts chosen automatically where the code uses the most Solana concepts, pinned to the fork's commit.
lib/solana-wallet.ts L49–71 @ 7c418a8 · MIT · original const transaction = new Transaction().add( SystemProgram.transfer({ fromPubkey: fromWallet.publicKey, toPubkey: toPublicKey, lamports, }) ); // Get recent blockhash const { blockhash } = await connection.getLatestBlockhash(); transaction.recentBlockhash = blockhash; transaction.feePayer = fromWallet.publicKey; // Send and confirm transaction const signature = await sendAndConfirmTransaction(connection, transaction, [ fromWallet, ]); return signature; } catch (error) { console.error("Error sending SOL:", error); throw new Error("Failed to send SOL transaction"); }}- Line 58
const { blockhash } = await connection.getLatestBlockhash();: Fetches a recent blockhash. Transactions expire if it gets too old. - Line 63
const signature = await sendAndConfirmTransaction(connection, transaction, [: Submits the signed transaction to the cluster.
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 | next dev --turbopack |
. | npm run start | next start |
. | npm run build | next build --turbopack |
. | npm run lint | eslint |
What you could build from it
- Fork the SuperStack copy and extend it within the Other gaps listed on the idea page.