Sol.College

Structure lesson

BitPOS

Cafe ordering, sponsored Solana devnet payments and merchant-approved AI offers on BitPOS Mini.

What it does

From the project README:

Built by Natthapong Suwanjit. Merchant tablets create itemized bills; customers scan an order or table QR, order on their own phone and authorize a merchant-sponsored stablecoin transaction on Solana devnet. Finalized on-chain verification updates the bill, inventory and the assigned ESP32 display through a durable outbox.
Original
cryptoclocks/BitPOS
SuperStack fork
Blockchains/BitPOS @ 9222095
Stars
0
Last push (original)
2026-11-04
Languages
TypeScript, Dart, PLpgSQL, JavaScript, C, Python
Detected stack
@solana/kitweb3.js
Categories
AI & AgentsPayments
Licence
Apache-2.0
Homepage
https://bitpos.cashlessthailand.com/

Architecture

775 source files. By extension: .ts ×627, .py ×65, .tsx ×61, .c ×15, .js ×7.

Top-level directorySource files
tools338
apps222
tests148
packages29
device14
design10
.omp6
team-guide4

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
apps/worker/src/payout-provider.tsPublicKey, transfer, Transaction, getAccountInfo, VersionedTransaction, Connection
apps/api/src/payments.tsPublicKey, Transaction, transfer, Keypair, Connection, getAssociatedTokenAddressSync
tools/runtime/coffee-copilot-grant-smoke.tsPublicKey, transfer, VersionedTransaction, Keypair, Transaction, TransactionMessage
tools/runtime/food-return108-sql-smoke.tsKeypair, transfer, PublicKey, Transaction, SystemProgram
tools/runtime/coffee-x402-http-smoke.tsPublicKey, transfer, VersionedTransaction, getBalance, TransactionMessage, getAssociatedTokenAddressSync
tools/runtime/delivery-acceptance-builder-smoke.tsPublicKey, Keypair, VersionedTransaction, ComputeBudgetProgram, TransactionMessage, getAccountInfo
apps/api/src/x402-payment.test.tsKeypair, PublicKey, VersionedTransaction, TransactionMessage, ComputeBudgetProgram, signTransaction
apps/web/src/lib/wallet.tssignTransaction, Transaction, VersionedTransaction
tests/backend-payment-assets.test.tsKeypair, PublicKey, Transaction, getAccountInfo
apps/api/src/delegated-payments.tsPublicKey, Transaction, getLatestBlockhash, getAssociatedTokenAddressSync
apps/api/src/delegated-signer.tsPublicKey, Keypair, VersionedTransaction, ComputeBudgetProgram, TransactionMessage, getAssociatedTokenAddressSync
tests/delegated-payments.test.tsPublicKey, Keypair, Transaction, getLatestBlockhash, getAccountInfo

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/bitpos/. 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
.npm run buildastro build --root apps/web
.npm run testtsx --test --test-concurrency=1 tests/*.test.ts
tools/diagram-renderernpm run buildnode render.mjs

What you could build from it

Used in lessons