Skip to content

observerr411/stellar-Track

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 

Repository files navigation

Stellar Track

Real-time payment corridor analytics and predictive reliability scoring for the Stellar network.

React Rust Stellar

Backend CI Frontend CI Contracts CI Full Stack CI


🎯 What It Does

Stellar Track is a comprehensive payment corridor analytics platform that helps you make smarter cross-border payment decisions on the Stellar network.

Core Capabilities:

  • 🎯 Predictive Success Scoring - ML-powered payment success probability before you send
  • πŸ“Š Corridor Analytics - Real-time health metrics for 100+ payment routes
  • βš“ Anchor Intelligence - Reliability scoring and performance tracking for all anchors
  • πŸ’§ Liquidity Monitoring - Live order book depth and liquidity flow analysis
  • ⚑ Settlement Tracking - Median and P95 settlement time monitoring
  • πŸ”— On-Chain Verification - Tamper-proof analytics via Soroban smart contracts
  • πŸ”” Real-Time Alerts - WebSocket notifications for corridor health changes

What Makes Us Different:

  • First platform to offer ML-based payment success prediction
  • Comprehensive anchor reliability scoring system
  • Real-time liquidity depth analysis across all corridors
  • On-chain data verification for trustless analytics

πŸš€ Quick Start

Prerequisites

  • Frontend: Node.js 18+
  • Backend: Rust 1.70+, PostgreSQL 14+
  • Contracts: Soroban CLI

1. Start Database

docker run --name stellar-postgres \
  -e POSTGRES_PASSWORD=password \
  -e POSTGRES_DB=stellar_track \
  -p 5432:5432 -d postgres:14

2. Run Backend

cd backend
cp .env.example .env
cargo run

Server starts at http://localhost:8080

3. Run Frontend

cd frontend
npm install
npm run dev

App available at http://localhost:3000


πŸ“ Project Structure

stellar-track/
β”œβ”€β”€ frontend/          # Next.js dashboard
β”œβ”€β”€ backend/           # Rust analytics engine
β”œβ”€β”€ contracts/         # Soroban smart contracts
└── docs/             # Documentation

πŸ”Œ API Endpoints

RPC Endpoints:

  • GET /api/rpc/health - Network health check
  • GET /api/rpc/payments - Recent payments
  • GET /api/rpc/trades - Recent trades
  • GET /api/rpc/orderbook - Order book data

Analytics Endpoints:

  • GET /api/anchors - List all anchors
  • GET /api/corridors - List payment corridors
  • GET /api/corridors/:key - Corridor details

See RPC.md for complete API documentation.


πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Next.js UI     β”‚  ← Real-time WebSocket updates
β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚
         β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Rust Backend   β”‚  ← High-performance analytics engine
β”‚  (Axum + SQLx)  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚
    β”Œβ”€β”€β”€β”€β”΄β”€β”€β”€β”€β”
    β–Ό         β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚Stellar β”‚  β”‚   Soroban    β”‚
β”‚  RPC   β”‚  β”‚   Contract   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Tech Stack:

  • Frontend: Next.js 15, React 19, TypeScript, Tailwind CSS
  • Backend: Rust (Axum framework), SQLx, PostgreSQL
  • Smart Contracts: Soroban (Rust), WASM
  • Real-Time: WebSocket for live updates
  • ML: Rust-based prediction models
  • Blockchain: Stellar Network (Testnet & Mainnet)

πŸ“Š Key Metrics

Metric Description Use Case
Success Rate % of successful payments per corridor Route optimization
Liquidity Score Available capital depth (0-100) Payment feasibility
Settlement Time P50/P95 confirmation latency SLA monitoring
Anchor Score Reliability rating (0-100) Counterparty selection
Prediction Score ML-based success probability Pre-flight checks
Health Index Composite corridor metric Overall assessment

🀝 Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

Quick Links:


πŸ“– Documentation


πŸŽ“ Use Cases

For Payment Providers & Wallets:

  • Predict payment success before sending (reduce failed transactions)
  • Optimize routing through healthiest corridors
  • Monitor real-time liquidity for large transfers
  • Set up alerts for corridor degradation

For Anchors & Asset Issuers:

  • Track your reliability score vs competitors
  • Monitor asset liquidity across all pairs
  • Identify liquidity gaps and opportunities
  • Benchmark performance metrics

For Exchanges & Market Makers:

  • Real-time order book depth analysis
  • Corridor arbitrage opportunities
  • Settlement time optimization
  • Liquidity provision insights

For Developers & Integrators:

  • RESTful API for all metrics
  • WebSocket feeds for real-time data
  • On-chain verification endpoints
  • ML prediction API

πŸ”’ Security

Analytics snapshots are anchored on-chain via Soroban smart contracts, providing:

  • βœ… Tamper-proof verification
  • βœ… Immutable audit trails
  • βœ… Trustless data integrity

πŸ“„ License

MIT License - see LICENSE file for details.


🌟 Support


Built for the Stellar ecosystem πŸš€

stellar-Track

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors