Full lesson
GitShipt
Repo-native rewards layer for open source on Solana, powered by GitHub activity and Bags fee sharing.
What it does
From the project README:
Launch a Bags.fm token for any GitHub repository and route trading fees back to the people who built it. GitShipt keeps the token launch simple, computes a daily contributor leaderboard from GitHub activity, claims accrued Bags fees into a platform pool, and pays contributors by rank.
- Original
- SYMBaiEX/GitShipt
- SuperStack fork
- Blockchains/GitShipt @
7e0dbd9 - Stars
- 4
- Last push (original)
- 2026-07-13
- Languages
- TypeScript, CSS, PLpgSQL, JavaScript, Shell
- Detected stack
- Next.jsweb3.js
- Categories
- Other
- Licence
- MIT
- Homepage
- https://gitshipt.com
Architecture
485 source files. By extension: .ts ×258, .tsx ×227.
| Top-level directory | Source files |
|---|---|
apps | 441 |
packages | 43 |
scripts | 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/gitshipt/. 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.
apps/web/workflows/steps/rebalanceBps-helpers.ts L445–468 @ 7e0dbd9 · MIT · original } catch (e) { const message = e instanceof Error ? e.message : String(e); await markAttemptFailed(attemptId, `build:${message}`); return { status: "failed", signature: null, error: message }; } await dbHttp .update(bagsRebalanceAttempts) .set({ status: "signing", updatedAt: new Date() }) .where(eq(bagsRebalanceAttempts.id, attemptId)); let signature: string; try { const { blockhash } = await connection.getLatestBlockhash("confirmed"); const message = new TransactionMessage({ payerKey: signer.publicKey, recentBlockhash: blockhash, instructions: [ix], }).compileToV0Message(); const tx = new VersionedTransaction(message); tx.sign([signer]); signature = await connection.sendTransaction(tx, { maxRetries: 3, skipPreflight: false,- Line 458
const { blockhash } = await connection.getLatestBlockhash("confirmed");: Fetches a recent blockhash. Transactions expire if it gets too old. - Line 466
signature = await connection.sendTransaction(tx, {: 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 | cd apps/web && bun --env-file=../../.env.local run dev |
. | npm run start | cd apps/web && NODE_ENV=production bun run start |
. | npm run build | cd apps/web && NODE_ENV=production bun run build |
. | npm run test | cd apps/web && bun run test |
. | npm run lint | cd apps/web && bun run lint |
apps/web | npm run dev | NODE_OPTIONS="${NODE_OPTIONS:+$NODE_OPTIONS }--no-experimental-webstorage" bun run --bun next dev |
apps/web | npm run start | NODE_OPTIONS="${NODE_OPTIONS:+$NODE_OPTIONS }--no-experimental-webstorage" bun run --bun next start |
apps/web | npm run build | NODE_OPTIONS="${NODE_OPTIONS:+$NODE_OPTIONS }--no-experimental-webstorage" bun run --bun next build |
apps/web | npm run test | vitest run |
apps/web | 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.
- Learn the pattern first: Program Derived Addresses (PDAs)
- Learn the pattern first: Cross-Program Invocations (CPIs)