Static frontend for numericbridge.com. This repository contains HTML, JavaScript, CSS and image assets. Published record, evidence and search-index bytes are maintained separately in the NumericBridge repository. Do not copy the catalog or any private submissions into this repository.
The canonical project's site build assembles a pinned version of this frontend with its published catalog. Keep relative data and evidence URLs same-origin. Frontend updates are deployed by updating the reviewed frontend revision in the canonical project. The public MCP and private review service deploy separately.
The Upstream Contributions cards and Side Peek can augment their published
upstream.json records with an optional anonymous, same-origin GET of
/data/public-pr-status.json. Schema version 1 uses a UTC refreshed_at and
a pull_requests object keyed by canonical GitHub pull request URLs; each
entry has state, checks, updated_at, and fetched_at. Only URLs already
in the published contribution catalog can match. The snapshot is stale when
either refreshed_at or the entry’s fetched_at is at least 15 minutes old.
While the upstream page is visible, the browser checks for a new snapshot
once per minute.
Missing or invalid data leaves the published links, statuses, and history
intact. The frontend never requests status directly from GitHub.
The anonymous submission page accepts the original locally prepared
draft-<sha256>.json for https://numericbridge.com/v1/public-submissions. It
reviews the new anonymous draft locally and sends the exact file bytes plus
X-Draft-SHA256 only after confirmation. The site proxies same-origin
POST /v1/public-submissions and GET /v1/public-submissions/{receipt_id}; the
latter uses the receipt-scoped bearer token. The downloaded private receipt JSON
contains the token; keep it private and do not commit or share it. The page does
not persist the token. A receipt means queued for review, not published.
Run the frontend tests with node --test *.test.cjs.
To include Chrome interaction regressions, set NUMERICBRIDGE_PREVIEW_URL
to the origin of a loopback preview serving the published data and rerun the
same command. These suites use Playwright and restrict their requests to
the local preview; submission writes are mocked. Optionally set
NUMERICBRIDGE_PLAYWRIGHT_MODULE to an installed Playwright module path,
NUMERICBRIDGE_CHROME to a Chrome executable, and CASES_BASELINE_REF to
include the cases DOM comparison against an earlier revision.
Public assets retain the attribution notices in assets.