joshuatochinwachi
Ronin-Ecosystem-Tracker
Jupyter Notebook

Professional analytics web app/dashboard for Ronin blockchain gaming economy with real-time insights, network health monitoring, and comprehensive DeFi/NFT marketplace intelligence.

Last updated May 13, 2026
11
Stars
0
Forks
0
Issues
0
Stars/day
Attention Score
23
Language breakdown
Jupyter Notebook 92.7%
TypeScript 5.3%
Python 1.8%
CSS 0.2%
JavaScript 0.0%
Procfile 0.0%
โ–ธ Files click to expand
README

Ronin Ecosystem Tracker

A comprehensive, production-grade analytics platform for the Ronin blockchain gaming economy. This project provides real-time insights into gaming performance, DeFi activity, NFT marketplace dynamics, and network health monitoring through multiple interfaces: a modern web dashboard, a Streamlit analytics app, and a robust FastAPI backend.

๐ŸŒ Live Applications

๐Ÿ“Š Project Overview

This platform aggregates and visualizes data from 13 different data sources (1 CoinGecko + 12 Dune Analytics queries) to provide a holistic view of the Ronin Network ecosystem. The architecture consists of three main components:

  • FastAPI Backend - Raw data pass-through with 24-hour intelligent caching
  • Next.js Frontend - Modern, interactive web dashboard with real-time updates
  • Streamlit App - Professional analytics interface with advanced visualizations

โœจ Core Features

Analytics Capabilities

  • Gaming Intelligence: Player behavior analysis, game performance rankings, revenue optimization
  • DeFi Analytics: Liquidity flow analysis, trading patterns, whale activity monitoring
  • NFT Marketplace Intel: Collection performance metrics, floor price analytics, revenue breakdown
  • Network Health Monitoring: Real-time performance scoring, congestion analysis, predictive alerts
  • Token Holder Analytics: Distribution analysis, segmentation (whales, large holders, retail)
  • User Retention Analysis: Cohort-based retention tracking with interactive heatmaps

Technical Features

  • 24-hour intelligent caching system for optimal API usage
  • Real-time alert system with severity levels
  • Actionable recommendations and insights
  • Interactive charts and visualizations (Plotly, Recharts)
  • Dark/light mode with persistent preferences
  • Responsive design for all devices
  • Auto-refresh capabilities with manual override
  • Time-based filtering (7, 30, 90 days, all time)

๐Ÿ—๏ธ Architecture

System Design

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  External APIs  โ”‚โ”€โ”€โ”€โ”€โ–ถโ”‚  FastAPI Backend โ”‚โ”€โ”€โ”€โ”€โ–ถโ”‚  Application   โ”‚
โ”‚                 โ”‚     โ”‚  (Railway)       โ”‚     โ”‚                 โ”‚
โ”‚ โ€ข Dune (x12)    โ”‚     โ”‚                  โ”‚     โ”‚ โ€ข Next.js Web   โ”‚
โ”‚ โ€ข CoinGecko     โ”‚     โ”‚ โ€ข 24hr Cache     โ”‚     โ”‚                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ”‚ โ€ข Rate Limiting  โ”‚     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                        โ”‚ โ€ข Data Proxy     โ”‚
                        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Data Flow

  • External APIs โ†’ FastAPI fetches from Dune Analytics & CoinGecko
  • Caching Layer โ†’ 24-hour cache with joblib for persistent storage
  • API Endpoints โ†’ RESTful endpoints serve raw, unmanipulated data
  • Frontend App โ†’ Next.js consume API data
  • User Interface โ†’ Interactive visualizations and real-time updates

๐Ÿ“ก API Documentation

Base URL

Production: https://web-production-4fae.up.railway.app

Key Endpoints

CoinGecko Data

  • GET /api/raw/coingecko/ron - RON token market data

