Skip to content

oche2920/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