Skip to content
@StellarPOS-App

StellarPOS

Point of sale with self-settling Stellar QR payments: React app, Node API, Soroban contracts

StellarPOS

Point of sale for shops that take payment on Stellar. Cashiers ring up sales, take cash, card, or a Stellar QR payment in any mix, and the sale completes by itself when the payment lands on-chain. No keys on the server, no copying transaction hashes, no "did it go through?".

The StellarPOS register

The three repositories

Repository What it is Stack
surface The point-of-sale app: register, checkout, orders, stock, customers, reports, settings React 18, TypeScript, Vite, Tailwind, TanStack Query
backend REST + WebSocket API, plus the watcher that settles Stellar payments Node.js 22, Express, embedded SQLite (node:sqlite), Socket.IO
contracts On-chain settlement, loyalty, multisig treasury, and escrow Rust, Soroban SDK 27

How it fits together

flowchart LR
    C[Cashier<br/>surface] -- REST --> A[backend API]
    A -- Socket.IO events --> C
    A -- SQLite --> D[(store data)]
    W[Customer wallet] -- scans SEP-7 QR,<br/>pays with memo --> N[Stellar network]
    A -- watches merchant account<br/>via Horizon --> N
    N --- K[Soroban contracts<br/>registry, processor,<br/>loyalty, treasury, escrow]
Loading
  1. The cashier rings up a sale. The backend reserves the stock and prices the cart.
  2. For a Stellar payment, the app shows a SEP-0007 QR with the amount and a unique memo.
  3. The customer pays from any Stellar wallet. The backend sees the payment on Horizon, checks the account, the asset (code and issuer), the amount and the memo, and completes the sale.
  4. Every terminal in the shop updates live.

The backend only watches the merchant's public key. Customer funds go straight to the merchant's own account.

Try it locally

# 1. API (http://localhost:3000)
git clone https://github.com/StellarPOS-App/backend.git && cd backend
npm install && cp .env.example .env    # set JWT_SECRET (openssl rand -hex 32)
npm run db:seed && npm run dev

# 2. App (http://localhost:5173), in another terminal
git clone https://github.com/StellarPOS-App/surface.git && cd surface
npm install && npm run dev

Sign in as admin@stellarpos.dev with password stellarpos-demo. To take real testnet payments, set STELLAR_MERCHANT_PUBLIC_KEY in the backend's .env to a funded testnet account.

Contracts: git clone https://github.com/StellarPOS-App/contracts.git && cd contracts && make test, then make deploy to deploy the full suite to testnet.

Contributing

We welcome contributions of every size. Start with CONTRIBUTING.md, then browse the open issues in surface, backend and contracts.

Report security issues privately. See SECURITY.md.

All projects are MIT licensed.

Popular repositories Loading

  1. surface surface Public

    TypeScript 33

  2. backend backend Public

    REST + WebSocket API, plus the watcher that settles Stellar payments

    TypeScript 54

  3. contracts contracts Public

    On-chain settlement, loyalty, multisig treasury, and escrow

    Rust 55

  4. .github .github Public

    Organization profile and default community health files for StellarPOS

Repositories

Showing 4 of 4 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…