This Python project generates a dashboard and CSV report that show how many subgraphs are deployed per network on The Graph Network. It includes time-based metrics, daily snapshots, and a modern, responsive HTML interface.
Live Dashboard:
π graphtools.pro/network
π§ͺ This dashboard is part of Graph Tools Pro, a community-driven initiative to provide useful, independent analytics tools for The Graph ecosystem.
- Daily fetch of subgraph counts per network
- HTML dashboard with light/dark theme
- CSV export of all network counts
- 24-hour delta tracking (if yesterdayβs snapshot exists)
- Custom network logos
- JSON snapshot stored daily with timestamp and counts
- Full logs of script runs
π¦ network/
- π fetch_network_metrics.py # Main script
- π .env # Environment variables (not tracked)
- π logs/ # Timestamped log files
- π reports/
- π index.html # Rendered dashboard
- π network_subgraph_counts.csv # CSV report
- π metrics/ # JSON metric snapshots per day
-
Install dependencies:
pip install requests python-dotenv -
Create a .env file:
GRAPH_API_KEY=your_graph_api_key METRIC_SNAPSHOT_HOUR=8 -
Run the script:
python fetch_network_metrics.py -
Open
reports/index.htmlin your browser to view the dashboard.
- π§ The Graph
- π§© Python 3.x, HTML5 + CSS
- βοΈ Data sorting and light/dark theming via vanilla JavaScript