Sol.College

Full lesson

zoneless

Open-source Stripe alternative for stablecoins. Checkout, subscriptions, and marketplace payouts. Stripe-compatible API. Your very own payments stack with no fees.

What it does

From the project README:

Your own open-source payments platform.Accept payments, manage subscriptions, and pay sellers globally in USDC from infrastructure you control. No middlemen and no fees.
Original
zonelessdev/zoneless
SuperStack fork
Blockchains/zoneless @ 5febc1a
Stars
576
Last push (original)
2026-09-30
Languages
TypeScript, HTML, SCSS, Rust, JavaScript, Shell
Detected stack
@solana/kitweb3.js
Categories
DeFiPayments
Licence
Apache-2.0
Homepage
https://zoneless.com

Architecture

580 source files. By extension: .ts ×576, .js ×3, .rs ×1.

Top-level directorySource files
apps464
libs69
sdks45
(root)2

On-chain programs: apps/programs

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

zonelessdev/zoneless · apps/programs/src/lib.rs L37–60 @ 5febc1a · Apache-2.0 · original
        subscription.bump = ctx.bumps.subscription;         emit!(SubscriptionCreated {            subscription: subscription.key(),            subscriber: subscription.subscriber,            merchant: subscription.merchant,            mint: subscription.mint,            amount: subscription.amount,            period_seconds: subscription.period_seconds,            next_charge_at: subscription.next_charge_at,        });         msg!("subscription created; first charge due immediately");        Ok(())    }     pub fn charge_subscription(ctx: Context<ChargeSubscription>) -> Result<()> {        let now = Clock::get()?.unix_timestamp;         require!(            ctx.accounts.subscription.status == SubscriptionStatus::Active,            SubsError::Paused        );        require!(
  1. Line 37 subscription.bump = ctx.bumps.subscription;: Uses the bump seed, the extra byte that pushes the derived address off the ed25519 curve.
  2. Line 39 emit!(SubscriptionCreated {: Emits an Anchor event that clients can parse from the logs.
  3. Line 49 msg!("subscription created; first charge due immediately");: Logs to the program log, which is visible in explorers and the test output.
  4. Line 54 let now = Clock::get()?.unix_timestamp;: Reads on-chain time from the Clock sysvar.
  5. Line 56 require!(: An explicit validation that aborts the instruction with an error.
zonelessdev/zoneless · apps/api/src/modules/chains/Solana.ts L1–24 @ 5febc1a · Apache-2.0 · original
/** * @fileOverview Methods for Solana. * * * @module Solana */ import {  Keypair,  Connection,  clusterApiUrl,  Cluster,  PublicKey,  Transaction,  TransactionInstruction,  ParsedTransactionWithMeta,  ConfirmedSignatureInfo,} from '@solana/web3.js';import bs58 from 'bs58';import {  getAssociatedTokenAddress,  createTransferInstruction,  createTransferCheckedInstruction,  createAssociatedTokenAccountIdempotentInstruction,
  1. Line 22 createTransferInstruction,: An SPL token transfer through the Token Program.
  2. Line 23 createTransferCheckedInstruction,: A checked token transfer, which also verifies the mint and decimals.

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
.npm run devdocker compose up mongodb mongo-express -d && nx run-many -t serve -p api web --output-style=stream
.npm run testnpx nx run-many --target=test --all
.npm run lintnpx nx run-many --target=lint --all

What you could build from it