Bounty #1600: Add RustChain stats dashboard - #8412
Open
MrHyplex9511 wants to merge 1 commit into
Open
MrHyplex9511 wants to merge 1 commit into
MrHyplex9511 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes rustchain-bounties #1600.
Adds a standalone RustChain Stats Dashboard.
Deliverable
explorer/stats-dashboard.html— zero-dependency SPA (vanilla JS, no build step). Shows live Network status, Epoch (# + slot), Active Miners (online/total), Epoch Pot, Total Supply (8,388,608 RTC), Transactions, Architecture breakdown bars, and a Top Miners leaderboard. Auto-refreshes every 10 s. Mobile-responsive grid + tables. Empty/offline states degrade gracefully. All server-rendered values escaped (no innerHTML with raw data) to avoid XSS.explorer/stats_server.py— stdlib-only Python server (no Flask/requests). Serves the dashboard and proxies an allow-listed set of node endpoints (health,epoch,api/miners,api/transactions,api/stats) with CORS. Contains offline self-tests:python3 stats_server.py --test.Run
Or serve statically:
python3 -m http.server 9090.Test
7/7 unit tests pass (endpoint allow-list, proxy fetch against fake upstream, HTML served with expected title).