Dune Analytics Data (12 endpoints)

  • GET /api/raw/dune/ronindailyactivity - Daily network metrics
  • GET /api/raw/dune/gamesoverallactivity - Gaming statistics
  • GET /api/raw/dune/gamesdailyactivity - Daily gaming activity
  • GET /api/raw/dune/useractivationretention - User retention cohorts
  • GET /api/raw/dune/roncurrentholders - Token holder data
  • GET /api/raw/dune/ronsegmentedholders - Holder segmentation
  • GET /api/raw/dune/wronactivetrade_pairs - DEX trading pairs
  • GET /api/raw/dune/wronwhaletracking - Whale wallet activity
  • GET /api/raw/dune/wronvolumeliquidity - Volume & liquidity
  • GET /api/raw/dune/wrontradinghourly - Hourly trading patterns
  • GET /api/raw/dune/wronweeklysegmentation - Weekly trader segments
  • GET /api/raw/dune/nft_collections - NFT marketplace data

Utility Endpoints

  • GET /api/cache/status - Cache status for all sources
  • POST /api/cache/refresh - Force refresh all data
  • POST /api/cache/clear - Clear all cached data
  • GET /api/bulk/all - Get all data sources at once

๐Ÿ› ๏ธ Technology Stack

Backend (FastAPI)

  • Framework: FastAPI
  • Data Processing: Pandas, NumPy
  • Caching: Joblib (24-hour persistent cache)
  • APIs: Dune Analytics, CoinGecko Pro
  • Async Operations: aiohttp, asyncio
  • Deployment: Railway

Frontend (Next.js)

  • Framework: Next.js 15 with App Router
  • UI Library: React 19, TypeScript
  • Styling: Tailwind CSS v4, shadcn/ui
  • Charts: Recharts
  • Data Fetching: SWR (stale-while-revalidate)
  • Icons: Lucide React
  • Deployment: Vercel

๐Ÿ“ Project Structure

