StableFlow is a Dodo-powered revenue routing product for global software teams. It turns customer payments into verified payout cycles, then settles recipient obligations as stablecoin transfers on Solana with proof, auditability, and a clean operator workspace.
Most global teams can collect revenue, but the moment money needs to fan out across contractors, affiliates, vendors, or agents, operations become slow and manual.
StableFlow fixes that flow:
- Collect revenue through Dodo Payments
- Verify signed webhook events and store them in a ledger
- Apply payout policy and recipient routing
- Settle obligations on Solana
- Keep proof attached from checkout to payout
- Cross-border payout operations are still fragmented
- Teams often manage routing rules in spreadsheets
- Payment events and payout proof live in different tools
- Finance operators need one desk for revenue, routing, settlement, and auditability
StableFlow is built to make that operator flow obvious, structured, and programmable.
- Dodo checkout session creation tied to the StableFlow workspace
- Signed Dodo webhook verification with idempotent payment ingestion
- Supabase Postgres ledger for organizations, payments, recipients, policies, payout runs, transfers, and audit logs
- Policy-backed payout routing across multiple recipients
- Solana devnet settlement using a demo stablecoin treasury
- Proof-oriented workspace for revenue, routing, settlement, and explorer-linked signatures
- Next.js App Router
- TypeScript
- Prisma
- Supabase Postgres
- Firebase Auth
- Dodo Payments
- Solana web3.js
- shadcn/ui
Create .env.local from .env.example, then fill the required Dodo, Supabase, Firebase, and Solana values.
npm install
npm run db:generate
npm run db:push
npm run devThe local app runs at http://localhost:3001.
GET /product landing pageGET /sign-inoperator sign-inGET /sign-upoperator sign-upGET /workspaceprotected operator workspacePOST /api/checkoutcreate a Dodo checkout session and ledger recordGET /api/dashboardreturn the live workspace snapshotGET /api/healthreturn the operational health snapshotPOST /api/webhooks/dodoverify Dodo webhook signatures and create payout runsPOST /api/demo/seedseed a demo organization, policy, payments, and payout runPOST /api/payouts/simulateexecute the latest payout run on Solana devnet
- Product overview: stableflow-frontier.vercel.app
- Workspace: stableflow-frontier.vercel.app/workspace
- Health: stableflow-frontier.vercel.app/api/health
- Asset:
StableFlow USD Demo (sUSD) - Mint:
5iupsp2SQHETtJAyrqKbxwPuLn9me1Zh4jmqspLTNJ8Z - Decimals:
6 - Treasury wallet:
5ykZEE69NaDU9SfoK53MjbQ4g7Rawx1jqZtQFf6eAFfZ
StableFlow is a polished hackathon build with:
- real Dodo payment flow integration
- signed webhook verification
- real database-backed routing records
- Solana devnet settlement proof
- a structured operator workspace for payments, routing, settlements, and proof




