Proposal: alternative "better" versions of the speed test and stability pages

Đang mở
#863 4 bình luận 2 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
css, html, javascript
Lĩnh vực
frontend

Hướng nghiên cứu

Start by reviewing the proposed files in frontend/better/ and the described changes to the Dockerfiles and entrypoint.sh; the issue says the implementation already exists on a fork. First get agreement on whether the feature belongs in the repository and whether it should be split into pull requests. Done would mean the agreed pages are shipped without changing the existing pages, with the described tests passing.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

Description

I would like to propose two new pages, index-better.html and stability-better.html: alternative versions of the classic
speed test and of the stability test, with the same features and a different look. They are new files, so the existing
pages (classic, modern, stability) are not touched and nothing changes for anyone who does not open them. The code is in
frontend/better/, with a small change to the Dockerfiles and to entrypoint.sh to ship the two pages.

What they have:

  • The same tests as today: the speed test with the server selection and the number of connections, and the stability test
    with the server discovery, the target list (local server, Google, Cloudflare, Apple), the alert threshold, the CSV
    download and the rating
  • A round button in the top right corner that opens a panel with every option: light, dark or auto mode, 12 brand colors,
    rounding of buttons and boxes, footer style, font set (system, Inter, Sora, Manrope), text size, high contrast and language
  • Three chart styles on the stability page (polished, bands and uPlot, which is only loaded when chosen)
  • A test history that stays in the browser, with the link and the image of each result
  • Localization in English, Portuguese, Spanish and Swedish, using the same catalog format as #860 (flat JSON with dotted
    keys, data-i18n, data-i18n-attr, the English text kept in the page as the fallback). The Swedish text is the one from #860
  • A layout that works on small screens, and canvases (meters and chart) that follow the theme, the text size and high contrast

Everything is saved in the browser, and some options can also be set with URL parameters (?theme=, ?brand=, ?lang=,
?font=, ?chart=, ?footer=).

Why it should be implemented

  • People who host their own LibreSpeed (home labs, ISPs, companies) often want a page that fits their site: a brand
    color, dark mode, their own language and bigger text for accessibility. Today that means editing the HTML by hand
  • The options (text size, high contrast, themes, localization) make the speed test easier to use for people who need them
  • It is opt-in and additive. The classic and modern pages stay as they are, so there is no risk of changing what
    people already use, and the new pages can be removed by deleting the files
  • The code follows the style of the repository (Prettier, ESLint, Playwright tests) and has no new dependencies, only
    two vendored files that are loaded when needed (the fonts, under SIL OFL, and uPlot, under MIT)

Optional: implementation suggestions

I already have this working on a fork, with 23 new Playwright tests; the whole existing suite (57 tests with Docker)
passes and npm run lint shows no new warnings. It is about 5.8 thousand lines in 46 files, but only about 2 thousand are
code (the rest is CSS, the catalogs, the fonts and uPlot).

Because it is a big change I would like to know first what you prefer before opening a pull request:

  1. Do you want this in the repository at all, or would you rather keep it as a separate project?
  2. If yes, as one pull request, or split (for example the core pages first, then the theme panel and fonts, then the languages)?
  3. How do you want the localization to coexist with #860? The catalogs of the new pages are in frontend/better/locales,
    so they do not conflict with frontend/locales, and they can be merged later

I also have a few smaller improvements for the classic pages that I can send as separate pull requests if you are
interested: a better privacy dialog, text size and high contrast options, an embedded mode, and a test history.

Optional: screenshots

Updated(2026-10-07)

Image Image Image Image
Ngôn ngữ chính
JavaScript
Star
15.3k
Fork
2.5k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của librespeed/speedtest

Tất cả issue của librespeed/speedtest

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.