[FEATURE]: Prerender frontend to static HTML so page is readable with JavaScript disabled

Open
#345 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@AdityasagarR123 is already working on this.

Since Nov 18, 2026.

  • #347 by @AdityasagarR123 — open

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
html, javascript, playwright

Research direction

Start by reviewing PR #265 and the open follow-up PR #347, then inspect the frontend build setup and its Playwright tests. Determine how the report page is rendered and built, and verify that the generated dist/index.html contains the report and remains readable with JavaScript disabled while interactive controls work when enabled.

Written by the indexing model from the issue text.

Description

Summary

This is a follow-up to PR #265, as noted in the maintainer review by @ryoari:

With JavaScript turned off, the page is blank. Prerendering the page to static HTML would fix this.

Problem

The frontend site merged in #265 is currently a client-rendered single-page application. When JavaScript is disabled in the browser, the page displays a blank screen because the HTML shell only contains an empty root mount point (<div id="root"></div>).

The site is intended to serve as a readable research report and evidence record. Readers browsing with JavaScript disabled, as well as search engines and web archivers, should be able to view the complete report text, evidence tables, verification figures, and site structure without requiring client-side script execution.

Proposed Solution

Prerender the frontend to static HTML during the build process:

  • Execute static prerendering at build time so that dist/index.html contains the complete HTML markup for the page.
  • Hydrate the prerendered HTML when JavaScript is enabled so interactive controls (e.g., theme toggle, details disclosure, copy buttons) continue to work seamlessly.
  • Verify that when JavaScript is disabled, the full report content and evidence are visible and accessible.
  • Add a Playwright or browser test to ensure the page remains functional and readable with JavaScript disabled.
References
Update

Implemented in #347. Beyond the plan above:

  • The first client render matches the prerendered HTML for every saved theme, so hydration doesn't fail for readers with dark mode saved.
  • If evidence.json can't be fetched, the prerendered report stays up; evidence that fails validation still shows the error.
  • Tests cover the page with JavaScript off, hydration with each saved theme, and both fetch cases.
Dominant language
Python
Stars
27
Forks
72
Avg merge
2d 19h
Merged PRs (30d)
45

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AOSSIE-Org/OpenVerifiableLLM

All issues in AOSSIE-Org/OpenVerifiableLLM

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.