Human-readable payment tags for the Stellar network.
Send to alice*stellartags instead of a 56-character G... address.
Stellar addresses are long and easy to get wrong. Stellar Tags lets anyone claim a short username, a tag, and get paid to it. Under the hood it is a full payment stack:
- a Soroban smart contract that routes payments, takes platform fees, swaps tokens through DEXes and refunds payments that cannot be delivered,
- a Node.js API that runs a SEP-0002 federation server, merchant webhooks, analytics and fraud checks,
- a React dashboard where users connect a wallet, claim a tag, and send or receive payments.
| 🏷️ Username tags | Claim name*domain, keep up to 5 aliases per address, resolve both ways via SEP-0002 federation. |
| ⚡ On-chain routing | route_payment, batch payments, split payments and multi-hop swaps in one Soroban contract. |
| 🔁 Token swaps | Pay in one asset, deliver another, with slippage limits and DEX adapters. |
| ↩️ Safe refunds | Undeliverable payments go to a refund balance the sender can claim later, instead of aborting the transaction. |
| 🔐 Hardened admin | Role-based access, timelocked actions, M-of-N multisig upgrades, emergency freeze, a dead man's switch. |
| 🗳️ Fee governance | Token-weighted proposals and votes for changing fees. |
| 🔔 Merchant webhooks | HMAC-signed deliveries, retries with backoff, a dead letter queue with replay. |
| 📡 Live status | Server-Sent Events stream for payment status updates. |
| 📊 Observability | Prometheus metrics, Grafana dashboard, structured logs, audit logs, CQRS analytics on TimescaleDB. |
| 🕶️ Research | Zero-knowledge private payments (Groth16 / BLS12-381), flash loans, yield escrow, TWAP oracle. |
flowchart TD
U([User / Wallet]) --> D[payment-dashboard<br/>React + Vite]
D -- REST / SSE --> A[stellar-payment-platform<br/>Node.js + Express]
D -- Soroban RPC --> C[payment_router<br/>Soroban contract]
A <--> P[(PostgreSQL<br/>Prisma)]
A <--> R[(Redis<br/>rate limits, queues, streams)]
R --> W[Workers<br/>webhooks · fraud · analytics]
W --> T[(TimescaleDB<br/>analytics read model)]
A -- Horizon / RPC --> S{{Stellar network}}
C --- S
W -- signed webhooks --> M([Merchants])
- The user opens the dashboard and connects a Stellar wallet.
- The dashboard asks the API to register a tag or resolve one to an address.
- The API stores tags in PostgreSQL and serves them over federation.
- Payments are signed in the wallet and routed through the
payment_routercontract. - The Horizon listener picks up the result, pushes live updates to the dashboard, and queues signed webhooks for merchants.
| Path | What it is |
|---|---|
payment-dashboard/ |
React + Vite frontend: landing, registration, send/receive, history, analytics |
stellar-payment-platform/ |
Node.js API, Prisma schema, background workers (webhooks, fraud, analytics, outbox) |
payment_router/ |
Main Soroban contract: routing, fees, swaps, refunds, governance, upgrades |
payment_proxy/ |
Upgradeable proxy contract |
timelock_escrow/ · yield_escrow/ |
Escrow contracts |
flash_loan/ · twap_oracle/ · pausable_token/ |
Supporting DeFi contracts |
zk_payment/ |
Zero-knowledge private payment contract and circuit (research, testnet only) |
packages/types/ |
TypeScript bindings generated from the payment_router ABI |
contracts/ |
Solidity bridge for Axelar cross-chain payments |
scripts/ |
Contract build, deploy and upgrade CLI, binding generation |
tests/integration/ |
Contract integration tests against a local Stellar node |
docs/ |
Guides and reference |
You need: Node 22, Docker, and (for contracts) Rust stable with the
wasm32-unknown-unknown target and the stellar CLI.
git clone https://github.com/Abdulazeem-code/stellar-tags.git
cd stellar-tags1. Start Postgres, Redis and the API
docker compose --profile dev up -dOr run the API outside Docker:
cd stellar-payment-platform
npm install
cp .env.example .env # set DATABASE_URL
npm run prisma:migrate
npm run db:seed # 50 users, webhooks, payment intents, API keys
npm run dev # http://localhost:50002. Start the dashboard
cd payment-dashboard
npm install
echo "VITE_API_BASE=http://localhost:5000" > .env
npm run dev # http://localhost:30003. Build and test the contracts
cargo test --workspace4. Try it
curl http://localhost:5000/health
curl "http://localhost:5000/users?limit=5" # pick a seeded username
curl "http://localhost:5000/federation?q=<username>*localhost&type=name"See the development guide for every Compose profile, database options, seed data details and deployment to Render.
| Area | Command |
|---|---|
| Dashboard | npm --prefix payment-dashboard run lint and run build (no unit tests yet) |
| API | npm --prefix stellar-payment-platform test |
| Contracts | cargo test --workspace |
| Contract integration | npm run test:integration (needs docker compose --profile integration up) |
| Load test | npm run load:test |
| Lint | npm run lint |
CI runs lint, the frontend build, API unit and integration tests with coverage
thresholds, rustfmt / clippy, contract tests, and a check that the generated
TypeScript bindings still match the contract.
Guides
- Development guide: Compose profiles, database, seed data, tests, Render deployment
- Configuration: environment variables, logging, internal mTLS
- Smart contracts: refunds, swaps, governance, deployment, multisig upgrades
- API reference: endpoints, error codes, validation, SSE, DLQ, metrics
Deep dives
- Analytics (CQRS) · Observability and fraud · Grafana dashboard
- Webhook signature verification · mTLS
- DEX token swaps · Flash loans · Data archival
- ZK private payments · ZK routing research
- Cross-chain setup · Axelar integration
- Postman collection
- API + database: the
render.yamlblueprint deploys the API with a managed PostgreSQL database. Migrations run on boot. - Dashboard: any static host (for example Vercel) with
VITE_API_BASEpointing at the API. - Contracts:
./scripts/deploy_contract.sh deploy --network testnetbuilds, optimizes, deploys and writes the new contract ID into both.envfiles. Upgrades need an M-of-N signer group; see Smart contracts.
⚠️ Stellar Tags has not been audited. The ZK setup inzk_payment/is for tests only. Do not use it with real funds.
Contributions are welcome. Please read CONTRIBUTING.md first.
Pre-commit hooks run ESLint and prisma validate, and CI must pass before a PR is merged.
- Fork the repo and create a branch:
git checkout -b feat/my-feature - Make your change, with tests
- Run
npm run lintand the relevant test suites - Open a pull request against
main