A small static dashboard that lists "sources", their "claims", and "proofs" by calling the Source Score API.
index.html— Sources: fetchesGET /sourcesand shows each source's name, score, URL, and tags. Click a source to openclaims.html?source={digest}. The selected source name is saved tosessionStorageassourceName.claims.html— Claims: fetchesGET /source/{sourceUriDigest}/claimsand lists claim titles, URLs, checked status, and validity. Clicking a claim opensproofs.html?claim={digest}and storesclaimNameinsessionStoragefor the header.proofs.html— Proofs: fetchesGET /claim/{claimUriDigest}/proofsand shows whether the proof supports the claim, the proof URL, and who reviewed it.
- Use the table links to move from
index.html→claims.html→proofs.html. - Each link passes a SHA-256 hex digest as a query parameter (e.g.
?source=<digest>or?claim=<digest>). The UI usesencodeURIComponent()when building these URLs. - A Back button on
claims.htmlandproofs.htmlcallshistory.back()to return to the previous page.
- Base URL:
https://source-score.onrender.com/api/v1 - Endpoints used by this UI:
GET /sourcesGET /source/{sourceUriDigest}/claimsGET /claim/{claimUriDigest}/proofs
- Header:
X-API-Key: <key>(the UI usesdemo-api-keyby default)
- All user-facing data is escaped with an
escapeHtml()helper to reduce XSS risk. - Path components that contain digests are URL-encoded with
encodeURIComponent(). - The UI uses a short refresh interval (
REFRESH_MS = 5000) to poll the API for updates.