ronin-ecosystem-tracker/
โ”œโ”€โ”€ main.py                      # FastAPI backend application
โ”œโ”€โ”€ ronintrackerapp.py         # Streamlit analytics app
โ”œโ”€โ”€ requirements.txt             # Python dependencies
โ”œโ”€โ”€ .env                         # Environment variables (create locally)
โ”œโ”€โ”€ rawdatacache/             # Cache directory (auto-created)
โ”œโ”€โ”€ frontend/                    # Next.js application
โ”‚  โ”œโ”€โ”€ app/
โ”‚  โ”‚   โ”œโ”€โ”€ api/                    # Next.js API routes (proxy layer)
โ”‚  โ”‚   โ”‚   โ”œโ”€โ”€ coingecko/
โ”‚  โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ron/
โ”‚  โ”‚   โ”‚   โ”‚       โ””โ”€โ”€ route.ts    # RON token data endpoint
โ”‚  โ”‚   โ”‚   โ””โ”€โ”€ dune/
โ”‚  โ”‚   โ”‚       โ”œโ”€โ”€ games-overall/
โ”‚  โ”‚   โ”‚       โ”œโ”€โ”€ games-daily/
โ”‚  โ”‚   โ”‚       โ”œโ”€โ”€ ronin-daily/
โ”‚  โ”‚   โ”‚       โ”œโ”€โ”€ retention/
โ”‚  โ”‚   โ”‚       โ”œโ”€โ”€ holders/
โ”‚  โ”‚   โ”‚       โ”œโ”€โ”€ segmented-holders/
โ”‚  โ”‚   โ”‚       โ”œโ”€โ”€ trade-pairs/
โ”‚  โ”‚   โ”‚       โ”œโ”€โ”€ whales/
โ”‚  โ”‚   โ”‚       โ”œโ”€โ”€ volume-liquidity/
โ”‚  โ”‚   โ”‚       โ”œโ”€โ”€ hourly/
โ”‚  โ”‚   โ”‚       โ”œโ”€โ”€ weekly-segmentation/
โ”‚  โ”‚   โ”‚       โ””โ”€โ”€ nft-collections/
โ”‚  โ”‚   โ”œโ”€โ”€ layout.tsx              # Root layout with theme provider
โ”‚  โ”‚   โ”œโ”€โ”€ page.tsx                # Main dashboard page
โ”‚  โ”‚   โ””โ”€โ”€ globals.css             # Global styles and design tokens
โ”‚  โ”œโ”€โ”€ components/
โ”‚  โ”‚   โ”œโ”€โ”€ ui/                     # shadcn/ui components
โ”‚  โ”‚   โ”œโ”€โ”€ animated-background.tsx # Particle animation system
โ”‚  โ”‚   โ”œโ”€โ”€ gaming-economy.tsx      # Gaming metrics section
โ”‚  โ”‚   โ”œโ”€โ”€ header.tsx              # Dashboard header with refresh
โ”‚  โ”‚   โ”œโ”€โ”€ hero-section.tsx        # RON token overview
โ”‚  โ”‚   โ”œโ”€โ”€ katana-dex.tsx          # DEX analytics section
โ”‚  โ”‚   โ”œโ”€โ”€ network-activity.tsx    # Network activity charts
โ”‚  โ”‚   โ”œโ”€โ”€ network-health.tsx      # Network health metrics
โ”‚  โ”‚   โ”œโ”€โ”€ nft-collections.tsx     # NFT collections table
โ”‚  โ”‚   โ”œโ”€โ”€ nft-marketplace.tsx     # NFT marketplace section
โ”‚  โ”‚   โ”œโ”€โ”€ retention-heatmap.tsx   # Cohort retention heatmap
โ”‚  โ”‚   โ”œโ”€โ”€ theme-provider.tsx      # Dark/light mode provider
โ”‚  โ”‚   โ”œโ”€โ”€ theme-toggle.tsx        # Theme switcher button
โ”‚  โ”‚   โ”œโ”€โ”€ token-holders.tsx       # Token holder analytics
โ”‚  โ”‚   โ””โ”€โ”€ token-metrics.tsx       # Token metrics cards
โ”‚  โ”œโ”€โ”€ hooks/
โ”‚  โ”‚   โ”œโ”€โ”€ use-mobile.tsx          # Mobile detection hook
โ”‚  โ”‚   โ””โ”€โ”€ use-toast.ts            # Toast notification hook
โ”‚  โ”œโ”€โ”€ lib/
โ”‚  โ”‚   โ””โ”€โ”€ utils.ts                # Utility functions (cn, etc.)
โ”‚  โ””โ”€โ”€ public/                     # Static assets
โ”œโ”€โ”€ Notebooks/                   # Jupyter notebooks for analysis
โ””โ”€โ”€ README.md                   # This file

๐Ÿ”ง Configuration

Caching System

  • Duration: 24-hour cache lifecycle
  • Storage: Local filesystem using Joblib
  • Validation: Automatic cache expiration and refresh
  • Background Tasks: Auto-refresh every 24 hours
  • Efficiency: Shared cache across all users

๐Ÿ“ˆ Performance Considerations

  • API Rate Limits: 24-hour caching minimizes API calls
  • Memory Management: Efficient pandas operations for large datasets
  • Lazy Loading: Progressive component loading for better UX
  • Auto-refresh: Smart revalidation with SWR
  • Background Tasks: Non-blocking data refresh operations

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • KTTY World - For inspiring this analytics tool
  • Ronin Network - For building an innovative gaming-focused blockchain
  • Dune Analytics - For comprehensive on-chain data access
  • CoinGecko - For reliable market data and pricing
  • Vercel - For seamless frontend deployment
  • Railway - For reliable backend hosting
  • Streamlit - For the excellent analytics framework

๐Ÿ“ง Contact

Created by Jo$h - DeFi Analytics Specialist

For questions, suggestions, or collaboration opportunities, feel free to reach out!

Built with โค๏ธ for the Ronin community

๐Ÿ”— More in this category

ยฉ 2026 GitRepoTrend ยท joshuatochinwachi/Ronin-Ecosystem-Tracker ยท Updated daily from GitHub