Skip to content
tier-orgPublic

About

Tier Network Explorer

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Tier explorer

A public page with the live state of the Tier network: the backbone nodes, the validator registry, and how reachable each node is from the network's witness nodes. It is a static site with no build step and no dependencies, meant to be served from IPFS.

How it works

The page runs entirely in the browser:

  • Witnesses. Every 30 seconds it fetches GET <witness>/status from each witness listed in site/config.js. A witness is a foundation node with the witness role: it dials every backbone node at each of its addresses about once a minute and serves the result as JSON (CORS enabled). The document's schema is described in apps/node/src/witness_json.hpp in tier-core.

  • Registry. Every 10 minutes it lists validators/<network>/ in tier-core through the GitHub API and reads each <node_id>.toml from raw.githubusercontent.com. If GitHub is unreachable or rate-limits the visitor (60 API requests an hour per IP), the page works without the registry columns.

  • Merging. Nodes are merged by node id across the witnesses and the registry. A node is:

    • up when a majority of the witnesses that probed it reach it;
    • degraded when some reach it, but not a majority;
    • down when none does;
    • pending when it is known but not probed yet;
    • not seen when it is registered but no witness knows it.

    A witness does not probe itself; the other witnesses do. A witness whose last good answer is older than three poll rounds is left out.

  • Uptime is the share of successful probe rounds since each witness last started (the counters live in the witness's memory), averaged over the witnesses.

Registrations are signature-checked when they are added to the registry (by the registration workflow and CI in tier-core), not in this page.

Everything that comes from the witnesses or the registry is put into the page only as text, never as HTML, and the Content-Security-Policy in index.html allows scripts from the page itself only and network requests to the listed origins only.

Pages

  • #/: summary, witnesses and the node table (search by node id, operator or address; click a column to sort).
  • #/node/<node_id>: one node, with its reachability per address and witness. Validator operators can bookmark this link for their node.

Configuration

site/config.js: the network, the witness URLs, the registry repository and the poll intervals. When you change the witness list, also change connect-src in the Content-Security-Policy in site/index.html, or the browser will refuse the requests.

The link-preview tags (Open Graph, Twitter card) and the canonical link in site/index.html use the absolute address https://explorer.tier.org/, since crawlers need absolute URLs; change them there if the page moves. The preview image is site/assets/og-image.png (1200x630).

Run locally

cd site
python3 -m http.server 8000 --bind 127.0.0.1

Open http://127.0.0.1:8000/. The witnesses send Access-Control-Allow-Origin: *, so the live network works from localhost too.

Deploy

build.Dockerfile has an export stage with the contents of site/, the same contract as the Tier website's IPFS deploy:

docker build -f build.Dockerfile --target export --output out .

All paths in the page are relative, so it works from an IPFS gateway path (/ipfs/<cid>/) as well as from its own domain.

License

Apache-2.0, see LICENSE.

About

Tier Network Explorer

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages