13 Commits
Author SHA1 Message Date
poli0981andClaude Opus 5.5 b5517f05c9 chore(release): v1.4.1 — maintenance mode (D36), qodana (D35), suite 3.2 (#76)
- docs: maintenance mode — scope, status, badges and a listing change form (D36)
- chore(release): v1.4.1 — changelog and version

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 09:07:20 +07:00
poli0981andClaude Opus 5.5 732e6364b0 ci: qodana analysis with the ultimate js linter, first findings fixed (D35) (#74)
- ci: qodana analysis with the ultimate js linter (D35)
- docs: qodana in the ci/cd, stack, architecture and security docs (D35)
- fix: the first qodana findings — local throws, redundant escapes, a trivial if
- ci(qodana): keep the twin dark palette, try the astro and svelte plugins
- ci(qodana): keep the astro and svelte plugins, minus their unused-import false positive
- docs: record the first qodana runs (D35)
- ci(qodana): code scanning files the results as tool qdjs
- ci(qodana): drop the svelte plugin, whose results were not deterministic
- ci(qodana): drop the astro plugin too — plugin type checks flip between runs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 08:57:18 +07:00
dependabot[bot] 57e5cae1b8 fix(deps): bump fast-xml-parser from 5.11.2 to 5.12.0 (#73)
Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) from 5.11.2 to 5.12.0.
- [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases)
- [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/NaturalIntelligence/fast-xml-parser/compare/v5.11.2...v5.12.0)

---
updated-dependencies:
- dependency-name: fast-xml-parser
  dependency-version: 5.12.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-15 07:16:45 +07:00
poli0981andClaude Opus 5.5 06b141c63c chore(release): v1.4.0 — changelog, version, ai disclosure, suite 3.1 (#72)
- chore(release): v1.4.0 — changelog, version, ai disclosure, suite 3.1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 21:58:52 +07:00
poli0981andClaude Opus 5.5 0741867294 data: accessibility category, batch 3 and the unverified triage (D34) (#71)
- data: accessibility category, 9 entries, #47 link fixes, re-scan of unverified entries
- data: owner promotions for batch 3 and the unverified triage (D34)

Closes #65
Closes #47

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 21:51:11 +07:00
poli0981andClaude Opus 5.5 b91f6504d9 feat(a11y): accessibility statement, "/" switch and wcag 2.2 fixes (D33) (#70)
- feat(a11y): accessibility statement, "/" switch and wcag 2.2 fixes (D33)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 21:35:23 +07:00
poli0981andClaude Opus 5.5 94c7e4ef47 fix(deps): astro 7.4.7 check fix, @vite-pwa/astro 2.0.1, minor and patch bumps (#69)
* fix(deps): minor and patch bumps; give astro2tsx a matching emnapi runtime
* fix(deps): move to @vite-pwa/astro 2.0.1; retire the glob and serialize-javascript overrides
* refactor(scripts): line-based ES-syntax check in check:sw (Sonar S8786)

Supersedes Dependabot #67 and #68.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 07:41:45 +07:00
poli0981andClaude Opus 5.5 802ba0fc35 fix(deps): patch glob and minimatch; minor and patch bumps, pnpm 11.28 (#66)
OSV-Scanner failed `gates` on both open Dependabot PRs (#63, #64) with
two advisories published 2026-10-30:

- glob GHSA-3g3m-2fjr-6pw4 (>=9 <14.0.2), via workbox-build 7.4.1
- minimatch GHSA-g3hv-75wg-m249 (<11.0.1), via eslint, typescript-eslint
  and filelist (ejs -> jake)

Neither upstream range reaches a fixed major, so both get override floors
(glob ^14.0.2, minimatch ^11.0.1). Every caller uses API the new majors
kept; the service worker's precache list is identical (16 entries) and
eslint lints the same 157 files with the same 151 rules. minimatch 11
requires brace-expansion ^5.0.12, which retires that floor; miniflare now
pins the fixed undici 7.30.1 itself, which retires `miniflare>undici`.

Bumps: #64's ten (astro 7.4.5, svelte 5.57.3, @astrojs/svelte 9.1.2,
eslint 10.14, typescript-eslint 8.72.1, knip 6.44.1, wrangler 4.156.2,
@types/node 26.6.6, iconify sets) plus tailwindcss 4.3.4, vitest and
coverage-v8 5.1.0, globals 17.14; pnpm 11.15.1 -> 11.28.9; #63's
sonarqube-scan-action (to 8.4.1, CLI 8.3.1.16491) and pnpm/action-setup
6.1.1.

Code: simple-icons' JSON now types as IconSet, so the assertion lint
flagged is gone; eslint.config.js uses ESLint's defineConfig in place of
the deprecated tseslint.config(); knip reads CSS, so the Fontsource and
tailwindcss ignoreDependencies are no longer needed.

@vite-pwa/astro 2.0.0 was tried and held back: under pnpm it emitted a
sw.js with bare @vite-pwa/workbox-swkit imports and an empty precache
(check:sw failed six ways). Reasoning in pnpm-workspace.yaml and docs/09 §7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 08:35:29 +07:00
github-actions[bot] 20871c27dc data: refresh VirusTotal scans (#50) 2026-10-30 04:48:18 +00:00
poli0981andClaude Opus 5.5 6650aa6bf7 fix(deps): skip the unpatched deepmerge advisory in the CI gates (#62)
- fix(deps): skip the unpatched deepmerge advisory in the CI gates

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 11:41:51 +07:00
poli0981andClaude Opus 5.5 0cdc730461 feat(worker): site-wide rate limit with the branded 429 page (D32) (#49)
* feat(worker): site-wide rate limit with the branded 429 page (D32)
* docs: record how the rate-limit binding really counts (measured on the preview)

Every page, feed and data request runs the Worker first and spends one
unit of SITE_LIMITER (60 per 10 s per IPv4 or IPv6 /64); over it, the
built /errors/429 page (status 429, Retry-After 10, no-store) or JSON
under /api/. What a page loads stays asset-first. Fails open. Measured on
the preview: holds a client on one connection; many-connection floods are
for the zone rule (docs/16 §9.1). Privacy #rate-limit, LEGAL_VERSION
2026-10-26, suite v3.0, v1.3.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 06:16:14 +07:00
github-actions[bot] ffb470cebc data: VirusTotal re-check — 3 scans refreshed (#45)
data: refresh VirusTotal scans
Merge branch 'main' into vt/recheck

tuta-mail, typora and vlc: download page re-scanned 2026-10-24, no
detections; evidence links and checkedAt move, status stays clean.
2026-10-26 13:05:51 +07:00
poli0981andClaude Opus 5.5 05b3769386 fix(deps): patch undici and serialize-javascript; minor and patch bumps (#48)
fix(deps): patch undici and serialize-javascript; minor and patch bumps

OSV-Scanner failed `gates` on every open PR (#45, #46): undici 7.29.1
(GHSA-xjj6-f33q-929c high, GHSA-4qv8-2p9j-2685, GHSA-f72v-6w45-q472) and
serialize-javascript 7.0.7 (GHSA-m5mm-p8h7-m29v). miniflare
5.20261019.x-beta pins undici exactly, so no update reaches the fix;
`miniflare>undici: ^7.30.1` scopes the floor to that copy (astro's unifont
already uses a fixed undici 8). serialize-javascript ^7.1.3 sits inside
@rollup/plugin-terser's own range. Both are build/dev tooling only.

Takes the six bumps of Dependabot's #46 plus knip 6.43.0:
@astrojs/svelte 9.1.1, astro 7.4.2, @astrojs/check 0.9.12,
prettier-plugin-astro 1.1.2, svelte-eslint-parser 1.10.0,
wrangler 4.152.0, knip 6.43.0.

docs/09 §7 lists the new overrides and notes that an OSV finding blocks
every PR until it is handled there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 13:00:59 +07:00
241 changed files with 5102 additions and 4603 deletions

No files matched your search

+51
View File
@@ -0,0 +1,51 @@
name: Accessibility barrier
description: Something on the site is hard or impossible to use with your setup
labels: [accessibility]
body:
- type: markdown
attributes:
value: |
Thank you — accessibility reports are treated as expertise, not complaints. You never
need to tell us about a disability, and every field except the first two is optional.
Prefer email? Write to accessibility@poli0981.dev (no GitHub account needed). English
or Vietnamese is fine. What happens next: [ACCESSIBILITY.md](https://github.com/poli0981/softharbor/blob/main/ACCESSIBILITY.md#how-we-respond).
- type: textarea
id: what-happened
attributes:
label: What were you trying to do, and what got in the way?
description: For example "I could not reach the Filters button with Tab" or "NVDA reads the search box as 'edit' with no name".
validations:
required: true
- type: input
id: page-url
attributes:
label: Page address
placeholder: https://softharbor.net/apps
validations:
required: true
- type: textarea
id: steps
attributes:
label: Steps to reproduce
description: Optional. The keys you pressed or the commands you used, if you remember them.
- type: input
id: environment
attributes:
label: Device, operating system, browser and assistive technology
description: Optional, with versions if you know them.
placeholder: Windows 11, Firefox, NVDA
- type: dropdown
id: severity
attributes:
label: How much does it get in your way?
description: Optional — we confirm severity during triage.
options:
- Critical — I cannot find an app, read a listing, or open its links
- Serious — it is hard, but there is a way around it
- Moderate — an annoyance or something inconsistent
- Minor — barely affects me
- type: textarea
id: media
attributes:
label: Screenshot or recording
description: Optional — drag a file here if you are comfortable sharing one.
+1 -1
View File
@@ -1,5 +1,5 @@
name: Bug report
description: Something on the site is broken
description: Something on the site is broken or hard to use
labels: [bug]
body:
# Field `id`s are load-bearing: they are the prefill query params used by
+7 -1
View File
@@ -2,7 +2,13 @@ blank_issues_enabled: false
contact_links:
- name: Questions & discussion
url: https://github.com/poli0981/softharbor/discussions
about: General questions, suggestions and anything that is not a bug or an app request.
about: Questions, and anything that is not a bug, an app request or a listing change. New features are not taken (maintenance mode).
- name: Maintenance mode — what is accepted
url: https://github.com/poli0981/softharbor/discussions/75
about: Listings, security re-checks, bugs, UI/UX and accessibility fixes are; new features are not.
- name: Accessibility statement
url: https://softharbor.net/legal/accessibility
about: What the site aims for, what is known, and how accessibility reports are handled (also by email — no account needed).
- name: Report a security issue
url: https://github.com/poli0981/softharbor/security/advisories/new
about: Private vulnerability reporting — please do NOT open a public issue.
+42
View File
@@ -0,0 +1,42 @@
name: Listing change
description: Remove or correct a listed app, or ask for its security check to be re-run
labels: [listing-change]
body:
- type: markdown
attributes:
value: |
A suspected **malicious or hijacked download** is a security report, not an issue —
please report it privately ([SECURITY.md](https://github.com/poli0981/softharbor/blob/main/SECURITY.md)).
Is it **your own app**? You can also write to takedown@poli0981.dev.
- type: input
id: app
attributes:
label: Which app?
description: Its page on the site, or its name.
placeholder: https://softharbor.net/apps/7-zip
validations:
required: true
- type: dropdown
id: change
attributes:
label: What should change?
options:
- Remove — it is now subscription-only, or no longer free / buy-once
- Remove — abandoned, discontinued or unsafe to recommend
- Correct a link — homepage, repository or download page moved
- Correct a detail — pricing, licence, platforms, developer or summary
- Re-check its security status (VirusTotal)
validations:
required: true
- type: textarea
id: evidence
attributes:
label: Evidence
description: Links to the developer's own pages, an announcement, a changelog or a scan — the decision follows the evidence.
validations:
required: true
- type: textarea
id: details
attributes:
label: Anything else
description: Optional.
+41
View File
@@ -0,0 +1,41 @@
<!-- Title: Conventional Commits, lowercase, imperative — it becomes the squash
commit and the changelog line (CONTRIBUTING.md). One logical change per PR;
for data, one app per PR unless a decision-log entry says otherwise.
Maintenance mode (D36): fixes, data and upkeep only — feature PRs are closed. -->
## What and why
<!-- One or two sentences. Link the issue: "Closes #123". -->
## Checks
- [ ] A fix, a data change or upkeep — not a new feature
([maintenance mode](../CONTRIBUTING.md#maintenance-mode))
- [ ] `pnpm lint && pnpm check && pnpm coverage && pnpm build && pnpm knip && pnpm e2e` pass locally
- [ ] Docs that describe the changed behaviour are updated (`docs/`, README, CHANGELOG for
visitor-facing changes)
- [ ] Every new UI string exists in both `src/i18n/en.json` and `src/i18n/vi.json`
## Accessibility ([ACCESSIBILITY.md](../ACCESSIBILITY.md))
Tick what applies, or write "no UI change".
- [ ] Keyboard only: every control reachable in a sensible order, focus always visible,
no traps, Esc closes what it opened
- [ ] Names and states: each control's accessible name matches its visible label;
expanded / selected / checked states are announced
- [ ] Screen-reader spot check (Narrator, NVDA or VoiceOver) for new or changed components
- [ ] Nothing by colour alone; contrast holds in light and dark; forced colours still
show the state
- [ ] 200 % zoom and 320 px width: nothing cut off, no sideways scroll outside tables
- [ ] Motion respects reduced-motion (system and the display menu)
## Data PRs only
- [ ] Checked against the inclusion criteria (docs/00 §3) and the vetting checklist
(docs/09 §6)
- [ ] Summaries written from scratch in English **and** Vietnamese
- [ ] New entries start `unverified` with `evidence: null`; only the maintainer moves one
to `clean`
- [ ] Links are the developer's own domain or official repository — no portals, no
tracking parameters
+5 -5
View File
@@ -57,7 +57,7 @@ jobs:
# (pnpm@11.x), so CI, Dependabot, Workers Builds and laptops all run the
# same pnpm. 6.0.10+ bootstraps with pnpm 11, which is what silenced the
# "pnpm v10 installation layout at PNPM_HOME" warning on every run.
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .nvmrc
@@ -124,7 +124,7 @@ jobs:
with:
fetch-depth: 0 # the changed-links step diffs against the PR base
persist-credentials: false
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .nvmrc
@@ -223,7 +223,7 @@ jobs:
# makes Sonar attribute old lines to the latest commit.
fetch-depth: 0
persist-credentials: false
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .nvmrc
@@ -242,11 +242,11 @@ jobs:
# scannerVersion pins the newest SonarScanner CLI (the action's default
# trails it); the action verifies the download's signature.
- name: SonarQube Cloud scan
uses: SonarSource/sonarqube-scan-action@d209202bc7d53ff1cc128f7f907dac145c9d6ae9 # v8.3.0
uses: SonarSource/sonarqube-scan-action@e805d875275f728fac1885b413934be6d7c63f65 # v8.4.1
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
scannerVersion: 8.2.0.6438
scannerVersion: 8.3.1.16491
args: >-
-Dsonar.projectVersion=${{ steps.version.outputs.version }}
-Dsonar.qualitygate.wait=true
+102
View File
@@ -0,0 +1,102 @@
# docs/12 §2 — Qodana (D35): JetBrains' WebStorm-based analysis, the third
# analyser beside CodeQL (a required check) and SonarQube Cloud (ci.yml
# `sonar`). Scope and the quality gate live in qodana.yaml.
#
# Deliberately NOT a required check: a Qodana Cloud outage, or a licence that
# lapses, must never block a merge. A failing gate still turns this run red on
# the PR, and the findings land in GitHub code scanning beside CodeQL's.
#
# Every `uses:` is pinned to a full commit SHA with the release tag in a
# comment (SonarCloud githubactions:S7637); Dependabot's github-actions
# ecosystem bumps both together. The action's release line also selects the
# linter version (2026.2.x → qodana-js 2026.2).
name: qodana
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
qodana:
# The same guard as ci.yml `sonar`, for the same reason: runs that would
# lack QODANA_TOKEN are skipped — Dependabot (its secrets are a separate
# store), pull requests from forks, and the bot data PRs. The `if:` may
# read only the `github` context; a `secrets` reference here would make the
# whole workflow invalid.
if: >-
github.actor != 'dependabot[bot]' &&
github.actor != 'github-actions[bot]' &&
(github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository)
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
checks: write # the action's annotations
pull-requests: write # its summary comment on the PR
security-events: write # the SARIF upload to code scanning
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# A PR's own head commit rather than the merge commit, so each
# Qodana Cloud report points at a commit that exists on the branch.
# Empty on push and dispatch, where the default ref is right.
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
persist-credentials: false
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .nvmrc
cache: pnpm
# Native mode (qodana.yaml) analyses on this runner: imports resolve
# against this install, on the Node from .nvmrc.
- run: pnpm install --frozen-lockfile
- name: Qodana scan
uses: JetBrains/qodana-action@3e8d76ff0e0241618abd808682f426afe84bab3f # v2026.2.2
with:
# The whole project on every run, PRs included — a change can break
# a file it does not touch.
pr-mode: false
# SARIF, HTML report and logs as the `qodana-report` artifact.
upload-result: true
# Each cache is keyed by commit; saving one per PR push would crowd
# the repository's 10 GB cache budget (and the Playwright cache).
cache-default-branch-only: true
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
QODANA_ENDPOINT: https://qodana.cloud
# Also when the gate failed — that is when the alerts matter — but only
# if the scan got far enough to write its results.
- name: Find the SARIF
id: sarif
if: ${{ !cancelled() }}
run: |
if [ -f "$RUNNER_TEMP/qodana/results/qodana.sarif.json" ]; then
echo "found=true" >> "$GITHUB_OUTPUT"
else
echo "found=false" >> "$GITHUB_OUTPUT"
fi
- name: Upload to GitHub code scanning
if: ${{ !cancelled() && steps.sarif.outputs.found == 'true' }}
uses: github/codeql-action/upload-sarif@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
with:
# No `category:` — Qodana's SARIF carries its own automation id
# (`<project>/qodana/<date>`), which outranks it: code scanning
# files these results as tool QDJS, category softharbor/qodana.
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json
# The commit that was analysed: on a PR its head (checked out
# above), not the merge ref that code scanning would assume.
ref: ${{ github.event_name == 'pull_request' && format('refs/pull/{0}/head', github.event.pull_request.number) || github.ref }}
sha: ${{ github.event.pull_request.head.sha || github.sha }}
+149
View File
@@ -0,0 +1,149 @@
# Accessibility
SoftHarbor exists so that anyone setting up a computer can find official software
quickly. That has to include people who use only a keyboard, a screen reader,
magnification, voice control or a high-contrast theme — and people with those needs
who want to contribute.
This file is the project's accessibility statement for contributors: what we aim
for, what the site already does, how changes are kept accessible, and how to report
a barrier. The visitor-facing version, in English and Vietnamese, is
**[softharbor.net/legal/accessibility](https://softharbor.net/legal/accessibility)**.
Keep the two in step (docs/14 §3g).
## Priorities
- **Target: [WCAG 2.2](https://www.w3.org/TR/WCAG22/) level AA.** It guides the work;
it is **not** a claim of verified conformance. No independent audit has been done,
and we will not claim conformance without one that names its scope, date, method
and evaluator.
- **Keyboard first.** Everything is reachable and operable with the keyboard, in a
logical order, with a visible focus indicator and no traps.
- **Screen readers.** Semantic HTML, a heading per page and a logical outline,
landmarks, real lists and tables, and `lang` on every page and every passage in the
other language, so English and Vietnamese are pronounced correctly.
- **Readable everywhere.** Contrast that holds in both themes, nothing conveyed by
colour alone, text that zooms to 200 % and reflows to 320 CSS px.
- **Respect the visitor's settings.** Reduced motion and forced colours (Windows
contrast themes) from the system, plus the site's own display menu.
## What the site does today
| Area | How | Where |
| ---------------- | -------------------------------------------------------------------------------------------- | ----------------------------------------- |
| Skip link | "Skip to content" is the first stop on every page | `src/layouts/Base.astro` |
| Landmarks | `header`, labelled `nav`s, `main`, `footer`, breadcrumb `nav`/`ol` | `ShHeader`, `ShFooter`, `AppDetailPage` |
| Language | `<html lang>`, hreflang alternates, `lang` on every passage in the other language | `Base.astro`, `ShLangSwitch` |
| Focus | Global `:focus-visible` ring, whole-card ring on app cards, visible on selected segments too | `src/styles/global.css`, `ShPrefs` |
| Dialogs | Native `<dialog>` (`showModal`) and `popover`: focus handling and Esc from the browser | `ShLegalGate`, `ShFilterSheet`, `ShPrefs` |
| Status messages | Result count in an `aria-live` region; search errors in a persistent `role="status"` | `AppsPage.astro`, `ShSearch` |
| Contrast | Tokens tested: ink ≥ 7:1, text ≥ 4.5:1, control edges ≥ 3:1, light and dark | `src/styles/contrast.test.ts` |
| Not colour alone | Security status has its own icon shape; current section underlined | `ShAppCard`, `ShHeader` |
| Display menu | Theme, scrollbar, reduced motion, and **"/" shortcut on/off** (WCAG 2.1.4) | `ShPrefs`, `src/scripts/theme.js` |
| Forced colours | Current section, selected segments and focus stay visible | `ShHeader`, `ShPrefs`, `ShLangSwitch` |
| Images | No images of text; logos are decorative and the name is always text | `ShAppCard`, `ShIcon` |
| Targets | Buttons 44 px, header controls 38–40 px, inline category links 24 px | `global.css`, `ShAppCard` |
| Tables | `caption`, `scope="col"`, keyboard-scrollable region on narrow screens | `src/components/legal/` |
| New tabs | The one link that opens a new tab says so to screen readers | `ShBugReport` |
## Contributor expectations
Every user-facing change keeps these guardrails. The
[pull request template](.github/PULL_REQUEST_TEMPLATE.md) carries the checklist.
**Automated — CI blocks the merge.**
- `pnpm e2e` runs axe (`@axe-core/playwright`, WCAG 2.0/2.1/2.2 A and AA rules) on the
main pages in both themes, on Desktop Chrome and a Pixel 7 viewport, plus the open
legal gate, filter sheet and display menu (`e2e/smoke.spec.ts`, `e2e/a11y.spec.ts`).
Critical, serious and moderate findings fail.
- The same suite checks the skip link, focus return from dialogs, the shortcut switch,
reflow at 320 px and forced colours; `pnpm test` pins contrast and the islands'
names, roles and states.
- If a violation genuinely cannot be fixed, say why in the PR description — never
disable a rule silently.
**By hand, for anything interactive.**
- One keyboard-only pass: Tab / Shift+Tab reaches every control in a sensible order,
focus is always visible, Enter / Space / arrows / Esc do what they should, and you
can get into and out of every dialog and menu.
- A screen-reader spot check (Narrator, NVDA or VoiceOver): headings and landmarks
navigate, every control has a name that matches its visible label, state changes
(expanded, selected, checked) are announced, dynamic updates are read out.
- Zoom to 200 % and narrow to 320 px: nothing is cut off and nothing scrolls sideways
except data tables.
**Content.** Logical heading levels, real lists, descriptive link text (never "click
here"), no colour-only meaning, alternative text where an image carries meaning, and
both languages for every UI string (hard rule 6).
## Reporting an accessibility barrier
We treat accessibility reports as expertise, not complaints. You never need to tell us
about a disability.
- **Email:** accessibility@poli0981.dev — no GitHub account needed.
- **GitHub:** the
[Accessibility issue form](https://github.com/poli0981/softharbor/issues/new?template=accessibility.yml).
If you can, include the page address, what you were trying to do, what happened
instead, and your operating system, browser and assistive technology with versions. A
screenshot or recording is welcome and never required. English or Vietnamese.
### Severity
Maintainers assign or confirm it during triage; reporters do not have to.
- **Critical** — stops a core task: finding an app, reading its listing, or opening its
official links.
- **Serious** — significant difficulty, but a workaround exists.
- **Moderate** — an annoyance or an inconsistent experience.
- **Minor** — little effect on use.
### How we respond
SoftHarbor is maintained by one person; these are commitments that can be kept.
- A reply within **7 days**, with the severity and the next step.
- Targets from the day the report arrives: **Critical 30 days**, **Serious 60 days**,
**Moderate and Minor 90 days**.
- A workaround while a fix is in progress, where one exists.
- If a target slips: the reason, a revised date, and an update on the issue.
- We may ask you to confirm the fix before closing.
## Ownership
Accessibility is owned by the maintainer, [@poli0981](https://github.com/poli0981):
triaging reports, tracking known barriers, keeping this file and the site statement
current, and re-reading both at each release.
## Supported environments
**Tested by hand** (owner, 2026-11-09): keyboard only, and the Narrator screen reader, on
Windows 11 with Chrome, Brave and Firefox — no barriers found.
**Tested automatically** on every change: Chromium (Playwright Desktop Chrome and a
Pixel 7 viewport), light and dark themes, forced colours, 320 px reflow.
**Intended, not yet tested by hand:** the current and previous major versions of
Chrome, Edge, Firefox and Safari; NVDA and JAWS on Windows; VoiceOver on macOS and iOS;
TalkBack on Android. Reports from these are especially welcome.
## Known limitations
- **Bot check.** After the legal notice is accepted, Cloudflare Turnstile runs. It is a
third-party widget whose accessibility we do not control; if it cannot finish, the
gate lets the visitor in anyway (after 10 s, or 120 s once it asks for a click —
docs/14 Part 2).
- **Vendor sites.** Every listing links to the developer's own site and installer;
their accessibility is outside this project.
- **Card summaries** are clamped to two lines; the full text is on the app's page.
- **Vietnamese legal pages** are translations; the English text is canonical.
- **No formal pass yet** with NVDA, JAWS or VoiceOver, and Lighthouse CI is not wired
(docs/13 §2, docs/15 §2 item 8).
## Feedback
Accessibility is ongoing work. Suggestions for this statement or for how the project
works are welcome as an issue, a discussion or a pull request.
+119
View File
@@ -4,6 +4,121 @@ All notable changes to SoftHarbor. The site is continuously deployed; a
version marks a release announced in the repository (docs/13). Dates are
UTC.
## [1.4.1] — 2026-11-15
SoftHarbor is now in **maintenance mode**: it does what it set out to do, so
from here on it is maintained, not extended.
### Changed
- **Maintenance mode** (decision D36). The catalogue keeps growing and being
corrected, every download page is still re-scanned at least every 90 days,
and bugs, UI/UX problems and accessibility barriers still get fixed;
dependencies are kept current, out of schedule when a security advisory
calls for it. New features are no longer taken on. What to send where is in
the [announcement](https://github.com/poli0981/softharbor/discussions/75) and in CONTRIBUTING.md.
- A **Listing change** issue form, for asking that an app be removed,
corrected or have its security check re-run.
- **Qodana** joins CodeQL and SonarQube Cloud: JetBrains' inspections run on
every change and report to GitHub code scanning.
### Fixed
- What Qodana's first run found: the human-check endpoint and the VirusTotal
re-check script no longer use exceptions for ordinary control flow, and two
regular expressions and one filter condition are simpler. Nothing a visitor
sees changes.
## [1.4.0] — 2026-11-09
Accessibility: a public statement of what the site aims for and how to
report a barrier, a round of fixes, and a new category of assistive
software.
### Privacy — what changed
- The display menu has a new switch for the "/" search shortcut. Your
choice is remembered in your browser as `sh:keys`, like the other display
choices, and never sent anywhere. The Privacy Policy lists it, so the
consent dialog asks you to accept once more.
### Added
- **[Accessibility Statement](https://softharbor.net/legal/accessibility)**
in English and Vietnamese: the target (WCAG 2.2 level AA — a goal, not a
claim that every page meets it), what the site does, how it is tested,
what is known not to work yet, and how to report a barrier — by email to
accessibility@poli0981.dev, no GitHub account needed, or with the new
Accessibility issue form. `ACCESSIBILITY.md` in the repository says the
same for contributors, and pull requests now come with an accessibility
checklist.
- **"Keyboard shortcut “/”: On / Off"** in the display menu, for anyone who
sets it off by accident — with speech input, for example. Turned off, the
"/" hints disappear too.
- **An Accessibility category** with eight apps: the NVDA screen reader,
Optikey for typing and controlling the computer with your eyes, Balabolka
and eSpeak NG for speech, Thorium Reader and Bookworm for reading, and
Colour Contrast Analyser and Accessibility Insights for checking your own
work. Also new: Orkas, a desktop AI workspace. 15 categories in all.
### Changed
- On a narrow phone (320 px wide) or at a large zoom, the language and
display buttons move to a second header row instead of off the screen,
and whatever you tab to no longer hides under the header.
- The focused choice in the display menu has a visible focus ring of its
own, and the language switch no longer clips its ring.
- With a Windows contrast theme, the current section, your display choices
and the current language stay marked.
- Category links on app cards are bigger targets; screen readers hear the
filter button as "Filters 2 active" and a search error as soon as it
happens; tables have captions and scroll with the keyboard; "Report a
bug" says it opens a new tab.
- The automated accessibility checks now also fail on moderate findings and
cover every kind of page in both languages, plus the open dialogs.
- The AI Disclosure names the model used for this release.
### Security status — what changed
- Every app still marked "Unverified" was scanned again. Twenty now show
"No known warnings": eight came back with no detections, and twelve whose
only warning came from one or two URL-reputation services were reviewed
by the maintainer and judged false positives — their linked scans still
show that warning. Nine stay "Unverified", each for a stated reason.
364 of the 373 apps carry "No known warnings".
## [1.3.0] — 2026-10-26
Protection against floods: the site now limits how fast one network can
ask for it, and says so plainly when it does.
### Privacy — what changed
- To keep floods and runaway scripts off the site, requests for its pages,
feeds and data are now counted per network address for a few seconds,
then forgotten. No address is kept. The Privacy Policy has a new section,
"Rate limiting", so the consent dialog asks you to accept once more.
### Added
- **A rate limit for the whole site.** A browser or tool that asks for
far more than anyone reading would — over 60 requests in ten seconds —
gets a "Too many requests" page in English and Vietnamese for about ten
seconds instead of the page asked for. The public dataset at
`/api/apps.json` and the bot-check endpoint answer in JSON under the same
limit, and the
dataset's answer is readable from other sites, so tools see the refusal
and when to retry. What a page loads — styles, scripts, fonts, icons — is
never limited, so a page that loads, loads whole.
### Changed
- The "Too many requests" page says how long to wait and points tools at
the dataset.
- The end-to-end tests also run the site's Worker locally and flood it on
purpose: the limit, the 429 page, and everyone let back in afterwards.
- The AI Disclosure names the model used for this release.
## [1.2.0] — 2026-10-23
Upkeep of everything behind the list — security checks that keep
@@ -136,5 +251,9 @@ First public release: 326 apps in 12 categories, English and Vietnamese,
official links only, dated security statuses with their scans linked. See the
[release notes](https://github.com/poli0981/softharbor/releases/tag/v1.0.0).
[1.4.1]: https://github.com/poli0981/softharbor/releases/tag/v1.4.1
[1.4.0]: https://github.com/poli0981/softharbor/releases/tag/v1.4.0
[1.3.0]: https://github.com/poli0981/softharbor/releases/tag/v1.3.0
[1.2.0]: https://github.com/poli0981/softharbor/releases/tag/v1.2.0
[1.1.0]: https://github.com/poli0981/softharbor/releases/tag/v1.1.0
[1.0.0]: https://github.com/poli0981/softharbor/releases/tag/v1.0.0
+40 -13
View File
@@ -2,7 +2,7 @@
> Root instruction file for AI-assisted development (Claude Code).
> Read this first. Detailed specs live in `docs/00–16`.
> Suite version: 2.0 (2026-10-21, site v1.1) · Author: poli0981 / SkullMute
> Suite version: 3.2 (2026-11-15, site v1.4.1) · Author: poli0981 / SkullMute
## What this project is
@@ -17,22 +17,46 @@ googling every tool one by one.
- Hosting: **Cloudflare Workers Static Assets** on canonical
**`https://softharbor.net`** (Free zone; `www` 301s to apex; workers.dev
route disabled, PR previews only — see `docs/16`), deployed by Cloudflare
Workers Builds when `main` changes. One tiny Worker answers
`POST /api/verify` only (D25); no backend, no database.
Workers Builds when `main` changes. One tiny Worker runs the site-wide
rate limit (D32) and answers `POST /api/verify` (D25); no backend, no
database.
- Stack: Node 26 · pnpm 11 · Astro 7 (static output) · Svelte 5 islands ·
Tailwind CSS 4.3 · TypeScript strict (TS 7 `tsc` beside the TS 6 API that
`astro check` needs — D28) · Wrangler 4 — full table in `docs/01`
## Maintenance mode (D36 — since 2026-11-15)
The project is **feature-frozen**: maintained, not extended. Work that is in
scope — and nothing else:
1. **Catalogue** — add, correct or remove listings (one app per PR; the owner
reviews the Vietnamese), VirusTotal re-checks, quarantine.
2. **Fixes** — bugs, UI/UX defects and accessibility barriers.
3. **Dependencies** — Dependabot's weekly PRs; out of schedule for any
advisory rated **High or Critical**, or a serious Node.js security release.
4. **Major language / platform moves** — TypeScript (6 → 7), Astro, Svelte,
Tailwind, Node, Cloudflare Workers / Wrangler majors.
5. **Incidents** — the site down, degraded or under attack.
**Out of scope:** new features, including the frozen feature items of
`docs/15 §2`. Close an issue or PR that proposes one as *not planned* with the
`wontfix` label, and never start one unless the owner lifts D36 first.
Releases: a patch tag when a fix is worth announcing, a minor one for a
platform major; data changes never tag (`docs/13 §1`).
## Hard rules (never violate)
1. **Static-first.** No SSR, no database, no serverless functions; all
interactivity is client-side Svelte islands. The ONE exception (D25) is
`worker/`: a minimal Worker that answers only `POST /api/verify` (the
legal gate's Turnstile check) and runs only for the paths in
`assets.run_worker_first`. It never serves pages, never gates content, and
every failure on its side must fail OPEN. Anything else that seems to need
a server: redesign it or move it to a GitHub Actions workflow — a second
Worker route needs a decision-log entry.
interactivity is client-side Svelte islands. The ONE exception is
`worker/`, a minimal Worker that does exactly two things: the site-wide
rate limit (D32 — over it, a 429; otherwise the request goes to the asset
server untouched) and `POST /api/verify` (D25, the legal gate's Turnstile
check). It runs only for the paths in `assets.run_worker_first`, never
renders or rewrites a page, never withholds one from a person reading at
a normal pace, and every failure on its side must fail OPEN. Anything else
that seems to need a server: redesign it or move it to a GitHub Actions
workflow — a second Worker route, or a change to what runs it first,
needs a decision-log entry.
2. **Data is law.** Every listed app is exactly one JSON file in
`src/data/apps/<slug>.json`, validated by the Zod schema in
`src/content.config.ts`. Invalid data must fail the build. Never bypass the
@@ -77,7 +101,10 @@ criteria (`docs/15`) are met.
| **P3 — Static pages** | Welcome, `/apps`, `/apps/[slug]`, `/categories/[id]`, layouts, tokens, fonts, dark mode (no JS yet) | 02, 06 |
| **P4 — Islands** | Search/filter/sort (MiniSearch + nanostores), language switcher, theme toggle, legal gate | 05, 06, 07, 14 |
| **P5 — Resilience & outputs** | 404/offline/PWA, dormant error templates, `/api/apps.json`, `/rss.xml`, bug-report button | 03, 05, 08 |
| **P6 — Ship** | `_headers`, CI/CD wiring, deploy, seed the app catalogue (326 as of 2026-07-30; 364 after batch 2, 2026-10-23), launch checklist | 09, 10, 12, 13 |
| **P6 — Ship** | `_headers`, CI/CD wiring, deploy, seed the app catalogue (326 as of 2026-07-30; 364 after batch 2, 2026-10-23; 373 after batch 3, 2026-11-09), launch checklist | 09, 10, 12, 13 |
All six phases are done — v1.0.0 shipped on 2026-07-30 — and no new phase
opens: the project is in maintenance mode (above).
## Commands
@@ -103,7 +130,7 @@ pnpm deploy # build + wrangler deploy (Workers Builds does this on m
`ShLegalGate.svelte`, `ShFilterSheet.svelte`, `ShLangSwitch.svelte`,
`ShPrefs.svelte` (display menu; replaced `ShThemeToggle`)
- CSS custom properties: `--sh-*` · localStorage keys: `sh:legal`, `sh:human`,
`sh:lang`, `sh:theme`, `sh:scrollbar`, `sh:motion`
`sh:lang`, `sh:theme`, `sh:scrollbar`, `sh:motion`, `sh:keys`
- Worker name: `softharbor` (code in `worker/`, endpoint `/api/verify`) ·
Data: `src/data/apps/` · Quarantine: `data/quarantine/`
- Contacts: one `@poli0981.dev` address per purpose — `src/lib/contacts.ts`
@@ -125,7 +152,7 @@ pnpm deploy # build + wrangler deploy (Workers Builds does this on m
| `docs/09_SECURITY_PRIVACY.md` | Threat model, `_headers`/CSP, security.txt, data-vetting policy, privacy |
| `docs/10_CODING_STANDARDS.md` | TS/ESLint/Prettier/Knip/lefthook, naming, commits, DoD |
| `docs/11_TESTING.md` | Test pyramid, P0 spikes S1–S5, coverage targets |
| `docs/12_CI_CD.md` | Workflows (ci incl. SonarQube Cloud / quarantine / vt-recheck / link-check), `poli0981/.github` wiring, issue forms |
| `docs/12_CI_CD.md` | Workflows (ci incl. SonarQube Cloud / qodana / quarantine / vt-recheck / link-check), `poli0981/.github` wiring, issue forms |
| `docs/13_RELEASE.md` | Launch checklist, seed list, versioning, notify.py announcement |
| `docs/14_LEGAL.md` | Licensing model, legal-gate spec, bilingual drafts (Disclaimer/Privacy/Terms/Trademarks/Third-party) |
| `docs/15_ROADMAP.md` | Milestones, post-v1 backlog, decision log, open questions |
+50 -4
View File
@@ -9,9 +9,35 @@ under **GPL-3.0-only**, dataset entries under **CC BY-SA 4.0**.
- Code of Conduct: [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md)
- Security vulnerabilities: [SECURITY.md](SECURITY.md) — **never** a public issue
- Accessibility: [ACCESSIBILITY.md](ACCESSIBILITY.md) — the guardrails every
user-facing change keeps, and how barriers are reported
- Contact: Code of Conduct reports **code@poli0981.dev**, licensing questions
**copyright@poli0981.dev**; anything else, open an issue
## Maintenance mode
Since 2026-11-15 SoftHarbor is **maintained, not extended** — decision D36 in
[docs/15 §4](docs/15_ROADMAP.md), announced in
[Discussions](https://github.com/poli0981/softharbor/discussions/75).
**Accepted** — issues and pull requests that:
- **add** an app (after its App request is accepted), or **remove** or
**correct** a listed one
- ask for or record a **security re-check** of a listing (VirusTotal)
- fix a **bug**, or a **UI/UX** or **accessibility** problem on the site
The maintainer also keeps the platform current: dependency updates on
Dependabot's weekly schedule — and out of schedule for a dependency with a
**High or Critical** CVE or a serious Node.js security release — major
language and platform updates (TypeScript, Astro, Cloudflare Workers /
Wrangler), and incidents: the site down, degraded or under attack.
**Not accepted** — **new features**, and issues or pull requests that propose
one. They are closed as _not planned_ (label `wontfix`). That is not a verdict
on the idea: the scope is frozen, and reviewing features would take the time
the catalogue needs.
## Suggesting an app
Open an **App request** issue. Do not open a pull request for a new app before
@@ -29,11 +55,25 @@ An app is listable only when all of these hold ([docs/00 §3](docs/00_PROJECT_OV
- Maintained, or finished and stable. Not abandonware with open vulnerabilities
- No bundled adware in the official installer; nothing piracy-adjacent
## Removing or correcting a listing
Open a **Listing change** issue when an app went subscription-only, was
abandoned, moved its official pages or has a wrong detail — or when you want
its security check re-run. Link the evidence; the decision follows it. A
suspected **malicious or hijacked download** is a security report, not an
issue ([SECURITY.md](SECURITY.md)). If it is **your own app**, you can also
write to **takedown@poli0981.dev**.
A removal is reviewed like an addition. An app that turns out harmful is
quarantined rather than deleted (docs/03 §5), so the record of why stays.
## Reporting a bug
Use the **Bug report** form, or the "Report a bug" button on any app page —
it pre-fills the details. Bugs are about _this site_. We cannot help with the
software we link to; take that to its own developer.
software we link to; take that to its own developer. Something that is hard to
use counts too: UI/UX problems and accessibility barriers
([ACCESSIBILITY.md](ACCESSIBILITY.md)) are bugs here.
## Changing code or data
@@ -42,7 +82,9 @@ software we link to; take that to its own developer.
3. Conventional Commits, lowercase, imperative — `feat:`, `fix:`, `data:`,
`docs:`, `chore:`, `ci:`, `refactor:`, `test:`. The squash title becomes the
changelog entry, so it has to stand alone.
4. Run every gate before pushing. CI runs the same ones and they are not
4. Fill in the pull request template — its accessibility checklist applies to
any change a visitor can see or operate.
5. Run every gate before pushing. CI runs the same ones and they are not
advisory:
```bash
@@ -67,8 +109,9 @@ download page and records the permalink, and only the maintainer moves an
entry to `clean` (docs/09 §6). If you change an existing entry's
`links.download`, the old scan no longer describes it — say so in the PR.
If you are unsure whether something is wanted, open a discussion first. A
short question costs everyone less than a large rejected PR.
If you are unsure whether something is wanted, ask in a discussion first. A
short question costs everyone less than a large rejected PR — and new features
are not wanted while the project is in [maintenance mode](#maintenance-mode).
## Closed without discussion
@@ -107,6 +150,9 @@ blocked:
output unread is not. This project discloses its own AI use at
[/legal/ai-disclosure](https://softharbor.net/legal/ai-disclosure), and holds
contributions to the same standard it holds itself.
- **Feature work** of any size while the project is in
[maintenance mode](#maintenance-mode) — including a feature presented as a
fix.
- **Drive-by or automated PRs** — whitespace, reformatting, badge additions,
dependency bumps Dependabot already owns, or bulk submissions for contribution
counts.
+63 -24
View File
@@ -1,5 +1,14 @@
# SoftHarbor
[![Status: maintenance mode](https://img.shields.io/badge/status-maintenance%20mode-blue)](#project-status)
[![ci](https://github.com/poli0981/softharbor/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/poli0981/softharbor/actions/workflows/ci.yml)
[![codeql](https://github.com/poli0981/softharbor/actions/workflows/codeql.yml/badge.svg?branch=main)](https://github.com/poli0981/softharbor/actions/workflows/codeql.yml)
[![qodana](https://github.com/poli0981/softharbor/actions/workflows/qodana.yml/badge.svg?branch=main)](https://github.com/poli0981/softharbor/actions/workflows/qodana.yml)
[![Quality gate](https://sonarcloud.io/api/project_badges/measure?project=poli0981_softharbor&metric=alert_status)](https://sonarcloud.io/summary/overall?id=poli0981_softharbor)
[![Release](https://img.shields.io/github/v/release/poli0981/softharbor)](https://github.com/poli0981/softharbor/releases/latest)
[![Code: GPL-3.0-only](https://img.shields.io/badge/code-GPL--3.0--only-blue)](LICENSE)
[![Data: CC BY-SA 4.0](https://img.shields.io/badge/data-CC%20BY--SA%204.0-lightgrey)](LICENSE-DATA.md)
**[softharbor.net](https://softharbor.net)** — a bilingual (EN/VI) directory of
desktop software that is **free**, or **buy-once**. Never subscription-only.
@@ -9,9 +18,26 @@ filter by category and platform, and go straight to every **official** source.
The site hosts **no binaries**. It is a map, not a mirror.
## Project status
**Maintenance mode since 2026-11-15 (v1.4.1).** SoftHarbor does what it set
out to do, so from here on it is maintained, not extended
([announcement](https://github.com/poli0981/softharbor/discussions/75), decision D36 in
[docs/15](docs/15_ROADMAP.md)).
- **Still happening:** apps added, corrected and removed; every download page
re-scanned at least every 90 days; bug, UI/UX and accessibility fixes;
dependency updates on a schedule — and out of schedule for a High or
Critical CVE, a serious Node.js security release, a major TypeScript, Astro
or Cloudflare Workers update, or anything that puts the site at risk.
- **Not accepted:** new features. Issues and pull requests that propose one
are closed as _not planned_.
What to send where: [CONTRIBUTING.md → Maintenance mode](CONTRIBUTING.md#maintenance-mode).
## What is in it
**364 apps** across 14 categories, each one file in `src/data/apps/`. Every
**373 apps** across 15 categories, each one file in `src/data/apps/`. Every
entry carries:
- original two-line summaries in English _and_ Vietnamese — written from
@@ -22,24 +48,27 @@ entry carries:
- a **dated** security status with the scan permalink behind it
On security the site says _"no known warnings as of &lt;date&gt;"_ and never
more than that. 320 entries are `clean`; 6 are held at `unverified` because at
least one scanner flagged something, and holding them is more honest than
explaining it away. The scan is linked either way — judge it yourself.
more than that. 364 entries are `clean`; 9 are held at `unverified` — a
scanner flagged something, or an advisory or an unsigned build is still open —
and holding them is more honest than explaining it away. The scan is linked
either way — judge it yourself.
## How it is built
Static. No database, no accounts, no cookies; fonts, icons and scripts are
self-hosted. The exceptions are deliberate and small: one tiny Worker endpoint
that checks the legal gate's Cloudflare Turnstile token (`worker/`, and the
gate lets you in even if the check cannot run), and cookieless Cloudflare Web
self-hosted. The exceptions are deliberate and small: one tiny Worker
(`worker/`) that rate-limits floods — over the limit you get a "Too many
requests" page for a few seconds — and checks the legal gate's Cloudflare
Turnstile token (the gate lets you in even if the check cannot run), and
cookieless Cloudflare Web
Analytics, which does not load at all when your browser sends Global Privacy
Control. The [Privacy Policy](https://softharbor.net/legal/privacy) has the
details.
Astro 7 (static) · Svelte 5 islands · Tailwind CSS 4 · TypeScript strict ·
Node 26 · pnpm 11 · Cloudflare Workers Static Assets (+ one Worker route).
Node 26 · pnpm 11 · Cloudflare Workers Static Assets (+ one small Worker).
Tested with Vitest (unit, islands, build scripts, the Worker) and Playwright +
axe on the built site; analysed by CodeQL and SonarQube Cloud.
axe on the built site; analysed by CodeQL, SonarQube Cloud and Qodana.
```bash
pnpm install
@@ -64,10 +93,19 @@ pnpm knip # dead code and unused deps
## Contributing
Suggest an app or report a bug with the
[issue forms](https://github.com/poli0981/softharbor/issues/new/choose).
Read **[CONTRIBUTING.md](CONTRIBUTING.md)** before opening a pull request — it
lists the inclusion criteria and what gets closed on sight.
Suggest an app, ask for a listing to be removed, corrected or re-checked, or
report a bug with the
[issue forms](https://github.com/poli0981/softharbor/issues/new/choose) —
feature requests are not taken in maintenance mode. Read
**[CONTRIBUTING.md](CONTRIBUTING.md)** before opening a pull request — it
lists the inclusion criteria and what gets closed on sight. Everyone taking
part follows the [Code of Conduct](CODE_OF_CONDUCT.md).
Something on the site gets in your way — with a keyboard, a screen reader,
zoom or a contrast theme? [ACCESSIBILITY.md](ACCESSIBILITY.md) says what we aim
for and how reports are handled (the
[site statement](https://softharbor.net/legal/accessibility) is in English and
Vietnamese).
Found a security problem? [SECURITY.md](SECURITY.md) — please do not open a
public issue.
@@ -95,14 +133,15 @@ AI was used to build this project; where and how is disclosed at
Maintained by [@poli0981](https://github.com/poli0981). One address per
purpose, so a message reaches the right queue:
| About | Address |
| --------------------------------------------------- | ---------------------- |
| A vulnerability, or a hijacked or malicious listing | security@poli0981.dev |
| Privacy | privacy@poli0981.dev |
| Terms, disclaimer, other legal | legal@poli0981.dev |
| A copyright complaint | dmca@poli0981.dev |
| Changing or removing your app's listing or logo | takedown@poli0981.dev |
| Licensing of the code or the dataset | copyright@poli0981.dev |
| Code of Conduct | code@poli0981.dev |
| Press | press@poli0981.dev |
| Collaboration | collab@poli0981.dev |
| About | Address |
| --------------------------------------------------- | -------------------------- |
| A vulnerability, or a hijacked or malicious listing | security@poli0981.dev |
| Privacy | privacy@poli0981.dev |
| An accessibility barrier on the site | accessibility@poli0981.dev |
| Terms, disclaimer, other legal | legal@poli0981.dev |
| A copyright complaint | dmca@poli0981.dev |
| Changing or removing your app's listing or logo | takedown@poli0981.dev |
| Licensing of the code or the dataset | copyright@poli0981.dev |
| Code of Conduct | code@poli0981.dev |
| Press | press@poli0981.dev |
| Collaboration | collab@poli0981.dev |
+10 -4
View File
@@ -6,6 +6,12 @@ The **latest deploy** of `https://softharbor.net` is the only supported
target. This is a continuously deployed static site; there are no released
versions to patch (docs/13 §1).
The project is in **maintenance mode** since 2026-11-15
([CONTRIBUTING.md](CONTRIBUTING.md#maintenance-mode)): no new features, but
security fixes are part of maintenance, not an exception to it. A dependency
with a High or Critical advisory, a serious Node.js security release or an
attack on the site is handled out of schedule.
## Reporting a vulnerability
Please use **GitHub's private vulnerability reporting** on this repository
@@ -32,10 +38,10 @@ Acknowledgement within **72 hours**. Machine-readable contact details are in
- Vulnerabilities in the **listed third-party applications themselves**.
Report those to their vendors — but please tell us too, so we can flag the
entry while it is unresolved.
- Server-side issues beyond one endpoint: the site is static except for
`POST /api/verify`, the legal gate's Turnstile check (`worker/`, D25),
which **is** in scope. There is no database, no accounts and no cookies
(docs/09 §3).
- Server-side issues beyond the one small Worker: the site is static except
for `worker/`, which rate-limits requests (D32) and answers
`POST /api/verify`, the legal gate's Turnstile check (D25) — both **are**
in scope. There is no database, no accounts and no cookies (docs/09 §3).
## What we do not claim
+26 -3
View File
@@ -5,7 +5,7 @@ import { createHash } from 'node:crypto';
import { defineConfig } from 'astro/config';
import svelte from '@astrojs/svelte';
import sitemap from '@astrojs/sitemap';
import AstroPWA from '@vite-pwa/astro';
import { AstroPWAIntegration } from '@vite-pwa/astro';
import tailwindcss from '@tailwindcss/vite';
import Icons from 'unplugin-icons/vite';
import { VIEW_TRANSITION_OPT_IN } from './src/lib/inlineCss';
@@ -118,7 +118,16 @@ export default defineConfig({
i18n: { defaultLocale: 'en', locales: { en: 'en', vi: 'vi' } },
filter: (page) => !NON_INDEXED.test(page),
}),
AstroPWA({
// @vite-pwa/astro 2 (on @unplugin-pwa) since 2026-11-09. Under pnpm it
// needs four packages as DIRECT dependencies. Without `rolldown` or
// `magicast` the SW build stops with an error. Without
// `@vite-pwa/workbox-swkit` the classic sw.js keeps bare ES imports and an
// empty precache; without `@vite-pwa/workbox-window` registerSW.js starts
// with an ES import the page cannot run as a classic script — and in both
// cases the build reports success (docs/09 §7; `check:sw` catches them).
// The two workbox packages must resolve to the version
// @vite-pwa/workbox-build pins (`pnpm why @vite-pwa/workbox-swkit`).
AstroPWAIntegration({
registerType: 'autoUpdate',
// MUST be explicit. Without it the build still emits registerSW.js but
// never references it from any page, so the service worker never
@@ -128,6 +137,14 @@ export default defineConfig({
// plus hashes Astro generates, and a PWA-injected inline snippet is not
// one of them (docs/09 §4, D20).
injectRegister: 'script',
// Unminified on purpose: `check:sw` asserts the SW by the names in it
// (NetworkOnly, precacheAndRoute, skipWaiting), which minification
// mangles. Cost: ~1.6 kB sw.js plus a ~38 kB workbox runtime chunk,
// both compressed in transit.
minify: false,
// 1.x never precached the manifest icons; 2.x defaults to doing so.
// Keep the precache to what the offline page needs (16 entries).
includeManifestIcons: false,
manifest: {
id: '/',
name: 'SoftHarbor',
@@ -153,7 +170,9 @@ export default defineConfig({
{ src: '/favicon.svg', sizes: 'any', type: 'image/svg+xml', purpose: 'any' },
],
},
workbox: {
// `generateSW` (1.x called it `workbox`; the old key still works but is
// deprecated).
generateSW: {
// These globs are coupled to build.format — 'file' emits offline.html,
// 'directory' would emit offline/index.html. And fonts are
// content-hashed into _astro/, never a /fonts/ directory. Both of the
@@ -188,6 +207,10 @@ export default defineConfig({
// activation, so a first-time visitor who loses connection mid
// session gets the browser's error page instead of ours (S5).
clientsClaim: true,
// Explicit since 2.x: 1.x emitted cleanupOutdatedCaches() by default,
// 2.x does not, so caches left by older Workbox precache formats would
// stay on visitors' disks.
cleanupOutdatedCaches: true,
// `navigateFallback: ''` DISABLES it. Leaving the key out does not:
// vite-plugin-pwa's `defaultWorkbox` sets `navigateFallback:
+14 -8
View File
@@ -1,10 +1,10 @@
# 00 — Project Overview
> **Project:** SoftHarbor
> **Doc suite version:** 2.0 (2026-10-21, site v1.1)
> **Doc suite version:** 3.2 (2026-11-15, site v1.4.1)
> **Author:** poli0981 / SkullMute · **License:** code GPL-3.0-only · data CC BY-SA 4.0
> **Platform:** Web (static), Cloudflare Workers Static Assets, canonical `https://softharbor.net`
> — plus one Worker route, `POST /api/verify` (D25)
> — plus one Worker: the site-wide rate limit (D32) and `POST /api/verify` (D25)
## 1. Elevator pitch
@@ -104,11 +104,15 @@ consistent over time.
| D19 | Suite correctness | Spec claims about external systems are **verified against the real system** before they enter the docs | 2026-07-27 | The 2026-07-27 audit found two ops-repo workflows that never existed and four stale tool majors — all cheap to catch on paper, all expensive to catch in CI |
| D23 | Logo fallback | Third `logo` form `monogram` (initials) when no brand mark is available | 2026-07-29 | Simple Icons covers only part of the catalogue; docs/14 §3d sanctions no other source than the vendor's own assets (docs/15 §4) |
| D24 | Seed import | The seed batch was exempt from one-app-per-PR | 2026-07-29 | 286 machine-uniform files; the rule resumes for every later entry (docs/15 §4) |
| D25 | Server code | **One Worker, for `POST /api/verify` only** (amends hard rule 1): the legal gate's step 2 — Turnstile after acceptance, token checked server-side, rate-limited, everything fails **open**; `run_worker_first` keeps pages and assets on the unbilled asset path | 2026-10-21 | Consent-first human check on a public site without ever locking a person out (docs/09 §4a, docs/08 Part E) |
| D25 | Server code | **One Worker, for `POST /api/verify` only** (amends hard rule 1): the legal gate's step 2 — Turnstile after acceptance, token checked server-side, rate-limited, everything fails **open**; `run_worker_first` keeps pages and assets on the unbilled asset path — *amended 2026-10-26 by D32: the Worker now runs first for pages, feeds and data too, for the site-wide rate limit; content-hashed assets stay asset-first* | 2026-10-21 | Consent-first human check on a public site without ever locking a person out (docs/09 §4a, docs/08 Part E) |
| D26 | Analytics | **Cloudflare Web Analytics, honouring Global Privacy Control** (supersedes D14; amends hard rule 7): cookieless beacon, never under GPC, production host only | 2026-10-21 | Knowing whether the site works and is used, with the least data and a privacy signal honoured (docs/09 §8) |
| D27 | Contacts | **One address per purpose at `@poli0981.dev`** — `src/lib/contacts.ts`; `contact@softharbor.net` retired; mail hosted by Google | 2026-10-21 | A message reaches the right queue; `sponsor@` deliberately unused (docs/14 Part 2) |
| D28 | Toolchain | **Node 26 + TypeScript 6/7 side by side** (amends D7 and D21) — `.nvmrc` 26; `typescript` = the `@typescript/typescript6` API wrapper, `@typescript/native` = TS 7, whose `tsc --noEmit` now type-checks every `.ts` file in `pnpm check` | 2026-10-23 | Node 24 entered maintenance 2026-10-20; TS 7 ships no API yet, which astro check, typescript-eslint and svelte2tsx need (docs/01 §2) |
| D32 | Rate limiting | **Site-wide rate limit in the Worker** (amends hard rule 1 and D25): `run_worker_first` is `/*` minus the files a page loads (`/_astro/*`, icons, service worker); every request it routes spends one unit of `SITE_LIMITER` — 60 per 10 s per IPv4 or IPv6 /64, per location — and over it gets the branded `/errors/429` page (JSON under `/api/`), `Retry-After: 10`; fails **open** | 2026-10-26 | A flood or a runaway scraper gets refused cheaply with our own page instead of the Free zone's default; configured and tested in the repo (wrangler.jsonc, e2e/worker.spec.ts), not in a dashboard (docs/08 Part F) |
| D29 | Code analysis | **SonarQube Cloud CI-based analysis with coverage** (`ci.yml` `sonar` job, not a required check) replaces Automatic Analysis | 2026-10-23 | Automatic Analysis cannot import coverage; a CI scan measures the same lcov the ratchet gates (docs/12 §2, docs/11 §1) |
| D33 | Accessibility | **WCAG 2.2 AA as a target, never a conformance claim**; `ACCESSIBILITY.md` + its twin `/legal/accessibility`; contact `accessibility@`; the "/" shortcut can be turned off (`sh:keys`, WCAG 2.1.4) | 2026-11-09 | GitHub's community profile asked for it, and an audit found barriers the manual pass did not (focus on the checked display choice, the header at 320 px, forced colours); axe now fails on moderate findings and covers the open dialogs (docs/15 D33) |
| D35 | Code analysis | **Qodana as a third analyser** beside CodeQL and SonarQube Cloud: `qodana-js` (Ultimate licence) in native mode, profile `qodana.recommended`, any finding fails the job, SARIF to GitHub code scanning (tool `QDJS`) — **not a required check** (`qodana.yml`, `qodana.yaml`) | 2026-11-15 | WebStorm's inspections catch a different class of problem than CodeQL (security) and Sonar (maintainability); not required for D29's reason — an outside service must never block a merge |
| D36 | Project status | **Maintenance mode** — maintained, not extended: catalogue work, bug, UI/UX and accessibility fixes, dependency upkeep (out of schedule for a High or Critical advisory or a serious Node.js security release), major language and platform updates, incidents; **new features are not accepted** and docs/15 §2's feature items are frozen | 2026-11-15 | The site does what it set out to do; review time belongs to the catalogue's accuracy, which is the product |
## 6. Identifiers (locked)
@@ -116,11 +120,11 @@ consistent over time.
|---|---|
| Repo slug | `poli0981/softharbor` |
| Canonical origin | `https://softharbor.net` (apex; `www` 301s to it) |
| Worker name | `softharbor` — code in `worker/`, one endpoint `POST /api/verify` (D25); workers.dev route disabled; versioned preview URLs only (docs/16 §3) |
| Worker name | `softharbor` — code in `worker/`: the site-wide rate limit (D32) and one endpoint, `POST /api/verify` (D25); workers.dev route disabled; versioned preview URLs only (docs/16 §3) |
| Contact email | One address per purpose at `@poli0981.dev` — `src/lib/contacts.ts`, page `/contact` (D27; `contact@softharbor.net` retired) |
| Component prefix | `Sh*` (islands: `ShLegalGate`, `ShSearch`, `ShFilterSheet`, `ShLangSwitch`, `ShPrefs`, `ShBugReport`) |
| CSS custom property prefix | `--sh-*` |
| localStorage keys | `sh:legal`, `sh:human`, `sh:lang`, `sh:theme`, `sh:scrollbar`, `sh:motion` |
| localStorage keys | `sh:legal`, `sh:human`, `sh:lang`, `sh:theme`, `sh:scrollbar`, `sh:motion`, `sh:keys` |
| App data path | `src/data/apps/<slug>.json` (filename = slug) |
| Quarantine path | `data/quarantine/<slug>.json` |
| Public data endpoints | `/api/apps.json`, `/rss.xml`, `/sitemap-index.xml` |
@@ -133,9 +137,10 @@ binary · automatic scraping of vendor metadata (all entries are hand-written)
· mobile-app listings · package-manager command snippets (winget/brew —
post-v1 backlog) · zone security add-ons kept deliberately OFF at launch:
rate limiting, Bot Fight Mode, paid Custom Errors (reasons & activation
recipes in docs/16 §9 — the Worker's own rate-limit binding on
`/api/verify` is not a zone feature) · server-rendered or gated pages of
any kind (D25 allows one verification endpoint, nothing more) · a third
recipes in docs/16 §9 — the Worker's own rate limits, site-wide since
D32, are not a zone feature) · server-rendered or gated pages of any kind
(D25 allows one verification endpoint and D32 one rate limit, nothing
more: a flood gets a 429, a person reading never does) · a third
locale (JP is a v1.2 candidate, docs/15).
## 8. Document map
@@ -159,3 +164,4 @@ See `CLAUDE.md` for the full table. Reading order for a new contributor:
| H10 | Enable *Settings → Actions → General → **Allow GitHub Actions to create and approve pull requests*** — without it the nightly quarantine sweep cannot open its PR and hard rule 5 stops being enforced mechanically (docs/12 §4) — ✅ enabled | P6 |
| H11 | Set the Worker's runtime secret **`TURNSTILE_SECRET`** (dashboard → Variables and Secrets, or `wrangler secret put`) — without it every check answers 503 and the gate silently fails open for everyone (docs/08 Part E) — ✅ set (verified 2026-10-21: a junk token gets `403 rejected`); redo whenever the Worker is re-created | v1.1 |
| H12 | Turn the zone's **Speed Brain** off — Cloudflare refuses speculative prefetch on Worker requests (503); production still sent a `Speculation-Rules` header on 2026-10-21 (docs/16 §9) | v1.1 |
| H13 | **Recommended:** deploy the zone **rate-limiting rule as layer 1** in front of the Worker's limit — one rule, URI Path starts with `/` and not a verified bot, 150 requests per 10 s per IP, Block 10 s (step-by-step and a verification command: docs/16 §9.1). It is the layer that stops a many-connection flood, which the Worker's per-machine counters mostly miss (docs/08 Part F), and it blocks before the Worker is billed; nothing in the repository depends on it | v1.3 |
+21 -4
View File
@@ -25,13 +25,30 @@
> TypeScript 7.0.2 (`tsc`, as `@typescript/native`) beside 6.0.3 (the API, via
> `@typescript/typescript6` 6.0.2) · SonarScanner CLI 8.2 through
> `sonarqube-scan-action` 8.3.
>
> **Upkeep 2026-11-04:** pnpm 11.28.9 · Astro 7.4.5 · Svelte 5.57.3 ·
> `@astrojs/svelte` 9.1.2 · Tailwind 4.3.4 · Vitest 5.1.0 · Wrangler 4.156 ·
> ESLint 10.14 · `typescript-eslint` 8.72.1 · knip 6.44 · `pnpm/action-setup`
> 6.1.1 · `sonarqube-scan-action` 8.4.1 (CLI 8.3.1). `@vite-pwa/astro` stays
> on 1.2.0 — 2.0.0 was tried and refused (docs/09 §7) — and pnpm stays on
> the 11 line although 12 is out: a pnpm major is a decision, not an upkeep
> bump.
>
> **Upkeep 2026-11-09:** pnpm 11.28.11 · Astro 7.4.7 (Rolldown 1.3.0) ·
> Tailwind 4.3.5 · Wrangler 4.158 · Playwright 1.65.0 · knip 6.44.2 ·
> `eslint-plugin-svelte` 3.24.1 · **`@vite-pwa/astro` 2.0.1** (on
> `@unplugin-pwa` 0.0.4 and `@vite-pwa/workbox-*` 8.0.14), which needs
> `rolldown`, `magicast`, `@vite-pwa/workbox-swkit` and
> `@vite-pwa/workbox-window` as direct devDependencies under pnpm (docs/09 §7)
> and drops workbox-build 7 with ~270 transitive packages. Node 26.13.0 is the
> newest 26.x (LTS since 2026-10-28).
## 1. Runtime & toolchain
| Layer | Package | Line (2026-07-15) | Notes |
|---|---|---|---|
| Runtime | Node.js | **26** (26.12 at v1.2; was 24 LTS "Krypton" until 2026-10-23) | LTS from 2026-10-28, maintenance from 2027-10, end of life 2029-04. Taken five days before the LTS label at the owner's request (D7 amended) — Node 24 had entered maintenance on 2026-10-20, and CI, the e2e suite and a Workers Builds preview all passed on 26 first. Pin via `.nvmrc` = `26` and `"engines": { "node": ">=26 <27" }`; CI and Workers Builds read `.nvmrc`, and `@types/node` majors are held to the same line (Dependabot ignore, §5). **Node 25+ ships no Corepack**: a laptop whose `pnpm` came from Corepack needs `npm install -g corepack` (or a standalone pnpm) after upgrading, or `pnpm` and the lefthook hooks stop working. |
| Package manager | pnpm | **11.x** (`11.15.1`, `packageManager`) | `packageManager` field pinned; CI's `pnpm/action-setup` reads it (no `version:`), so CI, Dependabot, Workers Builds and laptops run the same pnpm. **Do not set `ignore-scripts`** — pnpm ≥ 10 already blocks dependency install scripts and wants an `allowBuilds` allowlist in `pnpm-workspace.yaml` instead (docs/09 §7). pnpm 11's default **24 h `minimumReleaseAge`** refuses day-old releases — hence Dependabot's 2-day cooldown (§5). |
| Package manager | pnpm | **11.x** (`11.28.11` since 2026-11-09, `packageManager`; `11.28.9` from 2026-11-04, `11.15.1` before) | `packageManager` field pinned; CI's `pnpm/action-setup` reads it (no `version:`), so CI, Dependabot, Workers Builds and laptops run the same pnpm. **Do not set `ignore-scripts`** — pnpm ≥ 10 already blocks dependency install scripts and wants an `allowBuilds` allowlist in `pnpm-workspace.yaml` instead (docs/09 §7). pnpm 11's default **24 h `minimumReleaseAge`** refuses day-old releases — hence Dependabot's 2-day cooldown (§5). |
| Deploy CLI | Wrangler | **4.x** (4.151 at v1.1) | Workers Builds runs `npx wrangler deploy` (main) and `wrangler versions upload` (PRs); CI runs `wrangler deploy --dry-run` to bundle `worker/` and validate `wrangler.jsonc`. Since D25 there **is** a Worker script (`worker/index.ts`), tested under Vitest in Node — the local `workerd` runtime stays blocked in `allowBuilds` (docs/09 §7). Types for the Worker are written by hand (`worker/env.ts`), not `@cloudflare/workers-types`. |
## 2. Framework & UI
@@ -46,7 +63,7 @@
| Search | `minisearch` | **7.x** | Client-side index; options in docs/05 §A2. Loaded with a dynamic `import()` on first search, so it is not in any page's static bundle. |
| Icons | `unplugin-icons` + `@iconify-json/simple-icons` + `@iconify-json/lucide` | latest | Simple Icons = app logos (SVG, CC0 set — trademark caveat in docs/14 §3d); Lucide = UI icons. In islands: `~icons/lucide/<name>` via `unplugin-icons` (`compiler: 'svelte'`). In `.astro`: `ShIcon.astro` / `src/lib/icon.ts`, which read the same vendored JSON at build time (data-driven names cannot be static imports). Nothing fetched at runtime. |
| Fonts | `@fontsource-variable/bricolage-grotesque`, `@fontsource/be-vietnam-pro`, `@fontsource/ibm-plex-mono` | latest | `latin` + `vietnamese` subsets only (Bricolage's single stylesheet relies on `unicode-range`, docs/06 §3). |
| PWA / offline | `@vite-pwa/astro` | 1.2.x | Installable (manifest linked, PNG icons) with an offline fallback page — not a full precache PWA (docs/08 Part D). Its peer range stops at Astro 5; accepted explicitly in `pnpm-workspace.yaml` because `check:sw` proves the output every build. |
| PWA / offline | `@vite-pwa/astro` | **2.x** (2.0.1 since 2026-11-09; 1.2.0 before) | Installable (manifest linked, PNG icons) with an offline fallback page — not a full precache PWA (docs/08 Part D). 2.x is a rewrite on `@unplugin-pwa` 0.0.x: named export `AstroPWAIntegration`, `generateSW` instead of `workbox`. Under pnpm it needs four direct devDependencies — `rolldown` and `magicast` (or the SW build stops) and `@vite-pwa/workbox-swkit` + `@vite-pwa/workbox-window` (or `sw.js`/`registerSW.js` keep bare ES imports a classic script cannot run, while the build reports success). The SW is emitted unminified so `check:sw` can read it. 2.0.0 was refused on 2026-11-04 for exactly those silent failures (docs/09 §7). |
| Feeds & SEO | `@astrojs/rss`, `@astrojs/sitemap` | latest | `/rss.xml` (new apps) + sitemap with hreflang. |
| Third-party runtime (not packages) | Cloudflare Web Analytics beacon · Cloudflare Turnstile `api.js` | — | Loaded by our own code from their origins — the only third-party requests (hard rule 7, D25/D26, docs/09 §4). |
@@ -57,13 +74,13 @@
| Lint | `eslint` **10.x** flat config + `typescript-eslint` 8.x + `eslint-plugin-astro` 3.x + `eslint-plugin-svelte` 3.x | latest |
| Format | `prettier` 3.x + `prettier-plugin-astro` + `prettier-plugin-svelte` + `prettier-plugin-tailwindcss` | latest |
| Dead code | `knip` | **6.x** |
| Unit / island / script / Worker tests | `vitest` + `@vitest/coverage-v8` + `happy-dom` | **5.x** (5.0.5) — four projects, coverage ratchet (docs/11 §1) |
| Unit / island / script / Worker tests | `vitest` + `@vitest/coverage-v8` + `happy-dom` | **5.x** (5.1.0) — four projects, coverage ratchet (docs/11 §1) |
| End-to-end + a11y | `@playwright/test` + `@axe-core/playwright` | 1.64 / 4.14 — Chromium, desktop + Pixel 7 (docs/11 §5) |
| Icon generation | `sharp` (dev only, `pnpm icons`) | 0.35 — output committed, builds never need it |
| Git hooks | `lefthook` | **2.x** |
| Link checking (CI) | `lychee` via `lycheeverse/lychee-action` | v2 line (v2.9.0) |
| Dep updates | **Dependabot** (`.github/dependabot.yml`) | npm + github-actions, weekly — docs/12 §6 (replaced the never-installed Renovate) |
| CVE / code scanning | `osv-scanner` action + `pnpm audit --prod`; CodeQL (org reusable workflow); SonarQube Cloud **CI-based** analysis with coverage (`ci.yml` `sonar` job, `sonarqube-scan-action` 8.3, CLI 8.2 — docs/12 §2) | latest |
| CVE / code scanning | `osv-scanner` action + `pnpm audit --prod`; CodeQL (org reusable workflow); SonarQube Cloud **CI-based** analysis with coverage (`ci.yml` `sonar` job, `sonarqube-scan-action` 8.4, CLI 8.3 — docs/12 §2); Qodana `qodana-js` 2026.2, Ultimate licence, native mode (`qodana.yml`, D35) | latest |
## 4. Rationale for the contested picks
+60 -39
View File
@@ -4,7 +4,8 @@
Static-first. The repository *is* the database; a deploy *is* a data
migration. Everything a visitor reads is a prebuilt static asset; since
v1.1 one small Worker answers exactly one endpoint (D25).
v1.1 one small Worker answers exactly one endpoint (D25), and since v1.3
it also stands in front of every page as the site-wide rate limit (D32).
```
maintainer PR ──▶ CI (ci.yml build + gates, codeql) ──▶ squash to main
@@ -14,8 +15,11 @@ v1.1 one small Worker answers exactly one endpoint (D25).
│ dist/ + worker/
▼
Cloudflare Workers Static Assets — softharbor.net
pages, assets, feeds ─▶ asset server (unbilled)
POST /api/verify ─────▶ worker/index.ts (D25)
/_astro/*, icons, SW ─▶ asset server (unbilled)
pages, feeds, /api/* ─▶ worker/index.ts: rate limit (D32)
├─ over it → 429
├─ POST /api/verify (D25)
└─ else → asset server
│
▼
Browser
@@ -29,21 +33,25 @@ v1.1 one small Worker answers exactly one endpoint (D25).
Consequences (accepted, documented):
- No SSR, no database, no page ever produced by server code. The only
server code is `worker/`, which answers `POST /api/verify` (the legal
gate's Turnstile check) and runs only for the paths in
`assets.run_worker_first`; every page, asset and feed is served by the
asset server without invoking it (§7, docs/08 Part E).
server code is `worker/`, which runs for the paths in
`assets.run_worker_first` — everything but the files a page loads — and
does two things: the site-wide rate limit (D32) and `POST /api/verify`
(the legal gate's Turnstile check, D25). Every page, asset and feed it
lets through is served by the asset server unchanged (§7, docs/08
Parts E and F).
- "Dynamic" behaviors are relocated: data mutation → Git + GitHub Actions;
personalization → localStorage; search → client-side index; shareable
view state → the URL (docs/05 §A3).
- Logs: Cloudflare's dashboard metrics for the site, plus Workers Logs for
the Worker's own one-line JSON events (outcome and duration — never an IP
or a token; invocation logs off).
- 403/429 can now come from us, but only as JSON answers from
`/api/verify` that the gate consumes and fails open on — never as a page.
Page-level 403/429 still cannot happen: the zone's security features
(rate limiting, Bot Fight Mode) are deliberately OFF (docs/16 §9), so the
templates stay dormant (docs/08 Part C).
the Worker's own one-line JSON events (a verification's outcome and
duration, a rate-limit refusal's kind — never an IP or a token;
invocation logs off).
- 429 comes from us since D32: our own `/errors/429` page for a page
request over the site-wide limit, JSON under `/api/` (docs/08 Part F).
403 still comes only as a JSON answer from `/api/verify`, which the gate
consumes and fails open on. Page-level 403 cannot happen — Bot Fight Mode
and the zone's WAF rules are off (docs/16 §9) — so `/errors/403` and
`/errors/500` stay dormant (docs/08 Part C).
## 2. Project tree
@@ -53,6 +61,7 @@ softharbor/
├── LICENSE # GPL-3.0-only (GitHub picker)
├── LICENSE-DATA.md # CC BY-SA 4.0 for src/data/** (docs/14 §1)
├── SECURITY.md # reporting policy (docs/09 §5)
├── ACCESSIBILITY.md # a11y statement for contributors (D33; twin of /legal/accessibility)
├── CONTRIBUTING.md / CODE_OF_CONDUCT.md
├── CHANGELOG.md # Keep-a-Changelog, features only (docs/13 §1)
├── README.md # overview, commands, contacts
@@ -65,25 +74,30 @@ softharbor/
├── knip.json / lefthook.yml # docs/10 §4
├── .dev.vars.example # Turnstile TEST secret for `wrangler dev`
├── sonar-project.properties # SonarQube Cloud CI analysis (docs/12 §2)
├── qodana.yaml # Qodana scope + gate, native mode (docs/12 §2, D35)
├── .gitattributes / .gitignore
├── .github/
│ ├── CODEOWNERS # * @poli0981 + .github/ scripts/ src/data/ worker/ (T6)
│ ├── dependabot.yml # npm + github-actions, weekly (docs/12 §6)
│ ├── ISSUE_TEMPLATE/ # bug_report.yml · app_request.yml · config.yml
│ ├── PULL_REQUEST_TEMPLATE.md # checks + accessibility + data-PR checklists (docs/12 §7)
│ ├── ISSUE_TEMPLATE/ # bug_report.yml · app_request.yml · listing_change.yml · accessibility.yml · config.yml
│ └── workflows/ # docs/12: ci.yml · codeql.yml · notify.yml
│ # quarantine.yml · link-check.yml
│ # quarantine.yml · link-check.yml · vt-recheck.yml
│ # qodana.yml (D35)
│ # (NO deploy/preview — Cloudflare Workers
│ # Builds owns deployment, docs/12 §3)
├── data/
│ └── quarantine/ # flagged apps parked here (docs/03 §5);
│ # created by `pnpm quarantine` on first use
├── worker/ # the ONE Worker (D25, docs/08 Part E)
│ ├── index.ts # /api/verify → verify.ts, else ASSETS.fetch()
├── worker/ # the ONE Worker (D25, D32 — docs/08 E, F)
│ ├── index.ts # rate limit → /api/verify → else ASSETS.fetch()
│ ├── limit.ts # site-wide rate limit, 429 page / JSON
│ ├── verify.ts # POST /api/verify → Turnstile Siteverify
│ ├── http.ts # JSON responses, body cap, rate-limit key
│ ├── env.ts # bindings, typed by hand
│ └── *.test.ts # Vitest `worker` project (docs/11)
├── e2e/ # Playwright + axe on the build (docs/11 §5)
├── e2e/ # Playwright + axe on the build, and the
│ # Worker under `wrangler dev` (docs/11 §5)
├── scripts/
│ ├── validate-data.mjs # L2 cross-file data rules (docs/03 §2)
│ ├── check-i18n-parity.mjs # EN/VI key parity (docs/07 §3)
@@ -138,7 +152,7 @@ softharbor/
├── components/
│ ├── Sh*.astro # static: ShAppCard, ShHeader, ShFooter,
│ │ # ShIcon (Lucide, build-time), ShJsonLd
│ ├── legal/*.astro # the six documents, EN + VI (docs/14)
│ ├── legal/*.astro # the seven documents, EN + VI (docs/14)
│ ├── pages/*.astro # shared page bodies, one per route shape;
│ │ # src/pages/** are thin locale wrappers
│ │ # so EN and VI cannot drift (docs/07 §2)
@@ -154,9 +168,9 @@ softharbor/
├── categories/index.astro # category index
├── categories/[id].astro
├── legal/{disclaimer,privacy,terms,trademarks,third-party,
│ ai-disclosure}.astro
│ ai-disclosure,accessibility}.astro
├── contact.astro # one address per purpose (D27)
├── errors/{403,429,500}.astro # dormant templates
├── errors/{403,429,500}.astro # 429 live (D32); 403, 500 dormant
├── 404.astro # → dist/404.html
├── offline.astro # SW fallback
├── api/apps.json.ts # static JSON export
@@ -174,15 +188,16 @@ softharbor/
| `/apps/[slug]` | `/vi/apps/[slug]` | `[slug].astro` | One page per app; `getStaticPaths` over the collection |
| `/categories` | `/vi/categories` | `categories/index.astro` | One tile per category |
| `/categories/[id]` | `/vi/categories/[id]` | `[id].astro` | SEO landing per category |
| `/legal/*` | `/vi/legal/*` | `LegalPage` + `components/legal/*` | Six documents; gate-exempt (docs/14 Part 2) |
| `/legal/*` | `/vi/legal/*` | `LegalPage` + `components/legal/*` | Seven documents (the Accessibility Statement since v1.4); gate-exempt (docs/14 Part 2) |
| `/contact` | `/vi/contact` | `contact.astro` | One address per purpose (D27); gate-exempt |
| `/404` | — | `404.astro` | Served via `not_found_handling`; one bilingual page; gate-exempt |
| `/offline` | — | `offline.astro` | SW navigation fallback; one bilingual page; gate-exempt |
| `/errors/{403,429,500}` | — | templates | Dormant — Free zone, nothing issues them (docs/08 Part C) |
| `/errors/429` | — | template | **Live** (D32): the Worker serves it with status 429 to a client over the site-wide limit (docs/08 Part F) |
| `/errors/{403,500}` | — | templates | Dormant — Free zone, nothing issues them (docs/08 Part C) |
| `/api/apps.json` | — | endpoint | Full dataset export (docs/03 §6) |
| `/search-index.json` | — | endpoint | Serialized MiniSearch index, lazy-loaded |
| `/rss.xml` | — | endpoint | Latest additions feed |
| `POST /api/verify` | — | `worker/` | The only route that runs code (D25, docs/09 §4a) |
| `POST /api/verify` | — | `worker/` | The only endpoint answered by code (D25, docs/09 §4a); like every routed request it passes the site-wide limit first (D32) |
Every page route is prebuilt: 701 HTML files in `dist/` as of 2026-10-21
(326 apps × 2 locales plus the rest). Pages without a VI mirror (404,
@@ -197,7 +212,7 @@ import { createHash } from 'node:crypto';
import { defineConfig } from 'astro/config';
import svelte from '@astrojs/svelte';
import sitemap from '@astrojs/sitemap';
import AstroPWA from '@vite-pwa/astro';
import { AstroPWAIntegration } from '@vite-pwa/astro';
import tailwindcss from '@tailwindcss/vite';
import Icons from 'unplugin-icons/vite';
import { VIEW_TRANSITION_OPT_IN } from './src/lib/inlineCss';
@@ -259,7 +274,7 @@ export default defineConfig({
i18n: { defaultLocale: 'en', locales: { en: 'en', vi: 'vi' } },
filter: (page) => !NON_INDEXED.test(page),
}),
AstroPWA(/* docs/08 Part D */),
AstroPWAIntegration(/* docs/08 Part D */),
],
vite: {
// ~icons/<set>/<name> compiles to Svelte components (islands); .astro
@@ -343,9 +358,9 @@ document load with its own CSP and its own island tree.
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "softharbor",
"main": "./worker/index.ts", // D25 — POST /api/verify only
// ≥ 2025-04-01: a NAVIGATION that matches no asset gets dist/404.html from
// the asset server without invoking the Worker (docs/08 Part C).
"main": "./worker/index.ts", // D25 + D32 — rate limit, /api/verify
// ≥ 2025-04-01: on an asset-first path, a NAVIGATION that matches no asset
// gets dist/404.html from the asset server directly (docs/08 Part C).
"compatibility_date": "2026-10-01",
"assets": {
"directory": "./dist",
@@ -355,13 +370,17 @@ document load with its own CSP and its own island tree.
// Measured in S1 on a real deploy: "auto-trailing-slash" 307s /apps to
// /apps/, contradicting every canonical; this makes /apps the 200.
"html_handling": "drop-trailing-slash",
// The only path that runs the Worker before the asset server.
"run_worker_first": ["/api/verify"]
// D32: every request runs the Worker first EXCEPT what a page loads.
"run_worker_first": ["/*", "!/_astro/*", "!/icons/*", "!/favicon.ico",
"!/favicon.svg", "!/apple-touch-icon.png", "!/manifest.webmanifest",
"!/sw.js", "!/registerSW.js", "!/workbox-*.js"]
},
// Workers Rate Limiting for /api/verify: 20 per 60 s per IPv4 address or
// IPv6 /64, per Cloudflare location. namespace_id is account-wide.
// Workers Rate Limiting, per IPv4 address or IPv6 /64, per Cloudflare
// location; namespace_id is account-wide (docs/08 Part F).
"ratelimits": [
{ "name": "VERIFY_LIMITER", "namespace_id": "4101",
{ "name": "SITE_LIMITER", "namespace_id": "4102", // D32
"simple": { "limit": 60, "period": 10 } },
{ "name": "VERIFY_LIMITER", "namespace_id": "4101", // D25
"simple": { "limit": 20, "period": 60 } }
],
// Workers Logs keep the Worker's own JSON lines; invocation logs are off.
@@ -379,10 +398,12 @@ document load with its own CSP and its own island tree.
Rules:
- `main` exists since D25 and serves **only** `/api/verify`. Adding any
path to `run_worker_first` — or letting the Worker serve, gate or rewrite
a page — needs a decision-log entry: every match is a billed invocation,
and hard rule 1 allows one route.
- `main` exists since D25 and does exactly two things (hard rule 1): the
site-wide rate limit (D32) and `/api/verify`. Changing what
`run_worker_first` routes, the limits, or letting the Worker serve,
render or rewrite a page needs a decision-log entry: every routed request
is a billed invocation. Keep the negative patterns covering everything a
page loads, so a page that passed never half-loads.
- Never re-enable `workers_dev` (duplicate-content hazard — docs/16 §1/N3).
- Do not re-add `routes` without re-reading docs/16 §2.2: a deploy
reconciles the Worker's triggers, which is how `www` was lost once.
+1 -1
View File
@@ -61,7 +61,7 @@ implement exactly this contract.
of 2026-10-21; `pnpm build` then checks the output — docs/02 §4):
1. **Pages** — `/apps/<slug>` ×2 locales, category index + category pages,
grid, welcome, contact, the six legal documents (the third-party table
grid, welcome, contact, the seven legal documents (the third-party table
generated from `package.json` at build time, docs/14 §3e), 404/offline
and the dormant error templates.
2. **`/search-index.json`** — serialized MiniSearch index built in
+9 -5
View File
@@ -111,7 +111,7 @@ duplicates, link provenance, invisible characters, quarantine) are L2,
| Value | Meaning | Examples |
|---|---|---|
| `free` | Fully usable forever at $0. Includes freemium products **whose free tier alone is self-sufficient** even if the paid upgrade is a subscription (criterion C3). | VLC, 7-Zip, Bitwarden (free tier) — 330 entries |
| `free` | Fully usable forever at $0. Includes freemium products **whose free tier alone is self-sufficient** even if the paid upgrade is a subscription (criterion C3). | VLC, 7-Zip, Bitwarden (free tier) — 339 entries |
| `free-onetime` | Free tier + optional **single lifetime payment** unlock. | FreeFileSync, eM Client, HWiNFO, Shottr, AltTab — 16 entries |
| `onetime` | Paid once, perpetual license, optional paid major upgrades allowed. | Sublime Text, REAPER, Total Commander, Fork — 18 entries |
| *(excluded)* | Subscription required for core desktop use; time-limited trials; crippled demos. | Adobe CC, MS 365 |
@@ -138,12 +138,16 @@ Ambiguous cases → decision log (docs/15 §4) before merge.
| `system` | System Tools | Công cụ hệ thống | `cpu` |
| `ai-local` | Local AI | AI cục bộ | `brain-circuit` |
| `cad-3d` | CAD & 3D | CAD & 3D | `drafting-compass` |
| `accessibility` | Accessibility | Trợ năng | `accessibility` |
Adding a category = PR editing this file + decision-log line (keeps the
taxonomy from sprawling). `ai-local` and `cad-3d` came with catalogue
batch 2 (D31): models that run on your own machine, and CAD/EDA/3D-printing
tools. The categories page counts them itself (`categories.intro` and
`meta.categories` take `{n}`), so a new row needs no copy change.
tools. `accessibility` came with catalogue batch 3 (D34, v1.4): assistive
technology — screen readers, text-to-speech, eye-tracking input, accessible
readers — and the tools for checking accessibility. The categories page
counts them itself (`categories.intro` and `meta.categories` take `{n}`), so
a new row needs no copy change.
## 5. Example files
@@ -243,8 +247,8 @@ and the renderer draws the initials (D23). VSCodium itself now resolves to
}
```
As of v1.2 no entry uses `local:` (`src/assets/logos/` does not exist yet):
127 entries use `simple-icons:`, 237 `monogram` (364 in all).
As of v1.4 no entry uses `local:` (`src/assets/logos/` does not exist yet):
127 entries use `simple-icons:`, 246 `monogram` (373 in all).
## 6. Quarantine files
+4 -1
View File
@@ -437,6 +437,7 @@ was `public/theme.js` at a fixed path with a revalidating cache.)
const scrollbar = read('sh:scrollbar'); // 'thin'|'hidden'|null
if (scrollbar === 'thin' || scrollbar === 'hidden') root.dataset.scrollbar = scrollbar;
if (read('sh:motion') === 'reduce') root.dataset.motion = 'reduce';
if (read('sh:keys') === 'off') root.dataset.keys = 'off'; // v1.4
// + marks View Transition promises handled on pageswap/pagereveal
})();
```
@@ -451,13 +452,15 @@ Unknown or garbage values mean "the default". With scripting off there is no
identical to the dark theme by test (docs/06 §2).
**The display menu (`ShPrefs`, v1.1)** replaced `ShThemeToggle`: one icon
button opens a popover (`popover="auto"`) with three radio groups.
button opens a popover (`popover="auto"`) with four radio groups (the
fourth since v1.4).
| Choice | Values | Storage | Applied as |
|---|---|---|---|
| Theme | system · light · dark | `sh:theme` (key removed for system) | `html[data-theme]` |
| Scrollbar | default · thin · hidden | `sh:scrollbar` (removed for default) | `html[data-scrollbar]` |
| Motion | system · reduce | `sh:motion` (removed for system) | `html[data-motion]` |
| Keyboard shortcut "/" | on · off | `sh:keys` (removed for on) | `html[data-keys="off"]` — `ShSearch` and `ShPrefs` ignore "/", the header hides its hint, the search placeholder drops "( / )" (WCAG 2.1.4) |
- While the theme is `system` it follows the OS live (`change` on the
media query); an explicit choice stops that.
+57 -17
View File
@@ -105,7 +105,8 @@ menu icon button, docs/05 §A8).
**Footer — five columns** (two on phones): **brand** (mark, tagline, license
line "Code GPL-3.0 · Data CC BY-SA 4.0", build date) · **Browse** (Apps,
Categories, Search) · **Open data** (`/api/apps.json`, `/rss.xml`, the CC
BY-SA 4.0 data licence) · **Legal** (all six documents) · **Project**
BY-SA 4.0 data licence) · **Legal** (all seven documents, the
Accessibility Statement last) · **Project**
(Contact, GitHub ↗, Releases ↗, `ShBugReport` "Report a bug").
## 5. Pages
@@ -119,7 +120,7 @@ search is the island on `/apps`), and two buttons: Browse all apps
(primary) · All categories. Beside it, the **"Manifest" ledger**: figures
counted from the data at build time — apps listed, completely free, buy
once, no known warnings, and per-platform counts — in ruled mono rows.
Then the **12-category grid** (icon tile, label, localized count, stretched
Then the **category grid** — 15 as of v1.4 (icon tile, label, localized count, stretched
link) and **"How this list works"** — three numbered principles (01 official
links only · 02 free or own it once · 03 dated, honest status). The v1.0
"Latest additions" row was dropped in the refresh (every entry still shares
@@ -178,7 +179,7 @@ label, "Developer", now lives in the facts ledger.)
(`LEGAL_UPDATED`, docs/14 Part 2), the fixed VI notice on the VI side, then
the document (`.sh-prose`: numbered clauses keep their numbers, links are
underlined). **No inter-document nav in the page body**: the footer already
lists all six on every page, and repeating them a screen apart is noise.
lists all seven on every page, and repeating them a screen apart is noise.
**Contact `/contact`** — one card per purpose (nine `@poli0981.dev`
addresses from `src/lib/contacts.ts`, ordered by urgency: security first,
@@ -325,18 +326,33 @@ The e2e suite fails any page whose document overflows sideways (docs/11
## 9. Accessibility checklist
**Target: WCAG 2.2 level AA** (D33) — a goal, not a conformance claim; no
independent audit has been done. The public statement is
`/legal/accessibility` (docs/14 §3g), the contributor-facing one
`ACCESSIBILITY.md`; both list the test record and known limitations below.
- Contrast ≥ 4.5:1 text, ≥ 3:1 control boundaries — **enforced** for every
token pair in both themes by `src/styles/contrast.test.ts` (§2; adjust L
values, keep hues), and checked on rendered pages by axe in the e2e suite
(light and dark, serious/critical findings fail — docs/11 §5).
(light and dark; critical, serious and moderate findings fail — docs/11
§5).
- Keyboard: `/` jumps to search from **any** page — on `/apps` `ShSearch`
focuses its box, elsewhere `ShPrefs` navigates to `/apps#search`.
Suppressed inside text fields, with modifier keys, **and while the legal
gate is open** (`body[data-sh-gate="open"]`) — a global shortcut that
reaches through a modal defeats the focus trap and can scroll content the
user hasn't accepted yet. Esc in search clears, then blurs. A skip link
("Skip to content") comes first; `scroll-padding-top` keeps focused or
anchored content out from under the sticky header (WCAG 2.4.11). Tab order
Suppressed inside text fields, with modifier keys, **while the legal gate
is open** (`body[data-sh-gate="open"]`) — a global shortcut that reaches
through a modal defeats the focus trap and can scroll content the user
hasn't accepted yet — **and when the visitor turned it off**: a bare
printable-key shortcut must be possible to switch off (WCAG 2.1.4, level
A), so the display menu has "Keyboard shortcut “/”: On / Off" (`sh:keys`
→ `html[data-keys="off"]`, applied pre-paint by theme.js; the header's
`/` hint and the search placeholder's "( / )" disappear with it, v1.4).
Esc in search clears, then blurs. A skip link ("Skip to content") comes
first; `scroll-padding-top` keeps focused or anchored content out from
under the sticky header (WCAG 2.4.11) — it is `--sh-header-h` + 1 rem,
the header's real height measured by `ShPrefs` (a ResizeObserver),
because the header wraps to two rows on narrow screens and grows with
zoom; `scroll-padding-bottom` clears the fixed language banner while it
shows. Tab order
header → toolbar → cards → footer, and the grid's DOM order always equals
its visual order (docs/05 §A3).
- Overlays use the platform: the filter sheet and the legal gate are native
@@ -344,19 +360,43 @@ The e2e suite fails any page whose document overflows sideways (docs/11
the gate also sets `closedby="none"` and re-opens if Esc or the browser
closes it early (docs/14 Part 2). The gate focuses its heading first, so a
screen reader reads the notice before any control. The display menu is a
`popover`.
- `aria-live="polite"` result count; `aria-current` on the current nav
section (with an underline, not colour alone); icons decorative
`popover`. Closing the sheet or the menu with Esc returns focus to the
button that opened it (the platform's, pinned by e2e). Focus is always
visible: the global 2 px accent ring, and in the display menu's segmented
controls — where arrow keys move focus and choice together, so the
focused radio is the accent-filled one — a ring in the fill's ink colour
(WCAG 2.4.7).
- `aria-live="polite"` result count; the search error lives in a
`role="status"` region that is always in the DOM (only its text changes,
so it is announced — WCAG 4.1.3); the filter button reads "Filters 2
active". `aria-current` on the current nav section (with an underline,
not colour alone); icons decorative
(`aria-hidden`) unless they are a control's only name; status shown by
icon shape *and* colour; links in running text (legal prose, the gate)
are underlined (WCAG 1.4.1).
- **Forced colours** (Windows contrast themes, v1.4): backgrounds and box
shadows are repainted, so the current section gets a text underline, and
the chosen segment in the display menu and the current language keep a
`Highlight` fill (`forced-color-adjust: none`); focus outlines survive on
their own. Pinned by e2e (`emulateMedia({ forcedColors: 'active' })`).
- Targets: buttons 44 px, header controls 38–40 px, and inline category
links on cards at least 24 px tall (WCAG 2.5.8).
- Data tables (third-party notices, AI disclosure) have a visually hidden
`<caption>`, `scope="col"` headers, and sit in a labelled
`role="region" tabindex="0"` wrapper so their sideways scroll is
reachable from the keyboard. The one link that opens a new tab ("Report a
bug") says so to screen readers.
- Visible text stays inside the accessible name (WCAG 2.5.3): the language
switch reads "EN — English" / "VI — Tiếng Việt" (the endonym appended in
a matching `lang`, never replacing "EN"/"VI"), and the filter sheet's
submit button is named by its own "Show N apps" text.
- `lang` attribute correct per locale, including the `lang="vi"` panel on
bilingual error pages and the VI suggestion banner on EN pages.
- Zoom to 200 % without horizontal scroll (the e2e suite fails any sideways
overflow at desktop and Pixel 7 sizes); VoiceOver + NVDA on the grid, the
filter sheet and the gate remain a manual launch-checklist item (docs/13
§2).
- Reflow and zoom to 200 % without horizontal scroll: the e2e suite fails
any sideways overflow at desktop and Pixel 7 sizes, and at **320 CSS px**
(WCAG 1.4.10) — where the header's controls drop to a second row instead
of leaving the screen (`flex-wrap`, v1.4).
- Manual record: keyboard only + Narrator on Windows 11 (Chrome, Brave,
Firefox) by the owner, 2026-11-09 — no barriers found. VoiceOver + NVDA
on the grid, the filter sheet and the gate remain a manual
launch-checklist item (docs/13 §2).
+150 -35
View File
@@ -2,7 +2,8 @@
> This is the operator's guide Kokone asked for. Part A is the click-by-click
> setup; Part C answers "can Cloudflare make our error pages?" definitively;
> Part E is the one Worker the site runs since v1.1 (D25).
> Part E is the one Worker the site runs since v1.1 (D25), and Part F the
> site-wide rate limit it has run since v1.3 (D32).
## Part A — Setup guide (account + zone + first deploy)
@@ -84,7 +85,8 @@ serves (`workers_dev: false`). Full domain checklist: docs/16 §10.
downloaded per build) and `packageManager` (pnpm 11), or production can
differ from what CI validated — re-check after any toolchain bump
(docs/13 §2). Node 25+ ships no Corepack; should a build ever fail to find
pnpm, the Workers Builds variable `PNPM_VERSION=11.15.1` is the fix.
pnpm, the Workers Builds variable `PNPM_VERSION=11.28.11` (the
`packageManager` version) is the fix.
- Rollback: dashboard → the Worker → **Deployments** → promote a previous
version, or `wrangler rollback`.
@@ -96,13 +98,15 @@ serves (`workers_dev: false`). Full domain checklist: docs/16 §10.
§A5–A6).
- **Workers Logs** (`observability.enabled`, invocation logs **off**) hold
only the Worker's own one-line JSON events: `{event: "verify", outcome,
ms}` per request, `verify.secret_refused` when Siteverify rejects our
secret, `verify.crash` on an unexpected exception — never an IP address
or a token (Part E). `wrangler tail` shows the same lines live.
ms}` per verification, `verify.secret_refused` when Siteverify rejects our
secret, `verify.crash` on an unexpected exception, `{event:
"rate_limited", kind}` per refused request — never an IP address or a
token (Parts E and F). A request that passes logs nothing. `wrangler tail` shows the same lines live.
- **Billing:** only requests that run the Worker are billed Worker
requests — `run_worker_first` paths (`/api/verify`) and the rare
non-navigation request that matches no asset (Part C). Pages, assets and
feeds are served by the asset server and are **not billed**.
requests. Since D32 that is every page, feed and data file —
`run_worker_first` is `/*` minus the files a page loads (Part F) — while
`/_astro/*`, icons and the service worker stay on the asset server and
are **not billed**.
- Asset limits to respect (check current values in CF docs at setup time;
documented limits as of writing): max ~20 000 files per deploy, 25 MiB
per file. SoftHarbor's footprint (local build, 2026-10-21): 763 files in
@@ -121,9 +125,11 @@ feature). HSTS **is** configured — zone-level, now at phase P3 (docs/16
§5). Do not "pre-enable" anything beyond that.
Two things that look similar but are not zone features: the Worker's
**Workers Rate Limiting binding** (`VERIFY_LIMITER`, Part E) guards only
`/api/verify`, and **Turnstile** (D25) is a widget our own page loads after
consent — neither touches how pages are served. Conversely, the zone's
**Workers Rate Limiting bindings** — `SITE_LIMITER` for every page, feed
and data request (Part F, D32) and `VERIFY_LIMITER` for `/api/verify`
(Part E) — and **Turnstile** (D25), a widget our own page loads after
consent. The zone's rate-limiting rule stays off; the Worker's limit is
configured in `wrangler.jsonc` and answers with our own 429 page. Conversely, the zone's
**Speed Brain** speculative prefetch should be **off**: Cloudflare refuses
prefetch on Worker requests with a 503, which is why `astro.config.ts` sets
`prefetch: false` (docs/16 §9 — ⚠ verify the zone setting; production still
@@ -135,22 +141,24 @@ Background (re-verified 2026-07-20): Cloudflare **Custom Errors** is a
**paid zone-plan** feature — our zone is Free (docs/16 §1/N4) — and even
where available it does not apply to 500/501/503/505 responses. Therefore
**every error page a user can see must come from our own build output**,
and anything Cloudflare itself emits shows Cloudflare's default page. The
v1.1 Worker (Part E) changes nothing for pages: its error statuses are JSON
answers to the gate's own `fetch`, never a document.
and anything Cloudflare itself emits shows Cloudflare's default page.
`/api/verify` (Part E) answers the gate's own `fetch` in JSON, never with a
document. Since D32 the Worker runs first for pages too (Part F), and its
one page-level answer is our own 429.
| Status | Who generates it | What the user sees | Our artifact |
|---|---|---|---|
| 404 (navigation) | Asset server, URL matches nothing. With `compatibility_date` ≥ 2025-04-01 a navigation miss gets `404.html` **without invoking the Worker** | Our branded, bilingual page, real HTTP 404, no legal gate | `dist/404.html` via `not_found_handling: "404-page"` |
| 404 (other) | A non-navigation miss (an image, a JSON file) reaches the Worker, which returns `env.ASSETS.fetch(request)` — the same `not_found_handling` | Same 404 | same |
| 500-class (pages) | Practically cannot originate from us — no code runs for a page. Cloudflare infra errors (52x) show Cloudflare's page — not customizable on a Free zone | CF default (rare) | `/errors/500` template kept **dormant** |
| 404 | The asset server, URL matches nothing. Since D32 the request reaches it through the Worker's `env.ASSETS.fetch(request)`, which applies the same `not_found_handling`; a miss under an asset-first pattern (`/_astro/*`, icons) gets it directly | Our branded, bilingual page, real HTTP 404, no legal gate | `dist/404.html` via `not_found_handling: "404-page"` |
| 500-class (pages) | Practically cannot originate from us: the Worker in front of pages only counts and hands over, and catches every limiter failure (Part F); an uncaught exception would show Cloudflare's 1101 page. Cloudflare infra errors (52x) show Cloudflare's page — not customizable on a Free zone | CF default (rare) | `/errors/500` template kept **dormant** |
| 403 (pages) | Nothing issues 403 for a page — WAF features deliberately OFF (docs/16 §9). If ever enabled on the Free zone, blocks render **Cloudflare's default page** (custom responses are paid features) | n/a | `/errors/403` dormant template |
| 429 (pages) | Nothing issues 429 for a page — zone rate limiting deliberately OFF (docs/16 §9); same Free-zone caveat as 403 | n/a | `/errors/429` dormant template |
| 4xx/5xx from `/api/verify` | The Worker: `400 invalid_json`/`invalid_token`, `403 bad_origin`/`rejected`, `405`, `413`, `415`, `429 rate_limited` (`Retry-After: 60`), `503 not_configured`/`unavailable`, `500 internal_error` | Nothing — the gate reads the status; 403 asks Turnstile for a fresh challenge, every other failure **fails open** (docs/05 §A9) | JSON body `{ "error": "<code>" }` |
| 429 (pages) | The Worker's site-wide rate limit (Part F, D32): over 60 requests per 10 s from one address. The zone rule stays OFF (docs/16 §9) | Our branded, bilingual page, real HTTP 429, `Retry-After: 10`, no legal gate | `/errors/429` — **live** since D32 |
| 429 (`/api/*`) | The same limit, for the data endpoints and `/api/verify` | JSON `{ "error": "rate_limited" }`, `Retry-After: 10`; CORS-readable on the dataset | — |
| 4xx/5xx from `/api/verify` | The Worker: `400 invalid_json`/`invalid_token`, `403 bad_origin`/`rejected`, `405`, `413`, `415`, `429 rate_limited` (`Retry-After: 60` from its own limit, 10 from the site-wide one), `503 not_configured`/`unavailable`, `500 internal_error` | Nothing — the gate reads the status; 403 asks Turnstile for a fresh challenge, every other failure **fails open** (docs/05 §A9) | JSON body `{ "error": "<code>" }` |
| No internet | Client-side | Our offline page | `offline.html` via service worker (Part D) |
The dormant templates cost three static pages and make a future Pro-zone
Custom Errors switch-on a config-only task (docs/16 §9 recipe). Like
The two dormant templates (403, 500) cost two static pages and make a
future Pro-zone Custom Errors switch-on a config-only task (docs/16 §9
recipe); the 429 one has been live since D32. Like
`/404` and `/offline` they are gate-exempt, `noindex` and bilingual on one
page (docs/06 §5).
@@ -163,13 +171,17 @@ has proper icons, so the site is installable; navigation still always goes
to the network.
```ts
// astro.config.ts — AstroPWA(…) (abridged)
AstroPWA({
// astro.config.ts — AstroPWAIntegration(…) (abridged; @vite-pwa/astro 2,
// which under pnpm needs rolldown, magicast, @vite-pwa/workbox-swkit and
// @vite-pwa/workbox-window as direct devDependencies — docs/09 §7)
AstroPWAIntegration({
registerType: 'autoUpdate',
// MUST be explicit: without it registerSW.js is emitted but referenced by
// no page, and the SW silently never registers (S5). 'script', not
// 'inline': an injected inline snippet would not be in the CSP hashes.
injectRegister: 'script',
minify: false, // check:sw reads the SW by its names
includeManifestIcons: false, // 2.x default; 1.x never precached them
manifest: {
id: '/', name: 'SoftHarbor', short_name: 'SoftHarbor', lang: 'en',
description: 'Free & buy-once desktop software, one page.',
@@ -183,7 +195,7 @@ AstroPWA({
{ src: '/favicon.svg', sizes: 'any', type: 'image/svg+xml', purpose: 'any' },
],
},
workbox: {
generateSW: { // `workbox` in 1.x
// What /offline needs, and nothing more. Coupled to build.format
// ('offline.html', never 'offline/**') and to Astro hashing fonts and
// CSS into _astro/ (never a /fonts/ dir) — both mistakes once matched
@@ -198,6 +210,7 @@ AstroPWA({
],
skipWaiting: true, // registerSW.js never posts SKIP_WAITING
clientsClaim: true, // control the page that installed the SW (S5)
cleanupOutdatedCaches: true, // a 1.x default, opt-in since 2.x
// MUST be the empty string, and must be present. Omitting the key does
// NOT disable it: vite-plugin-pwa's `defaultWorkbox` sets
// navigateFallback: 'index.html', which emitted
@@ -245,23 +258,24 @@ the final pass runs on the real origin), fallback fires in airplane mode,
on the offline page (it is exempt — the page declares `gateExempt`, docs/14
Part 2).
## Part E — The `/api/verify` Worker (D25)
## Part E — The `/api/verify` endpoint (D25)
The one piece of server code (CLAUDE.md hard rule 1 as amended). Threat
model and the client half: docs/09 §4a, docs/05 §A9.
**Files.** `worker/index.ts` (entry: `/api/verify` → `handleVerify`,
anything else → `env.ASSETS.fetch(request)`), `worker/verify.ts` (the
endpoint), `worker/http.ts` (JSON responses, streamed body cap, rate-limit
**Files.** `worker/index.ts` (entry: the site-wide limit first — Part F —
then `/api/verify` → `handleVerify`, anything else →
`env.ASSETS.fetch(request)`), `worker/limit.ts` (Part F), `worker/verify.ts`
(the endpoint), `worker/http.ts` (JSON responses, streamed body cap, rate-limit
key), `worker/env.ts` (bindings, typed by hand — `@cloudflare/workers-types`
would collide with the DOM lib the site compiles against). Tested by the
Vitest `worker` project against a stubbed Siteverify (docs/11 §2); CI also
runs `wrangler deploy --dry-run` so a config error fails before production.
**Routing.** `assets.run_worker_first: ["/api/verify"]` is the only path
that runs the Worker before the asset server. Pages, assets and feeds never
invoke it; a navigation that matches nothing gets `404.html` from the asset
server (Part C).
**Routing.** Until D32 `/api/verify` was the only path that ran the
Worker before the asset server. Now every request except the files a page
loads does (Part F), and each one passes the site-wide limit before it
reaches this endpoint — whose own, stricter limit comes on top.
**Contract — `POST /api/verify`**, body `{"token": "<turnstile token>"}`:
@@ -312,6 +326,106 @@ sitekey itself is public by design and lives in `src/lib/turnstile.ts`.
`verify.crash`. Never an IP address, never a token; invocation logs are off
in `wrangler.jsonc`.
## Part F — The site-wide rate limit (D32)
**What runs it.** `assets.run_worker_first` is `/*` minus the files a page
loads once it has passed: `/_astro/*` (content-hashed JS, CSS and fonts),
`/icons/*`, the two favicons, `apple-touch-icon.png`,
`manifest.webmanifest`, `sw.js`, `registerSW.js` and `workbox-*.js`.
Negative patterns win over `/*` whatever the order. Every other request —
every page in both locales, `/rss.xml`, the sitemaps, `/search-index.json`,
`/api/apps.json`, `/api/verify`, `robots.txt`, `security.txt`, a miss that
ends on the 404 page — runs `worker/index.ts` first, which spends one unit
of `SITE_LIMITER` (`worker/limit.ts`) and, under the limit, hands the
request to `env.ASSETS.fetch()` unchanged.
**The limit.** 60 requests per 10 s per IPv4 address or IPv6 /64 (`rateKey`,
the same key as Part E), per Cloudflare location, namespace `4102`. That is
six a second, sustained: a person reading spends one per page, and what it
stops is a flood or a scraper running flat out. Generous on purpose,
because a school, an office or a mobile carrier's NAT puts many people
behind one address. `/api/verify` keeps its own 20 per 60 s on top
(Part E).
**What it really counts — measured on the PR preview, 2026-10-26.**
Cloudflare calls the binding "permissive, eventually consistent": each
machine counts locally and shares its counts in the background. In
practice that sharing barely shows:
| Burst (one client address) | Result |
|---|---|
| 120 requests over **one keep-alive connection**, ~11 s | 61 × `200`, then 59 × `429` — the limit, almost to the request |
| 1 500 requests, **a new connection each** (30 in parallel), ~20 a second for 79 s | 0 × `429` (1 487 × `200`, 12 local connection errors, one `500` whose cause version URLs cannot log) |
| Production `VERIFY_LIMITER`, 40 `POST /api/verify` in 33 s, a new connection each | 0 × `429` against 20 per 60 s |
So the Worker's limit holds a client that **reuses its connection** —
every browser (one HTTP/2 connection per origin) and most scrapers — and
answers it with our own page. A flood that opens a fresh connection per
request spreads over many machines and mostly slips past it; stopping that
is the job of the zone rule, which counts per IP at the edge before the
Worker runs: **layer 1, recommended** (docs/16 §9.1). Neither layer locks
out a person reading normally.
**Over the limit:**
| Request | Answer |
|---|---|
| `/api/*` | `429 {"error":"rate_limited"}`, `Retry-After: 10`, `no-store`, the Worker's own security headers — plus `Access-Control-Allow-Origin: *` and `Access-Control-Expose-Headers: Retry-After` on everything but `/api/verify`: the dataset is CORS-open, so its refusal must be readable cross-origin, or a consumer sees a network error instead |
| anything else | The built `/errors/429` page (bilingual, gate-exempt, `noindex`) with status **429**, `Retry-After: 10`, `Cache-Control: no-store` and no `ETag`; every other header is the asset server's (`_headers`). `HEAD` gets the headers only. If that page cannot be fetched, a plain-text 429 |
The 429 page's own CSS, JS and fonts are under `/_astro/` and never
limited, so it renders whole. The service worker's navigation route is
NetworkOnly and a 429 is a response, not a failure, so the visitor sees
our page rather than the offline fallback.
**Fails open.** No `SITE_LIMITER` binding, no `CF-Connecting-IP` (no client
to tell apart — one shared bucket would throttle strangers together), or a
limiter that throws: the request is served as if there were no limit.
**`_headers` still apply.** What `env.ASSETS.fetch()` returns carries
`public/_headers` exactly as a direct asset response does — measured under
`wrangler dev` and on the PR preview on 2026-10-26 (frame-ancestors,
`X-Frame-Options`, nosniff, the workers.dev `X-Robots-Tag`, the `/_astro/*`
and `/api/apps.json` `Cache-Control`; and on a refused page the same set
plus `Retry-After: 10` and `no-store`). Moving pages behind the Worker
changed no header.
**Billing.** Every routed request is now a billed Worker invocation. The
account is on Workers Paid: 10 million requests and 30 million
CPU-milliseconds a month included, then $0.30 per million requests and
$0.02 per million CPU-ms; Workers Logs include 20 million events a month
(Cloudflare's pricing page, read 2026-10-26 — Logs move to Observability
pricing on 2026-12-01). A page view costs one invocation and well under a
millisecond of CPU, and the files a page loads stay free ("requests to
static assets are free and unlimited"). A refused request
is billed too — the limit makes a flood cheap to answer, not free. A flood
large enough to matter is the job of Cloudflare's automatic DDoS
protection and of the zone rate-limiting rule (docs/16 §9.1), both of
which act before the Worker runs, so what they block is never billed —
the rule at the price of Cloudflare's default block page.
**Logs.** One line per refusal, `{event: "rate_limited", kind: "page" |
"api"}` — never the address; a request that passes logs nothing. Rate
limiting bindings have no dashboard of their own, so these lines (Workers
Logs, `wrangler tail`) are the only record of how often the limit fires —
read them before tuning it.
**Tests.** Unit: `worker/limit.test.ts` (stubbed limiter and asset server;
`wrangler.jsonc` is read with wrangler's `unstable_readConfig` to hold
`period` equal to `RETRY_AFTER_S` and keep the negative patterns). End to
end: the Playwright project `worker` (`e2e/worker.spec.ts`) starts `wrangler
dev` on `dist/` with the real config — Miniflare simulates the binding in
fixed windows aligned to the clock, without counting refusals — and floods
it: exactly the configured 60 × 200 and then 429s, the 429 page rendered
and styled in Chrome, `/api/*` answering JSON, a page's own files still
200, everyone back in when the window passes. On a deployed version: the
burst check in docs/13 §2.
**Tuning.** Change `limit` in `wrangler.jsonc` with a decision-log line;
`period` must stay equal to `RETRY_AFTER_S` (a test holds them together).
Keep namespace ids unique on the account — bindings that share one share
their counters, across Workers too.
## Appendix — Future custom-domain package (superseded in v1.1)
`softharbor.net` was purchased pre-launch (2026-07-20); the package was
@@ -323,8 +437,9 @@ sit in this appendix, for the record:
into `_headers`, and `preload` is a separate explicit decision (H9).
- `www` → apex uses **zone Redirect Rules** — the static `_redirects` file
cannot match hostnames and stays reserved for path-level slug renames.
- Rate limiting and Bot Fight Mode are **deliberately OFF**, not enabled by
default (reasons + recipes: docs/16 §9); on the Free zone their block
pages would be Cloudflare defaults anyway.
- Rate limiting and Bot Fight Mode are **deliberately OFF** at the zone,
not enabled by default (reasons + recipes: docs/16 §9); on the Free zone
their block pages would be Cloudflare defaults anyway. Since D32 rate
limiting lives in the Worker instead (Part F), with our own 429 page.
- The workers.dev route is **disabled** (`workers_dev: false`) rather than
served-with-noindex — cleaner than the old "decide then" note.
+64 -10
View File
@@ -22,7 +22,7 @@ honest-privacy story.
| T4 | Site integrity | XSS via data fields | All rendering through Astro's default escaping; `set:html` lint-banned (`astro/no-set-html-directive`) except five named files that inline build-time SVG, JSON-LD or one constant (docs/10 §3); JSON-LD escapes `<`; schema constrains URLs to https; CSP §4 as backstop |
| T5 | Visitors | Clickjacking / framing on a look-alike site | `frame-ancestors 'none'` + `X-Frame-Options: DENY` (and on Worker responses, §4a) |
| T6 | Repo | Malicious PR alters workflows/scripts/the Worker | Ruleset on `main`: PR required, **signed commits**, required checks (docs/12 §8); CODEOWNERS on `.github/**`, `scripts/**`, `src/data/**`, `worker/**`; every workflow declares least `permissions:` (the repo default token is read-write); `persist-credentials: false` on checkout; step outputs reach shell only via `env:` (no `${{ }}` in `run:`) |
| T7 | Availability | DDoS | Cloudflare edge absorbs; static assets, nothing to exhaust. The one endpoint is rate-limited per IP or /64 and fails open, so exhausting it locks nobody out (§4a) |
| T7 | Availability | DDoS, floods, runaway scrapers | Cloudflare's edge DDoS protection absorbs volumetric attacks before any code runs. Above that, the Worker's site-wide limit (D32, docs/08 Part F): 60 requests per 10 s per IPv4 or IPv6 /64 for every page, feed and data file, answered with our own 429 page or JSON — measured to hold a client on one connection (every browser, most scrapers) but not a flood opening a new connection per request, which is what the recommended zone rule in front of it is for (docs/16 §9.1). The files a page loads are never limited, so a page that passed loads whole; the limit and `/api/verify` both fail open, so an outage of either locks nobody out (§4a) |
| T8 | Users' privacy | Tracking/leakage | No cookies, no ads, no fingerprinting by us. Two Cloudflare services only, both started by our code: Web Analytics (cookieless; never under Global Privacy Control or off the production host) and Turnstile (only after the documents are accepted). The CSP allows exactly their origins (§4); storage inventory §8 |
| T9 | The domain itself | `softharbor.net` hijack (registrar/DNS) or email spoofing "from" the domain | Registrar transfer lock + auto-renew, DNSSEC enabled, zone changes only via the dashboard (custom domains are attached there, docs/16 §3); SPF + DMARC `p=quarantine` observed 2026-10-21 (→ `reject` planned) — docs/16 §2/§6 |
| T10 | The endpoint | `/api/verify` abused: cross-site POSTs, replayed or foreign tokens, oversized bodies, burning the Siteverify allowance | Same-origin check; `application/json` only; body ≤ 4 KB counted while streaming; token ≤ 2048 chars; Siteverify verdict re-checked for host, `action: legal_gate` and age ≤ 300 s; idempotency key; Workers Rate Limiting 20/60 s per IPv4 or IPv6 /64; `no-store` — all in §4a |
@@ -256,8 +256,10 @@ the gate's step 2 links to it.
(`src/lib/turnstile.test.ts`). The e2e suite stands in for Cloudflare:
`api.js` is served from its real URL (so the page CSP is exercised) and
`/api/verify` — which `astro preview` does not run — answers 200, 503 or is
blocked (docs/11 §5). What only production can show: the Worker, the
secret and `_headers` — verified after each deploy (docs/13 §3).
blocked (docs/11 §5). The Worker itself — routing, both limiters, `_headers` on
what it passes through — runs under `wrangler dev` in the e2e project
`worker` (docs/11 §5). What only production can show: the real edge, the
secret — verified after each deploy (docs/13 §3).
## 5. Vulnerability reporting
@@ -355,12 +357,60 @@ does not read issue labels.
Whether `wrangler dev` (with `.dev.vars`) runs with the script blocked:
⚠ verify. Flipping any entry to `true` requires a decision-log line.
- **`overrides`** in `pnpm-workspace.yaml` force patched floors for
`brace-expansion` and `fast-uri`, each with the advisory ids in a comment;
both reach us only through build tooling (`@vite-pwa/astro` →
`workbox-build`), nothing ships to a visitor. Remove a line once
upstream's own range moves past it. `peerDependencyRules` accepts
`@vite-pwa/astro`'s stale Astro peer range explicitly (it works on
Astro 7; `check:sw` proves it every build).
`minimatch` and `fast-uri`, each with the advisory ids in a comment.
Both reach us only through dev tooling (the eslint toolchain,
`@astrojs/check`'s language server); nothing ships to a visitor.
`minimatch` (GHSA-g3hv-75wg-m249, ≥ 11.0.1, added 2026-11-04) crosses a
major — eslint and typescript-eslint ask for 10 — which is accepted only
because every caller uses API 11 kept and lint covers the same 157 files
with the same rules either side. Every minimatch 11 requires
brace-expansion ≥ 5.0.12, so that floor was retired the same day, as was
`miniflare>undici` once miniflare itself pinned the fixed 7.30.1.
`glob` (GHSA-3g3m-2fjr-6pw4) and `serialize-javascript`
(GHSA-m5mm-p8h7-m29v) were retired on 2026-11-09: both came in through
`@vite-pwa/astro` 1 → `workbox-build` 7, which left the tree with
`@vite-pwa/astro` 2 (nothing depends on glob any more;
`@vite-pwa/workbox-build` 8 asks for serialize-javascript ≥ 7.1.4 itself).
CI's OSV-Scanner step fails `gates` on any of them, so a new transitive
advisory blocks every PR — Dependabot's included — until it is handled
here. Remove a line once upstream's own range moves past it.
- **`packageExtensions`** (since 2026-11-09) give `@astrojs/astro2tsx`
0.1.3 the `@emnapi/runtime` 1.11.3 that matches the `@emnapi/core` it
pins. Rolldown 1.3.0 (Astro 7.4.7) brought `@emnapi/runtime`
2.0.0-beta.2 into the graph, pnpm resolved astro2tsx's peer to it, and
the mismatched pair threw on import — which `astro check` reports as
"`@astrojs/check` is not installed" (Dependabot #67). Remove the entry
once an astro2tsx release declares the runtime itself.
- **`@vite-pwa/astro` 2** (adopted 2026-11-09 at 2.0.1, a rewrite on
`@unplugin-pwa` 0.0.x). 2.0.0 was refused on 2026-11-04: under pnpm's
strict layout it emitted a service worker with bare
`@vite-pwa/workbox-swkit/*` imports and an empty precache, and the build
still reported success. The cause is resolution, not the plugin: the SW
and `registerSW.js` are bundled from the project root, where pnpm does
not hoist the plugin's own dependencies. So four packages are direct
devDependencies — `rolldown`, `magicast`, `@vite-pwa/workbox-swkit`,
`@vite-pwa/workbox-window` (knip ignores the last two: nothing imports
them by name) — and the two workbox packages must resolve to the exact
version `@vite-pwa/workbox-build` pins. `check:sw` now also fails on an
ES `import` in `sw.js` or `registerSW.js` (both run as classic scripts),
on an `importScripts()` target the build did not emit, and on a missing
`cleanupOutdatedCaches()` (a 1.x default, opt-in in 2.x). Verified in a
browser: the SW registers and controls the page, precaches the same 16
entries as 1.2.0, and serves the styled `/offline` page when the server
is gone.
- **Advisories no release fixes yet** cannot get an override, so they are
skipped by id instead — narrowly, in two places that must agree:
`osv-scanner.toml` (`[[IgnoredVulns]]`, each with an `ignoreUntil`
expiry and a reason, so the gate fails again and makes someone look) and
`auditConfig.ignoreGhsas` in `pnpm-workspace.yaml` for
`pnpm audit --prod`. Only for code that merges or reads our own input at
build time and ships nothing to a visitor. Current entry (added
2026-10-30, expires 2027-01-31): `deepmerge` ≤ 4.3.1,
GHSA-gcqx-w48m-w2h4 (low) — 4.3.1 is the latest release; it reaches us
through `@sveltejs/vite-plugin-svelte` (merging `svelte.config.js`); its
second path, `workbox-build` 7 → `@rollup/plugin-node-resolve`, left with
`@vite-pwa/astro` 2 on 2026-11-09. Once a fixed release exists, remove both lines and add an
override floor if upstream's range does not reach it.
- **pnpm 11's default 24 h `minimumReleaseAge`** refuses any release younger
than a day; Dependabot's 2-day cooldown keeps its PRs installable under
`--frozen-lockfile` (docs/12 §6).
@@ -371,7 +421,9 @@ does not read issue labels.
(`ci.yml` `gates` job — docs/01 §5, docs/12 §2). CodeQL runs on PRs,
pushes and weekly; SonarQube Cloud's CI-based analysis (`ci.yml` `sonar`
job, `sonar-project.properties`) covers workflows, scripts and the site
code, with coverage, on every PR and push to `main`.
code, with coverage, on every PR and push to `main`; Qodana (`qodana-js`,
D35) adds WebStorm's inspections over the same scope, its findings in
GitHub code scanning beside CodeQL's.
- All GitHub Actions in this repository's workflows pinned to **commit
SHAs** with a version comment (Dependabot bumps both); the org's own
reusable workflows (`poli0981/.github`) are tracked at `@main` on purpose.
@@ -396,6 +448,7 @@ table true:
| `sh:theme` | `light` \| `dark` (absent = system) | until cleared |
| `sh:scrollbar` | `thin` \| `hidden` (absent = default) | until cleared |
| `sh:motion` | `reduce` (absent = follow the OS) | until cleared |
| `sh:keys` | `off` (absent = the "/" shortcut is on; v1.4, WCAG 2.1.4) | until cleared |
| SW cache | offline page, its CSS, the three head scripts, the latin + Vietnamese body/display fonts, favicon | managed by Workbox |
| Ring buffer | `window.__shErrors`, in memory only (docs/05 §A5) | page lifetime |
| Session fallbacks | `globalThis` flags holding the gate's acceptance / check result when storage throws | page lifetime |
@@ -406,6 +459,7 @@ what — the list the Privacy Policy mirrors (`/legal/privacy`):
| Party | When | What |
|---|---|---|
| Cloudflare (hosting) | every request | connection data such as IP addresses, as infrastructure provider under its own policy; we see aggregate counts only |
| Our Worker's rate limit (D32) | every page, feed and data request | the IP address (IPv6: its /64) as the key of a counter Cloudflare's rate limiter keeps for 10 s; never logged — a refusal logs only its kind (docs/08 Part F) |
| Cloudflare Web Analytics (D26) | page loads on `softharbor.net` only, **never** when `navigator.globalPrivacyControl === true` | page URL, referrer, load timings, user-agent; cookieless; we see totals |
| Cloudflare Turnstile (D25) | once, after the documents are accepted | browser/device signals inside its iframe; the token plus IP go to Siteverify via our Worker (§4a) |
| GitHub | only if the visitor opens "Report a bug" | the prefilled URL carries page URL, user-agent and recent error lines — GitHub receives them **when the link is opened**; nothing is filed until the visitor submits (docs/05 §A6) |
+14 -6
View File
@@ -108,10 +108,11 @@ hand-aligned tables.
## 4. Dead code & hooks
`knip.json`: entries = `src/pages/**/*.{astro,ts}`, `scripts/*.mjs`,
`src/scripts/*.js`; project = `src/**`, `scripts/**`, `e2e/**`,
`worker/**`; the Fontsource packages and `tailwindcss` are ignored as
dependencies (they are imported from CSS, which knip does not read). knip
runs in CI (`build` job); unused files, exports or deps fail it.
`src/scripts/*.js`; project = `src/**` (CSS included, so knip follows
`global.css`'s `@import`s to Fontsource and `tailwindcss` — until
2026-11-04 those were listed under `ignoreDependencies` instead), `scripts/**`,
`e2e/**`, `worker/**`. knip runs in CI (`build` job); unused files, exports
or deps fail it.
`lefthook.yml` (lefthook 2 `jobs:` syntax):
@@ -154,7 +155,9 @@ Conventional Commits, lowercase, imperative: `feat:`, `fix:`, `data:`
(dataset changes — custom type, allowed), `docs:`, `chore:`, `ci:`,
`refactor:`, `test:`. Scope optional (`feat(search): …`); Dependabot uses
`fix(deps)` / `chore(deps)` / `ci`. One logical change per PR; PR
description links the doc section it implements.
description links the doc section it implements and follows
`.github/PULL_REQUEST_TEMPLATE.md` (checks, the accessibility checklist,
data-PR checklist — v1.4).
Commits are **signed** — the `main` ruleset rejects unsigned ones (docs/12
§8). **Squash is the only merge method**: GitHub cannot sign a rebase merge
@@ -205,5 +208,10 @@ same PR — divergence is a defect.
7. Legal text changed materially (Disclaimer, Terms, Privacy) →
`LEGAL_VERSION` bumped with `LEGAL_UPDATED` (docs/14 Part 2); a test
enforces it.
8. After the squash merge: the "Workers Builds" check on the merge commit
8. **Accessibility** (ACCESSIBILITY.md, docs/06 §9): anything a visitor sees
or operates passes axe in the e2e suite (critical/serious/moderate fail),
gets one keyboard-only pass and a screen-reader spot check, and keeps
working at 320 px, at 200 % zoom and in forced colours. A rule that
cannot be met is explained in the PR, never disabled silently.
9. After the squash merge: the "Workers Builds" check on the merge commit
is green and production is verified (docs/13 §3).
+32 -11
View File
@@ -6,7 +6,8 @@
▲ manual: launch checklist (docs/13 §2) — screen readers, visual VI
│ diacritics, real-device offline, production-only checks
│ e2e (Playwright + axe): the BUILT site under `astro preview`,
│ desktop Chrome + Pixel 7 — docs/11 §5
│ desktop Chrome + Pixel 7, and the Worker under
│ `wrangler dev` — docs/11 §5
│ build-as-integration-test: `pnpm build` and its gates —
│ validate:data, i18n:check, check:csp, check:assets,
│ check:sw, check:feed (docs/12 §2)
@@ -65,7 +66,7 @@ excludes only the root `*.config.*` files.
| `licenses.ts` / `logo.ts` / `paths.ts` | generated package table (installed versions, legacy and missing licenses); logo forms incl. monogram, no `style` attribute, escaped initials; category-page order (`byAddedDesc`) |
| `contrast.test.ts` | WCAG ratios for every token pair, both themes; no-JS dark block identical to the dark theme (docs/06 §2) |
| `scripts/*` (scripts project) | `validate-data` (each rule → its error row), `check-csp`, `check-i18n-parity`, `check-service-worker`, `check-feed`, `quarantine` — real script, temp tree, exit code |
| `worker/*` (worker project) | method, origin, media type, size (declared and streamed), token shape, rate limit, Siteverify verdicts (host, action, age, test secrets), retry with the same idempotency key, 503 without a secret, security headers on every response |
| `worker/*` (worker project) | `/api/verify`: method, origin, media type, size (declared and streamed), token shape, rate limit, Siteverify verdicts (host, action, age, test secrets), retry with the same idempotency key, 503 without a secret, security headers on every response. The site-wide limit (`limit.test.ts`, D32): key per IPv4 or /64, the 429 page (status, `Retry-After`, `no-store`, no `ETag`, the asset server's headers kept, `HEAD`), JSON under `/api/` with CORS on the dataset only, plain-text fallback, fail-open (no binding, no address, a throwing limiter), one log line without the address; `wrangler.jsonc` read back to hold `period` = `RETRY_AFTER_S` and the negative patterns |
| islands | one test file per island (`Sh*.test.ts`): gate steps and Esc handling, search races and URL writes, filter sheet counts, language switch carrying the query, display menu storage, bug-report URL |
**Fuzzy vectors — resolved by S2 (2026-07-27), decision D22.** The old
@@ -213,7 +214,8 @@ construction. Exemptions moved from a path regex to a page-declared
`gateExempt`. The browser-only gaps listed above are now covered by
Playwright (`e2e/gate.spec.ts`, §5): real top layer, Esc pressed twice
against Chromium's close-watcher, `closedby="none"`, persistence across a
reload, exempt pages. Screen-reader and visual checks stay manual.
reload, exempt pages. Screen-reader and visual checks stay manual (first
recorded pass: keyboard + Narrator, owner, 2026-11-09 — docs/13 §2).
### S5 — PWA offline on the real origin
- **Goal:** offline fallback works where users are: `softharbor.net`.
@@ -255,6 +257,15 @@ rendering both languages, online navigation still serving real pages.
fonts, `/offline` cache-servable, online navigation still serving real pages,
zero console errors.
**Re-verified after the move to `@vite-pwa/astro` 2.0.1** (2026-11-09, local
`astro preview`, Chromium): SW active **and controlling**, the same 16
precache entries as 1.2.0, zero console errors; with the preview server
stopped, a navigation to `/apps/7-zip` was answered by the styled `/offline`
page (stylesheet and fonts from the precache). The upgrade first produced two
more silent failures of the S5 kind — bare ES imports in `sw.js` and in
`registerSW.js`, which both run as classic scripts — so `check:sw` now fails on
those too (docs/09 §7).
**Still outstanding:** the actual airplane-mode pass on desktop **and Android
Chrome**, which is a device test. The software wiring above is what can be
verified without one.
@@ -284,9 +295,12 @@ references, and page-to-page links are covered by the e2e page set.
`playwright.config.ts`, specs in `e2e/`. Runs against the **built** site
served by `astro preview` on `127.0.0.1:4321` — the per-page meta CSP is
exactly as shipped (`ASTRO_PREVIEW_BACKGROUND=0` keeps the server in the
foreground; Astro ≥ 7.2 backgrounds it under CI). Two projects: `desktop`
(Desktop Chrome) and `mobile` (Pixel 7 — bottom sheets, the wrapped header,
touch targets). CI: one retry, traces kept on failure, report artifact.
foreground; Astro ≥ 7.2 backgrounds it under CI). Three projects:
`desktop` (Desktop Chrome) and `mobile` (Pixel 7 — bottom sheets, the
wrapped header, touch targets) against `astro preview`, and `worker`
(D32), which alone runs `e2e/worker.spec.ts` against a second server:
`wrangler dev` on `127.0.0.1:8799` serving the same `dist/` with the real
`wrangler.jsonc`. CI: one retry, traces kept on failure, report artifact.
**Shared fixture** (`e2e/fixtures.ts`, auto-applied): a test **fails** if
its page logged a console error, threw an uncaught exception, or fired a
@@ -299,14 +313,21 @@ something else; `stubTurnstile()` serves a fake `api.js` **from its real
URL** (so the page CSP is still exercised) and answers `/api/verify` — which
`astro preview` does not run — with 200, 503, or blocks the script;
`waitForIsland()` waits for hydration; `settled()` waits for entrance
animations before axe measures contrast.
animations before axe measures contrast; `axeViolations()` runs axe with the
WCAG 2.0/2.1 A+AA and 2.2 AA tags (optionally on one component) and returns
the critical, serious **and moderate** findings — one line per rule (v1.4,
D33; it was serious/critical only).
| Spec | Covers |
|---|---|
| `smoke.spec.ts` | 15 pages in both locales (home, grid, detail, categories, legal, offline, contact): status < 400, an `h1`, a resolved `data-theme`, **no horizontal overflow**; an unknown URL → real 404 without the gate; **axe** (WCAG 2.0/2.1 A+AA, 2.2 AA tags) on five pages in **light and dark**, serious/critical findings fail |
| `smoke.spec.ts` | 18 pages in both locales (home, grid, detail, categories, legal incl. third-party and accessibility, offline, contact): status < 400, an `h1`, a resolved `data-theme`, **no horizontal overflow**; an unknown URL → real 404 without the gate; **axe** (`axeViolations()`) on 13 pages — every page type in both locales, the tables of third-party notices, contact rows, offline — in **light and dark**, plus the 404 page |
| `a11y.spec.ts` | ACCESSIBILITY.md's automated half: axe on the **open** legal gate, filter sheet and display menu; the first Tab reaches the skip link, which skips the header; Esc returns focus to the filter and display buttons; the focused display choice has a ring that differs from its fill (2.4.7); the "/" switch turns the shortcut, its hint and the placeholder's "( / )" off and stays off on the next document (2.1.4); **reflow at 320 × 640** on 13 pages (desktop project; 1.4.10); **forced colours** keep the current section underlined and the chosen segment/language filled |
| `gate.spec.ts` | blocks a first visit until accepted *and* checked; Esc twice cannot dismiss; **no Cloudflare request before acceptance**; check remembered ~48 h across a reload; blocked script or 503 → visitor let through with the "skipped" note and a 1 h retry; a lapsed check re-runs step 2 only; linked documents and error/offline pages are exempt |
| `worker.spec.ts` (project `worker`) | pages pass through the Worker with `_headers`, the 404 page and the trailing-slash redirect intact; a flood gets **exactly** the configured budget of 200s, then 429s — the branded page with `Retry-After` and `no-store`; while refused, `/api/apps.json` and `/api/verify` answer JSON (the dataset CORS-readable) and a page's CSS, the service worker and the favicon still load; the 429 page renders styled in Chrome with no CSP violation and no gate; everyone is back in when the window passes. Serial, and each test first waits for a fresh window (Miniflare counts in fixed windows aligned to the clock, refusals not counted) |
| `prefs-search.spec.ts` | display choices apply at once and are restored pre-paint on the next document; `/` from any page lands focused in `/apps#search`; Vietnamese search ignores diacritics, writes `?q=` and switches to "Best match"; a shared URL restores the view and "Clear all" really clears it |
**Not covered here, by design:** `_headers` and the Worker — `astro
preview` applies neither. They are verified on the Workers Builds preview
URL and in production after each merge (docs/13 §3).
**Not covered by `astro preview`:** `_headers` and the Worker — which is
why the `worker` project exists. What neither server can show — the real
edge, the production secret, Cloudflare's distributed counters — is
verified on the Workers Builds preview URL and in production after each
merge (docs/13 §3).
+100 -17
View File
@@ -3,11 +3,11 @@
## 1. Overview
```
PR ──▶ ci (build + gates) + codeql ──▶ review ──▶ squash (signed) to main
│
┌─────────────────────────────────┤
▼ ▼
Cloudflare Workers Builds quarantine.yml (paths)
PR ──▶ ci (build + gates) + codeql + qodana ──▶ review ──▶ squash (signed) to main
│
┌──────────────────────────────────────────┤
▼ ▼
Cloudflare Workers Builds quarantine.yml (paths)
(git integration — NOT a workflow)
queued ─▶ build ─▶ deploy ─▶ verify production (docs/13 §3)
cron ─▶ link-check (weekly) · quarantine (nightly) · codeql (weekly)
@@ -90,15 +90,17 @@ deliberately: first-party org workflows (`poli0981/.github`) are tracked at
`@main` so org-wide fixes land everywhere at once, and how *they* pin their
internal actions is the ops repo's call — do not file it as a defect here.
Pinned as of 2026-10-23: `actions/checkout` v7.0.1 · `pnpm/action-setup`
v6.1.0 (no `version:` — it reads `packageManager`) · `actions/setup-node`
Pinned as of 2026-11-04: `actions/checkout` v7.0.1 · `pnpm/action-setup`
v6.1.1 (no `version:` — it reads `packageManager`) · `actions/setup-node`
v7.1.0 (`node-version-file: .nvmrc`) · `actions/cache` v6.1.0 ·
`actions/upload-artifact` v7.0.2 · `google/osv-scanner-action` v2.7.0 ·
`lycheeverse/lychee-action` v2.9.0 · `peter-evans/create-pull-request`
v8.1.1 · `SonarSource/sonarqube-scan-action` v8.3.0 (with
`scannerVersion: 8.2.0.6438`, the newest CLI — Dependabot bumps the action,
v8.1.1 · `SonarSource/sonarqube-scan-action` v8.4.1 (with
`scannerVersion: 8.3.1.16491`, the newest CLI — Dependabot bumps the action,
not that input; the deprecated `sonarcloud-github-action` must not come
back).
back). Added 2026-11-15 (D35): `JetBrains/qodana-action` v2026.2.2 — its
release line selects the linter (`qodana-js` 2026.2) — and
`github/codeql-action/upload-sarif` v4.39.3.
## 2. Callers to `poli0981/.github` reusable workflows
@@ -142,8 +144,9 @@ cancels superseded runs except on `main`. Jobs:
check:csp → check:assets → check:sw → check:feed` → **`wrangler deploy
--dry-run`** (bundles `worker/` and validates `wrangler.jsonc` — bindings,
assets, `run_worker_first` — without credentials) → `pnpm knip` →
**Playwright e2e** on that build (docs/11 §5): the Chromium download is
cached per Playwright version (on a hit only the OS libraries are
**Playwright e2e** on that build (docs/11 §5) — `astro preview` for the
pages, `wrangler dev` for the Worker and its rate limits; the Chromium
download is cached per Playwright version (on a hit only the OS libraries are
installed), and the HTML report is uploaded as an artifact (7 days) when
the job fails.
- **`gates`** (15 min cap) — `validate:data`, `i18n:check`, `osv-scanner`
@@ -207,6 +210,56 @@ workflow never produces on a PR deadlocks the repository — no PR can merge
(hit 2026-07-30). It is also the point of the tool: scanning only after the
merge reports a vulnerability that is already on `main`.
`.github/workflows/qodana.yml` — **self-contained, one job (`qodana`), not a
required check** (D35, 2026-11-15). JetBrains Qodana is the third analyser,
beside CodeQL and SonarQube Cloud: `qodana-js`, WebStorm's inspection engine,
which runs only under a Qodana **Ultimate** (or Ultimate Plus) licence — the
repository secret `QODANA_TOKEN` is the Qodana Cloud project token that
carries it. Scope and gate live in `qodana.yaml`:
- **Native mode** (`withinDocker: 'false'`): the linter runs on the runner,
after setup-node (`.nvmrc`) and `pnpm install --frozen-lockfile`, so it
resolves imports against the real install on Node 26; the image's own
Node would not satisfy `engines`.
- Profile **`qodana.recommended`**, the same scope as
`sonar-project.properties` (the dataset, build/test output and local tool
state excluded). `qodana-js` reads `.ts`/`.js`/`.mjs`, JSON, YAML,
Markdown and CSS; `.astro` and `.svelte` are outside its language list.
**JetBrains' Astro and Svelte plugins were tried and dropped**
(2026-11-15): under Qodana their type checks were not deterministic. On
unchanged code the Svelte plugin reported `Intl.PluralRules#select` and
`Intl.NumberFormat#format` in `ShFilterSheet.svelte` as unresolved (one
run in three), and the Astro plugin read `Base.astro`'s `locale = 'en'`
default as `string` instead of `Locale` — 15 errors in one run, none in
the run before it on the same commit (it also called every component an
`.astro` template uses an unused import). A gate that flips on its own
teaches everyone to ignore it. `astro check` — the TypeScript compiler
itself — type-checks the `.astro` files; ESLint (eslint-plugin-astro,
eslint-plugin-svelte), the Vitest island suites and e2e cover the rest.
- **Gate:** `failureConditions.severityThresholds.any: 0` — any finding
turns the job red. Findings are fixed in the code; a false positive with a
known cause is switched off **in `qodana.yaml`, with its reason** — never
with `noinspection` comments in the source (CONTRIBUTING: no silencing).
- Runs on PRs, pushes to `main` and manual dispatch, `pr-mode: false` — a PR
is analysed whole, because a change can break a file it does not touch.
The action annotates the PR and posts a summary comment (`checks: write`,
`pull-requests: write`) and uploads the report as the `qodana-report`
artifact; the SARIF goes to **GitHub code scanning** (`security-events:
write`) — also when the gate failed, with the PR's head commit as
`ref`/`sha`, since that is what was checked out. Code scanning lists it as
tool **`QDJS`**, category `softharbor/qodana`: Qodana writes its own
automation id into the SARIF, which outranks the upload's `category`
(filter alerts with `tool_name=QDJS`).
- The same `if:` guard as `sonar` — Dependabot, fork PRs and the bot data PRs
have no token. Caches are saved from `main` only
(`cache-default-branch-only`) to spare the 10 GB cache budget.
- Not required, for the reason `sonar` is not: a Qodana Cloud outage or a
lapsed licence must never block a merge. **The licence runs until
2026-12-31** (the scan log prints it): renew it, or every run turns red
from 2027-01-01. Ultimate does **not** include
Qodana's vulnerability checker or licence audit (Ultimate Plus);
`osv-scanner`, `pnpm audit` and Dependabot own the dependencies.
`.github/workflows/notify.yml` (published release → Discord announcement):
```yaml
@@ -499,10 +552,12 @@ policy — a PR opened on release day failed before a single test ran (#14,
Plus `osv-scanner` (`google/osv-scanner-action`, lockfile mode) and
`pnpm audit --prod`, both steps of `ci.yml`'s **`gates` job** (§2), on every
PR and push to `main`; a finding fails the job (policy docs/01 §5).
CodeQL (§2) and SonarQube Cloud's CI-based analysis (`ci.yml` `sonar` job,
CodeQL (§2), SonarQube Cloud's CI-based analysis (`ci.yml` `sonar` job,
`sonar-project.properties` — sources rooted at the repo so `.github/`
workflows are analysed too; the dataset, docs and build output excluded;
coverage imported) complete the scanning.
coverage imported) and Qodana (`qodana.yml` + `qodana.yaml`, D35 —
WebStorm's inspections, its findings in GitHub code scanning beside
CodeQL's) complete the scanning.
## 7. Issue forms
@@ -567,10 +622,35 @@ body:
- { label: 'Actively maintained or stable-and-finished', required: true }
```
`.github/ISSUE_TEMPLATE/accessibility.yml` (v1.4, D33) — label
`accessibility`; only the two first fields are required (what got in the
way, the page address); steps, environment (device, OS, browser, assistive
technology), a severity dropdown matching ACCESSIBILITY.md (Critical /
Serious / Moderate / Minor — confirmed in triage) and a screenshot or
recording are optional. It names the email route,
`accessibility@poli0981.dev`, for anyone without a GitHub account, and
never asks about disability.
`.github/ISSUE_TEMPLATE/listing_change.yml` (v1.4.1, D36) — label
`listing-change`: which app (its page or its name), what should change
(remove: subscription-only now, or abandoned or unsafe; correct a link;
correct a detail; re-check the security status), the evidence (required)
and anything else. It sends a suspected malicious or hijacked download to
private reporting (SECURITY.md) and a developer to takedown@poli0981.dev.
`.github/ISSUE_TEMPLATE/config.yml`: `blank_issues_enabled: false`; contact
links → GitHub Discussions for questions, and **Report a security issue** →
the repository's private vulnerability reporting
(`/security/advisories/new`) — never a public issue.
links → GitHub Discussions for questions, the **maintenance-mode
announcement** (what is accepted, D36), the **Accessibility statement**
(`/legal/accessibility`), and **Report a security issue** → the
repository's private vulnerability reporting (`/security/advisories/new`)
— never a public issue.
`.github/PULL_REQUEST_TEMPLATE.md` (v1.4; v1.4.1 adds the D36 box — a fix,
data or upkeep, not a feature): what and why with the linked
issue, the CI gates, docs and i18n parity, the **accessibility checklist**
(keyboard, names and states, screen-reader spot check, colour/contrast/
forced colours, 320 px and 200 %, motion) and a data-PR block (docs/00 §3,
docs/09 §6, original EN/VI summaries, `unverified` entry, official links).
## 8. Branch protection (ruleset "Run" on `main`)
@@ -588,6 +668,9 @@ protection:
the workflow: naming only the workflow leaves the `gates` job
(validate:data, i18n parity, osv-scanner, audit, link check) unenforced.
A required check must be produced on PRs, or nothing can merge (§2).
- **Not required, deliberately:** `ci / sonar` and `qodana` — a third-party
outage or a lapsed licence must never block a merge (D29, D35); a failing
gate still shows red on the PR.
- Auto-merge is disabled (⚠ verify in Settings if this matters).
**Merge method: squash, and only squash.** GitHub refuses a rebase merge
+28 -1
View File
@@ -8,12 +8,24 @@ content. Git tags mark milestones only: **`v1.0.0`** at public launch
(tagged and released 2026-10-21; `package.json` `version` follows the tag),
**`v1.2.0`** for the upkeep release — re-check automation, Node 26 /
TypeScript 7, CI-based SonarQube Cloud, catalogue batch 2 (2026-10-23),
**`v1.3.0`** for the site-wide rate limit (D32, 2026-10-26),
**`v1.4.0`** for accessibility — the statement, the "/" switch, the WCAG
2.2 fixes and the Accessibility category (D33, D34, 2026-11-09),
**`v1.4.1`** for the start of maintenance mode and Qodana (D36, D35,
2026-11-15),
minor tags when a feature phase ships. Publishing a GitHub Release fires `notify.yml` →
Discord (docs/12 §2). Data changes never tag. `CHANGELOG.md`
(Keep-a-Changelog, dates UTC) records feature work and anything a visitor
should know — v1.1.0 leads with the privacy changes — not app additions:
the RSS feed *is* the data changelog.
**In maintenance mode (D36)** a tag follows a fix, not a feature: a
**patch** (`v1.4.x`) when a fix is worth announcing — a security fix, a
bug or accessibility fix a visitor would notice, an urgent dependency or
runtime update — and a **minor** for a platform major (TypeScript 7
alone, Astro, Wrangler). Routine Dependabot merges and data changes
still never tag.
## 2. Launch checklist (gate for calling it v1.0.0)
> **Status 2026-10-21.** **v1.0.0 shipped on 2026-07-30** (tag + GitHub
@@ -110,11 +122,16 @@ Quality bar
Playwright suite now enforces axe — serious/critical findings in
light and dark — console- and CSP-clean pages and no sideways
overflow on every PR; Lighthouse and the size budget are still not
wired.)*
wired. v1.4: moderate findings fail too, axe also runs on the open
gate, filter sheet and display menu, and reflow at 320 px and forced
colours are tested — `e2e/a11y.spec.ts`.)*
- [x] *(v1.1)* **End-to-end suite enforced in CI** — Playwright + axe on the
built site, desktop + Pixel 7, in `ci.yml`'s `build` job on every PR
and push to `main` (docs/11 §5); a red e2e run blocks the merge like
any other required check.
- [x] *(v1.4)* Keyboard-only + Narrator (Windows 11; Chrome, Brave,
Firefox) pass on the whole site — owner, 2026-11-09, no barriers
found; recorded in ACCESSIBILITY.md and `/legal/accessibility`
- [ ] VoiceOver (macOS) + NVDA (Windows) pass on grid, filter sheet, gate
- [ ] Vietnamese diacritics visually clean in all three fonts at all scale
steps (docs/06 §3)
@@ -143,6 +160,14 @@ may be skipped (docs/12 §3).
→ `403 {"error":"rejected"}` (a `503 not_configured` means the runtime
secret is missing; a bare `405` from the asset server means the Worker
is not deployed);
- the site-wide rate limit (D32, docs/08 Part F) answers a burst over
**one connection** — one `curl` with many URLs reuses its connection;
parallel `curl`s would land on different machines and pass (Part F):
`curl -s $(for i in $(seq 70); do printf -- '-o /dev/null https://softharbor.net/robots.txt '; done) -w "%{http_code}\n" | sort | uniq -c`
→ about 60 × `200`, then `429`s; add `--next -s -D - -o /dev/null
https://softharbor.net/apps` to the same command to see a refused
page: `429`, `Retry-After: 10`, `Cache-Control: no-store` and the
`_headers` set. Ten seconds later everything is `200` again;
- `/rss.xml` serves the expected items (guid = slug, docs/05 §A4).
3. **Never run `wrangler deploy` by hand while builds are queued** — the
queued older build would land after it and roll production back
@@ -219,6 +244,7 @@ shape or the 50-item window's order without meaning to announce.
| Cadence | Task |
|---|---|
| per-PR | vetting checklist on new/changed entries |
| per issue / PR | triage against D36 (maintenance mode): listings, re-checks, bugs, UI/UX and accessibility are in scope; a feature request is closed as *not planned* with `wontfix` |
| **after every merge** | wait for the merge commit's "Workers Builds" check, then verify production (§3) |
| daily (auto) | quarantine sweep (docs/12 §4) |
| weekly (auto) | link-check triage — the one `link-rot` issue is refreshed or closed (docs/12 §5); fix, replace with official mirror, or flag |
@@ -226,6 +252,7 @@ shape or the 50-item window's order without meaning to announce.
| daily (auto, 00:41 UTC) | VirusTotal re-check (docs/12 §4b): checks older than 90 days are re-scanned into the one `vt/recheck` PR — review and merge it; triage any `[vt] <slug>` issue (false positive → back to `clean` with a note; confirmed → `flagged` + `pnpm quarantine`). GitHub disables a public repo's schedules after 60 days without activity — re-enable the workflow if it ever goes quiet |
| monthly (manual, ~10 min) | GSC review: Coverage, Core Web Vitals, hreflang errors; skim DMARC reports (docs/16 §6/§8) |
| **annually (manual, ~2 min)** | **Roll `Expires` in `public/.well-known/security.txt` forward one year** (docs/09 §5). An expired `security.txt` is treated as invalid by scanners and researchers — and nothing else in this repo would notice. |
| **by 2026-12-31** | **Renew the Qodana Ultimate licence** (Qodana Cloud; the scan log prints its end date) — without it every `qodana` run is red from 2027-01-01 (docs/12 §2, D35) |
| once, post-launch | HSTS phase transitions P1 → P2 (+2 weeks) → optional P3/preload (H9) — docs/16 §5. Observed 2026-10-21: already at P3 (`preload` in the header) — docs/15 §5 |
| quarterly | review category taxonomy & criteria rulings; prune tags |
+65 -11
View File
@@ -9,7 +9,8 @@
> and `/vi/legal/*` (VI); English is canonical (docs/07 §8). The shipped
> wording lives in `src/components/legal/*.astro` (Part 3); every document
> carries its **own** "Last updated" date (`LEGAL_UPDATED`) — all six read
> 2026-10-21 as of v1.1.
> 2026-10-21 as of v1.1. v1.4 (D33) adds a seventh page, the
> **Accessibility Statement** (§3g) — informational, not accepted.
## Part 1 — Licensing model
@@ -65,7 +66,7 @@ returning visitor whose check has lapsed sees step 2 only.
|---|---|
| Trigger | Shown when `sh:legal ≠ LEGAL_VERSION` (step 1, docs/05 §A7) **or** `sh:human` has lapsed (step 2 only) |
| Component | `ShLegalGate.svelte`, `client:load`, rendered by `Base.astro` on every non-exempt page — no `transition:persist`: every navigation is a full document load (docs/02 §6), so each page mounts its own gate with its own locale's strings |
| Exempt pages | Declared by the page with `gateExempt` — the island is simply not rendered: the six legal documents (EN + VI), `/contact` (EN + VI), `/404`, `/offline`, `/errors/*`. The gate links to the very documents it asks users to accept; error and offline pages must never dead-lock (Workers serves `404.html`, and the SW the offline page, at whatever URL was requested — the old path regex never matched them); a security or copyright notice must never wait behind acceptance |
| Exempt pages | Declared by the page with `gateExempt` — the island is simply not rendered: the seven legal documents (EN + VI, the Accessibility Statement included — someone held up by a barrier, the gate's own included, must be able to read how to report it), `/contact` (EN + VI), `/404`, `/offline`, `/errors/*`. The gate links to the very documents it asks users to accept; error and offline pages must never dead-lock (Workers serves `404.html`, and the SW the offline page, at whatever URL was requested — the old path regex never matched them); a security or copyright notice must never wait behind acceptance |
| Content, step 1 | Locale-matched summary (below) + links to Disclaimer, Terms and Privacy under the locale's `/legal` base + a single accept button. No decline button: the copy explains that leaving the site is the alternative. A scale icon tile heads the step |
| Content, step 2 | "One moment" — what Turnstile is for, a spinner, and a link to the Privacy Policy's `#turnstile` section; the widget shows itself only if it needs a click (`interaction-only`). If the check cannot run: "The check could not run, so it was skipped. Come on in." for 1.5 s, then the gate closes. A shield icon tile heads the step |
| Step 2 outcome | Pass ⇒ `sh:human` = now + 48 h. Anything else — script blocked, widget error, 10 s timeout (120 s once it asks for a click), Worker 429/503/unreachable, three rejected challenges — ⇒ now + 1 h and the visitor is **let in** (fail open, docs/09 §4a) |
@@ -88,10 +89,10 @@ dictionaries into the island would bundle every key (docs/07 §3).
the three documents the gate asks for. **Bump it when one of those three
changes materially**: the bump re-opens the gate for everyone, which is
the intended behaviour. Typos and formatting do not bump it.
- `LEGAL_UPDATED` gives each of the **six** documents its own "Last
updated" date, shown on its page. Trademarks, Third-party notices and the
AI Disclosure move only their own date — they are informational and not
part of what is accepted.
- `LEGAL_UPDATED` gives each of the **seven** documents its own "Last
updated" date, shown on its page. Trademarks, Third-party notices, the
AI Disclosure and the Accessibility Statement move only their own date —
they are informational and not part of what is accepted.
- **A test enforces the link** (`src/lib/legal.test.ts`): every accepted
document's `LEGAL_UPDATED` must be ≤ `LEGAL_VERSION` — editing Privacy
without bumping the version fails `pnpm test`. Every date must be a real
@@ -103,7 +104,14 @@ dictionaries into the island would bundle every key (docs/07 §3).
Disclosure) · **2026-10-21** (v1.1: Privacy covers Web Analytics and the
Turnstile check and names the operator; Terms gained the operator and a
copyright-complaint procedure; nine EN/VI wording gaps and two false AI
Disclosure claims fixed).
Disclosure claims fixed) · **2026-10-26** (v1.3: Privacy gains
`#rate-limit` for the site-wide rate limit, D32 — our own code now
processes every visitor's address, if only for seconds, which the gate
asks everyone to accept once more) · **2026-11-09** (v1.4, D33: Privacy
`#storage` lists `sh:keys`, the display menu's switch for the "/"
shortcut — the storage inventory must stay complete, and the test treats
any Privacy change as one the gate asks about; the owner chose this over
dropping the switch).
### Contacts (D27)
@@ -117,6 +125,7 @@ another. Mail to `poli0981.dev` is delivered to a **Google-hosted** mailbox
|---|---|---|
| `security` | `security@poli0981.dev` | vulnerabilities; hijacked or malicious listing links (`security.txt`, `SECURITY.md`, Disclaimer) |
| `privacy` | `privacy@poli0981.dev` | the Privacy Policy, data requests |
| `accessibility` | `accessibility@poli0981.dev` | a barrier on the site — the Accessibility Statement and ACCESSIBILITY.md (D33, alias created 2026-11-09) |
| `legal` | `legal@poli0981.dev` | Terms, Disclaimer, anything else legal |
| `dmca` | `dmca@poli0981.dev` | copyright (DMCA-style) notices — the procedure in Terms `#copyright` |
| `takedown` | `takedown@poli0981.dev` | a developer asking for their listing or logo to be changed or removed; trademark complaints |
@@ -211,7 +220,8 @@ analytics") stopped being true with D25/D26 and is not reproduced here
(SkullMute), in Vietnam, who decides how the little data described is
handled; questions to `privacy@poli0981.dev`.
- **`#storage`** — localStorage `sh:legal`, `sh:human`, `sh:lang`,
`sh:theme`, `sh:scrollbar`, `sh:motion`, never sent anywhere; a service
`sh:theme`, `sh:scrollbar`, `sh:motion`, `sh:keys` (v1.4), never sent
anywhere; a service
worker stores the offline page, styles and fonts; no cookies (docs/09 §8).
- **`#analytics`** — Cloudflare Web Analytics: no cookies, nothing stored
in the browser; reports page address, referrer, load timings and
@@ -225,6 +235,13 @@ analytics") stopped being true with D25/D26 and is not reproduced here
success and duration. A pass is remembered 48 h (`sh:human`); if the
check cannot run the visitor is let in and it is retried after an hour.
Basis: legitimate interest.
- **`#rate-limit`** *(2026-10-26, D32)* — the site's own code counts
requests for pages, feeds and data per IP (per /64 for IPv6) over a few
seconds; a network far above any reader's pace gets a "Too many
requests" page until the window passes; counts live only in
Cloudflare's rate limiter for that window; no address is recorded — a
refusal is logged without it. Basis: legitimate interest. Also one
sentence in the short version.
- **`#hosting`** — Cloudflare serves the site and the endpoint and
processes connection data under its own policy; we see aggregate counts.
- **`#email`** — `@poli0981.dev` mail is delivered to a Google-hosted
@@ -348,8 +365,9 @@ can only carry CC BY-SA 4.0 because the summaries are the project's own words
Must name **each model whose work lands, its version identifier, and its
developer** — currently Claude models by Anthropic, used through Claude
Code: **Claude Opus 5** (`claude-opus-5`) for the site and catalogue
through v1.0, and **Claude Opus 5.5** (`claude-opus-5-5`) for the v1.1 and
v1.2 work of October 2026; no other AI system contributed. Every claim on the page
through v1.0, and **Claude Opus 5.5** (`claude-opus-5-5`) for the v1.1–v1.3
work of October 2026 and the v1.4 work of November 2026; no other AI system
contributed. Every claim on the page
must stay literally true — update it when a process changes (two false
claims were corrected on 2026-10-21).
@@ -368,6 +386,42 @@ nor an excuse, and a mistake here belongs to the maintainer, not a tool.
Disclaimer, Terms and Privacy only; this page is informational and is reached
from the footer. It is still gate-exempt like every other `/legal/*` route.
### 3g. Accessibility Statement — `/legal/accessibility`
Added 2026-11-09 (D33, v1.4). The visitor-facing twin of `ACCESSIBILITY.md`
at the repository root (GitHub's community-profile "Accessibility" file):
the two must state the same target, test record, limitations and response
times — change one, change the other in the same PR. Plain language, user
experiences rather than criterion numbers; English canonical, Vietnamese a
full translation. Informational, **not accepted**, gate-exempt, linked from
the footer's legal column and from the Contact page's accessibility row.
Sections (anchors stable — the issue form and ACCESSIBILITY.md link them):
- **intro** — who the site should work for (keyboard only, screen reader,
magnification, voice control, high-contrast themes).
- **`#target`** — WCAG 2.2 AA as a *target*, explicitly not a conformance
claim; no independent audit has been done.
- **`#features`** — keyboard and skip link, semantic structure and `lang`,
tested contrast (7:1 / 4.5:1 / 3:1), nothing by colour alone, the display
menu (theme, motion, scrollbar, the "/" switch), system reduced motion
and forced colours, 200 % zoom and reflow, announced result counts, no
images of text.
- **`#tested`** — automated on every change (axe WCAG 2.0–2.2 A/AA, both
themes, desktop and phone, keyboard/reflow/forced-colour/contrast tests);
by hand 2026-11-09 (keyboard only + Narrator, Windows 11, Chrome, Brave,
Firefox); not yet: NVDA, JAWS, VoiceOver, TalkBack, Safari.
- **`#limitations`** — Turnstile (third party; fails open after 10 s, or
120 s once it asks for a click), vendor sites, two-line card summaries,
VI legal pages being translations.
- **`#report`** — `accessibility@poli0981.dev` (no account needed) or the
Accessibility issue form; what helps; screenshots optional; never asks
about disability; English or Vietnamese.
- **`#response`** — one maintainer, so modest promises: reply within
7 days; Critical 30 days, Serious 60, Moderate/Minor 90; a slip gets a
reason, a workaround and a new date.
- **`#contributors`** — points to ACCESSIBILITY.md.
## Part 4 — Review checklist for Kokone (H6)
H6 approved the drafts on 2026-07-28. The 2026-10-21 rewrite (Privacy,
@@ -389,7 +443,7 @@ Terms, contacts, AI Disclosure) re-opens these items — sign-off on it:
legalese beyond necessity.
- [ ] Confirm comfort with C3 free-tier ruling as written in Disclaimer
context (pricing can change → covered by 3a(3)).
- [ ] `LEGAL_VERSION` follows the Part 2 policy (2026-10-21 as of v1.1); a
- [ ] `LEGAL_VERSION` follows the Part 2 policy (2026-10-26 as of v1.3); a
later material change to Disclaimer, Terms or Privacy bumps it, and
`legal.test.ts` fails if one is dated after it.
- [ ] Optional (recommended eventually): a qualified local review of Terms
+50 -5
View File
@@ -18,7 +18,19 @@ Total ≈ 17–20 focused days, **plus ~1 day for the `softharbor.net` domain
package** (docs/16 §10) slotted between M5 and M6. Data entry (M6)
parallelizes with earlier milestones once M2 lands.
**Where it stands (2026-10-23).** v1.2.0, released 2026-10-23: **364 apps in
**Where it stands (2026-11-15).** **Maintenance mode** since v1.4.1,
released 2026-11-15 (D36): the catalogue, fixes and platform upkeep
continue; new features do not, and §2's feature items are frozen. **373
apps in 15 categories**, 364 `clean` and 9 `unverified`; Qodana joined
CodeQL and SonarQube Cloud (D35).
*Where it stood (2026-11-09), for the record:* v1.4.0, released 2026-11-09 — the
accessibility release (D33, D34): **373 apps in 15 categories**, 364 `clean`
and 9 `unverified`, an Accessibility Statement and `ACCESSIBILITY.md`, and
WCAG 2.2 AA as the target. v1.3.0 (2026-10-26) added the site-wide rate
limit (D32).
*Where it stood (2026-10-23), for the record:* v1.2.0, released 2026-10-23: **364 apps in
14 categories**, 341 `clean` and 23 `unverified` — each with its VirusTotal
scan linked and re-scanned at least every 90 days by `vt-recheck.yml`
(D30; nine popular apps went `unverified` on a single engine's warning in
@@ -45,6 +57,16 @@ data was seeded and vetted.
## 2. Post-v1 backlog (ordered by current intent)
**Frozen by D36 (2026-11-15) — maintenance mode.** The feature items —
3–7, 12–15 and the feature half of 16 (OpenSearch, a versioned `/api/v1`)
— are not started while D36 stands, and issues or PRs that propose them
are closed as *not planned*. Maintenance stays open: 8 (Lighthouse CI and
a size budget — gates, not features), 11 (data hygiene, fixed in the
data), the TypeScript 7 half of 16, the rest of 17 (a recorded NVDA and
VoiceOver pass, and fixing what it finds), and 1 and 9 on evidence only —
an attack, or `/apps` past its budget. Lifting D36 is the owner's call and
its own decision-log entry; the order below is kept for the record.
**Next up after v1.1 (agreed 2026-10-21), in this order:** item 2 first —
it has a deadline — then 10 → 11 → 12 (with 3) → 13 → 14 → 15 → 16. The
rest wait for evidence. Item numbers are stable because other docs cite
@@ -52,7 +74,9 @@ them (item 9 especially), so new work is appended, never renumbered.
1. **Zone upgrades on evidence, not by default** — revisit the
deliberately-OFF trio (rate limiting, Bot Fight Mode, Pro-zone Custom
Errors) only if abuse or 403/429 UX ever becomes real (docs/16 §9);
Errors) only if abuse or 403/429 UX ever becomes real (docs/16 §9) —
*rate limiting done another way on 2026-10-26: in the Worker, with our
own 429 page (D32); the zone rule is now an optional edge layer, §9.1*;
plus a `SearchAction` JSON-LD node (docs/16 §7) — its prerequisite, the
`/apps?q=` deep link, **shipped in v1.1** (`src/lib/urlstate.ts`).
2. ~~**VirusTotal automation — deadline 2027-01-26.**~~ **Done 2026-10-23
@@ -132,6 +156,14 @@ them (item 9 especially), so new work is appended, never renumbered.
that `astro check` still needs (D28; a TS 7-only setup waits on Astro
#18471 and typescript-eslint #10940); still open: an OpenSearch
description, a versioned `/api/v1` with a published JSON Schema.
17. **Accessibility** — **first pass done 2026-11-09 (D33, v1.4)**:
`ACCESSIBILITY.md` + `/legal/accessibility`, the WCAG 2.2 AA target,
the "/" switch (2.1.4), focus, forced-colour, reflow, target-size and
status-message fixes, axe on every page type and the open dialogs with
moderate findings failing, and an Accessibility issue form + PR
template. Still open: a recorded NVDA and VoiceOver pass (docs/13 §2),
Lighthouse CI (item 8), and — only if reports ask for it — text-size
and spacing choices in the display menu.
## 3. Explicitly rejected (for the record)
@@ -284,6 +316,15 @@ rule 8) · ads/affiliate links (conflicts with the trust proposition).
| 2026-10-23 | **D30 — VirusTotal re-check, assisted not decided** (docs/09 §6 step 5; docs/12 §4b). `scripts/vt-recheck.mjs` + `vt-recheck.yml`: daily on `main`, checks older than 90 days are re-scanned (download page, VT API v3, 4/min, ≤ 440 of 500 requests a day) and only the three `security` lines change; `checkedAt` now means "latest scan" (docs/04, docs/09 §6). The bot never flags and never promotes on its own: a detection turns `clean` into `unverified` plus a `[vt] <slug>` issue, and `unverified` → `clean` happens only for slugs the maintainer passes as `promote`. Dispatched on a data branch it previews a PR's new entries as an artifact. Terms fit: the Public API is offered to sites free to consumers; SoftHarbor is free and ad-free and submits only public URLs. The site's own copy moved with it — the "no known warnings" note and the AI Disclosure now describe the re-scan (`LEGAL_UPDATED.aiDisclosure` 2026-10-23; `LEGAL_VERSION` unchanged) | ✅ (owner, 2026-10-23) |
| 2026-10-23 | **D31 — Catalogue batch 2: 38 apps, two categories** (§2 item 10). Exempt from docs/03 §1's one-app-per-PR rule like D24 (38 researched entries, one PR). Categories `ai-local` and `cad-3d` (owner). **Not added:** Docker Desktop and Parsec — both free only under licence terms (Docker: not for larger companies; Parsec: personal, non-commercial use only), a C3 case the owner rules out; GPT4All and Ice — C5, unmaintained with open problems; QuickHash GUI — C4/C5, its only download site unreachable and no release since 2023. **C3 rulings:** LM Studio, Insomnia and RustDesk are `free` — the free tier serves the core purpose without a time limit and their subscriptions are optional add-ons (LM Studio's only for the separate Bionic agent's cloud models). **Store-only delivery meets C4** when the official download page on the developer's own domain hands off to the store (Lossless Scaling → Steam/Humble). **Licences as the sources grant them:** ShareX `GPL-2.0-or-later` (headers), KDE Connect `GPL-2.0-only OR GPL-3.0-only`, EarTrumpet `LicenseRef-EarTrumpet` (MIT plus an exclusion of three named companies), DuckStation `CC-BY-NC-ND-4.0` (source-available). Each entry was researched with AI assistance against docs/09 §6 steps 1–4 and scanned by the `vt-recheck` preview before merge (36 of 38 download pages with no detections); the owner reviewed the Vietnamese and promoted 30 to `clean`. Held `unverified`: Flameshot (unpatched advisory in its stable release), Bulk Crap Uninstaller (unsigned builds, antivirus history), OpenSCAD (2021 stable predates two CVE fixes), LM Studio (closed source, antivirus history), RustDesk (CVE backlog), AutoHotkey and LocalSend (one VirusTotal detection each), Lossless Scaling | ✅ (owner, 2026-10-23) |
| 2026-10-26 | **D32 — site-wide rate limit in the Worker** (amends hard rule 1 and D25; owner request, 2026-10-26). `run_worker_first` becomes `/*` minus the files a page loads — `/_astro/*`, `/icons/*`, the favicons, `apple-touch-icon.png`, the manifest, `sw.js`, `registerSW.js`, `workbox-*.js` — so every page, feed and data request runs `worker/limit.ts` first: `SITE_LIMITER` (namespace 4102), **60 per 10 s per IPv4 address or IPv6 /64**, per location. Over it: the built `/errors/429` page with status 429 (no longer dormant), `Retry-After: 10`, `no-store`; JSON under `/api/` (CORS-readable on the dataset). Fails **open** (no binding, no address, a throwing limiter); logs `{event: "rate_limited", kind}` without the address. `_headers` still apply to `env.ASSETS.fetch()` responses (measured). **Trade-offs accepted:** every routed request is a billed invocation (Workers Paid includes 10 M/month; refusals are billed too, so the limit makes floods cheap, not free); our code now processes every visitor's IP for seconds → Privacy `#rate-limit` and `LEGAL_VERSION` 2026-10-26. **Why not the zone rule alone:** on the Free zone it can only serve Cloudflare's default 429 page and cannot live in the repository; it is kept as an optional edge layer at 150 per 10 s (docs/16 §9.1). Tested end to end under `wrangler dev` by the new e2e project `worker` (docs/11 §5). **Measured on the PR preview:** over one keep-alive connection the limit holds almost exactly (61 × 200, then 429s), but a flood opening a new connection per request got no 429 at all (1 500 requests at ~20/s) — the binding counts per machine — and the production `VERIFY_LIMITER` likewise never refused 40 fresh-connection POSTs in 33 s. So the zone rule (docs/16 §9.1, H13) is the recommended first layer for floods, and the Worker's limit the polite one for browsers and keep-alive scrapers | ✅ (user, 2026-10-26) |
| 2026-10-26 | **Suite v3.0** (site v1.3) — a MAJOR bump by §6's rule, because D32 amends hard rule 1 | ✅ |
| 2026-11-09 | **D33 — Accessibility statement and target** (§2 item 17; owner request, 2026-11-09, after GitHub's community profile listed "Accessibility" as missing). **Target WCAG 2.2 AA**, stated as a goal and never as conformance (no audit). `ACCESSIBILITY.md` at the root (contributor-facing, GitHub's community file) and its visitor-facing twin `/legal/accessibility` + `/vi/legal/accessibility` — a seventh legal page, informational, gate-exempt, footer + Contact row; the two must say the same thing (docs/14 §3g). New contact **`accessibility@poli0981.dev`** (alias created by the owner the same day; `contacts.ts`). New localStorage key **`sh:keys`** — the display menu's switch for the "/" shortcut, because a bare printable-key shortcut must be possible to turn off (WCAG 2.1.4, level A); Privacy lists it, so **`LEGAL_VERSION` → 2026-11-09** and the gate asks everyone once more (owner's choice over dropping the switch). Fixes found by an audit despite the owner's clean keyboard + Narrator pass: an invisible focus ring on the checked display choice (2.4.7), the header pushing the display button off a 320 px screen (1.4.10 — it now wraps, and `scroll-padding-top` follows its measured height, 2.4.11), forced-colour states, 24 px category links (2.5.8), a status region that exists before its message (4.1.3), table captions/scopes/scrollable regions, the new-tab warning. axe now fails on moderate findings too and also runs on the open gate, filter sheet and display menu; `e2e/a11y.spec.ts` adds keyboard, 320 px reflow and forced-colour checks. `.github/PULL_REQUEST_TEMPLATE.md` (accessibility checklist) and `ISSUE_TEMPLATE/accessibility.yml` (label `accessibility`) | ✅ (user, 2026-11-09) |
| 2026-11-09 | **D34 — Catalogue batch 3: the `accessibility` category, 9 entries, a triage of every `unverified` entry** (§2 item 17; owner request). Exempt from docs/03 §1's one-app-per-PR rule like D24/D31. Category **`accessibility`** (Accessibility / Trợ năng, lucide `accessibility`, order 15): NVDA, Optikey, Balabolka, Thorium Reader, Colour Contrast Analyser (homepage on vispero.com — tpgi.com now redirects there), Accessibility Insights for Windows, Bookworm, eSpeak NG. **#65 Orkas** accepted as `free` under C3 (MIT; fully usable with the user's own model keys or a local OpenAI-compatible endpoint, no time limit; the packaged app needs an Orkas sign-in and its monthly plans only add hosted-model credits and sync) in `productivity` + `ai-local`. **#11 Codex Quota Overlay declined**: free itself, but its only function is tracking a paid Codex/ChatGPT plan's limits — the no-subscription rule in spirit — and a narrow one-platform companion tool (closed as not planned). **Not added:** Talon Voice (the official site states no price; beta via Patreon), Speech Note (Flathub-only distribution, no precedent), LiveCaptions (last release 2024-06), Orca (gitlab.gnome.org answers the link checker 406), Narrator (part of Windows). VirusTotal preview: all 9 new entries 0 detections → **all 9 `clean`** (owner). Re-scan of all 29 `unverified` entries: 17 at 0 detections, of which the 8 with `[vt]` issues go `clean` (#34, #37, #40, #41, #55, #57, #58, #61 closed); the 8 D31 holds and synfig-studio (unverified since the seed) stay. The 12 still flagged by one or two URL-reputation engines — Chong Lua Dao (7-Zip, DBeaver, itch, Process Lasso, REAPER, Session), Webroot (Proton VPN, Tor Browser, Windscribe), Xcitium Verdict Cloud (KeePassXC, Session), Gridinsoft (DevToys, suspicious), Criminal IP (PeaZip) — are ruled **false positives by the owner and go `clean`** with the reason on each issue (#33, #35, #36, #38, #39, #51–#54, #56, #59, #60 closed); the linked scan still shows the engine, and the next re-check (≥ 90 days) re-opens an issue if it persists. **#47:** Wire's homepage `wire.com/` answers lychee 404 → `/en/` and download `/en/app-download` (both 200; the free personal plan still exists); Linphone's repo → its official GitHub mirror. Result: **373 apps, 15 categories, 364 `clean`, 9 `unverified`** | ✅ (user, 2026-11-09) |
| 2026-11-09 | **v1.4.0 tagged and released** — the accessibility release (D33, D34). **Suite v3.1** (site v1.4) — a MINOR bump by §6's rule: no hard rule changes | ✅ |
| 2026-11-15 | **D35 — Qodana as a third analyser** beside CodeQL and SonarQube Cloud (owner request, 2026-11-15; Qodana Cloud project `softharbor`, **Ultimate** licence, active until 2026-12-31). `.github/workflows/qodana.yml` runs `qodana-js` 2026.2 (WebStorm's engine) in **native mode** on the runner's Node 26 and `pnpm install`, profile `qodana.recommended`, the scope of `sonar-project.properties`, over `.ts`/`.js`/`.mjs`, JSON, YAML, Markdown and CSS — **no plugins**: JetBrains' Astro and Svelte plugins were tried and dropped because their type checks were not deterministic under Qodana (on unchanged code, `Intl` methods in `ShFilterSheet.svelte` unresolved in one run of three; `Base.astro`'s `locale = 'en'` read as `string` — 15 errors in one run, none in the one before; plus 75 unused-import false positives for components used in `.astro` templates), and a gate that flips on its own is worse than none — `astro check` type-checks `.astro` with the real compiler; `failureConditions.severityThresholds.any: 0`; the report as an artifact and the SARIF in GitHub code scanning (tool `QDJS`). **Not a required check**, for D29's reason. **First run: 14 findings, all resolved** — 10 `throw`s caught by their own `try` (`worker/verify.ts` now refuses through one return path, `scripts/vt-recheck.mjs` records failures directly; responses, logs and reasons unchanged), 2 redundant `\}` regex escapes, 1 trivial `if` (`src/lib/filter.ts`), and the twin dark palette in `global.css` (DuplicatedCode — required by design, switched off for that file with the reason). Not in Ultimate: Qodana's vulnerability checker and licence audit (Ultimate Plus) — OSV, `pnpm audit` and Dependabot own the dependencies (docs/12 §2) | ✅ owner |
| 2026-11-15 | **D36 — Maintenance mode** (owner decision, 2026-11-15). The project is maintained, not extended. **In scope:** catalogue work (add, correct, remove; VirusTotal re-checks; quarantine); bugs, UI/UX and accessibility fixes; dependency upkeep on Dependabot's weekly schedule, and out of schedule for a High or Critical advisory or a serious Node.js security release; major language and platform moves (TypeScript 6 → 7, Astro, Cloudflare Workers / Wrangler); incidents — the site down, degraded or attacked. **Out of scope:** new features — §2's feature items are frozen, and issues or PRs that propose one are closed as *not planned* (`wontfix`). Releases: a patch tag when a fix is worth announcing, a minor one for a platform major; data never tags (docs/13 §1). Announced in Discussions (https://github.com/poli0981/softharbor/discussions/75); recorded in CLAUDE.md, CONTRIBUTING.md, the README (status badge and section), SECURITY.md, the PR template and a new **Listing change** issue form (label `listing-change`) | ✅ owner |
| 2026-11-15 | **v1.4.1 tagged and released** — maintenance mode (D36) and Qodana (D35). **Suite v3.2** (site v1.4.1) — a MINOR bump by §6's rule: no hard rule changes | ✅ |
## 5. Open questions for Kokone
Everything below is blocked on a decision or a setting, not on code.
@@ -359,14 +400,18 @@ Status as of 2026-10-21: v1.0.0 shipped on 2026-07-30 and v1.1.0 on
## 6. Suite maintenance
This suite (**v2.0, 2026-10-21, describing site v1.1** — v1.2 was
This suite (**v3.2, 2026-11-15, describing site v1.4.1** — v3.1 was
2026-11-09, site v1.4; v3.0 was 2026-10-26, site v1.3; v2.0 was 2026-10-21, site v1.1; v1.2 was
2026-07-27; v1.1 was 2026-07-20 post-domain; v1.0 was 2026-07-15,
pre-domain) is the contract. Mind the two numbering schemes: *suite* v1.1
is the July domain revision, *site* v1.1 is the October release. Any
implementation that diverges updates the relevant doc **in the same PR**
(docs/10 §7-8). Version bumps: minor for clarifications, major when a hard
rule or locked decision changes — v2.0 is major because it amends hard
rules 1 and 7.
rule or locked decision changes — v2.0 was major because it amended hard
rules 1 and 7, v3.0 because D32 amends hard rule 1 again; v3.1 is minor
(D33/D34 add a statement, a category and an identifier, `sh:keys`, and
change no hard rule), and so is v3.2 (D35 adds an analyser, D36 freezes
the feature backlog; no hard rule changes).
**v2.0 caught the docs up with site v1.1** — the code had moved for three
months while the suite stood still. D25–D27 and the 2026-10-21 rows of §4
+59 -5
View File
@@ -19,9 +19,9 @@
| N1 | Canonical origin | **`https://softharbor.net`** — apex, no `www` |
| N2 | `www.softharbor.net` | 301 → apex, path + query preserved (zone Redirect Rule) |
| N3 | `workers.dev` main route | **Disabled** (`workers_dev: false`); PR previews stay on versioned preview URLs (`preview_urls: true` — must be explicit, since it defaults to follow `workers_dev`) |
| N4 | Zone plan | **Free** (Workers Paid is account-level and unrelated). Consequence: Cloudflare **Custom Errors stays unavailable** (paid-zone feature) → our `/errors/*` templates remain dormant |
| N4 | Zone plan | **Free** (Workers Paid is account-level and unrelated). Consequence: Cloudflare **Custom Errors stays unavailable** (paid-zone feature) → `/errors/403` and `/errors/500` remain dormant; `/errors/429` is served by the Worker since D32, not by the zone |
| N5 | HSTS | Zone-level, phased rollout (§5) — **not** in `_headers` |
| N6 | Rate limiting & Bot Fight Mode | **OFF** at launch, with a ready-made activation recipe (§9) |
| N6 | Rate limiting & Bot Fight Mode | Bot Fight Mode **OFF** (§9). Rate limiting: the Worker's site-wide limit since D32 (docs/08 Part F), plus the zone rule as an optional edge layer — recipe §9.1 |
| N7 | Contact email | ~~`contact@softharbor.net` via Cloudflare Email Routing (§6) — resolves H5~~ — ⛔ **superseded 2026-10-21 by D27**: one address per purpose at `@poli0981.dev`, mail hosted by Google (§6) |
| N8 | Search plumbing | GSC **Domain property** + sitemap; Bing via GSC import; Crawler Hints (IndexNow) ON |
@@ -73,12 +73,12 @@ the `www` record (§2.2).* Today `wrangler.jsonc` (full reference: docs/02
```jsonc
{
"name": "softharbor",
"main": "./worker/index.ts", // D25 — /api/verify only
"main": "./worker/index.ts", // D25 + D32 — rate limit, /api/verify
"compatibility_date": "2026-10-01",
"assets": { "directory": "./dist", "binding": "ASSETS",
"not_found_handling": "404-page",
"html_handling": "drop-trailing-slash",
"run_worker_first": ["/api/verify"] },
"run_worker_first": ["/*", "!/_astro/*", …] }, // D32, docs/02 §7
// No "routes": softharbor.net and www.softharbor.net are Custom Domains
// attached in the dashboard; with no routes key a deploy leaves them be.
"workers_dev": false, // kills softharbor.<account>.workers.dev
@@ -271,12 +271,66 @@ hreflang errors) — added to docs/13 §6.
| Feature | Status & reason | Recipe if ever needed |
|---|---|---|
| **Rate limiting** (zone) | OFF. Static assets are unbilled and edge-served — there is nothing costly to protect; and on the Free zone the Block action serves **Cloudflare's default 429 page** (custom responses are Business+), undermining our error-page polish. *Not to be confused with the Worker's own Workers Rate Limiting binding, which guards only `/api/verify` (20/60 s per IP or /64, docs/08 Part E).* | Free zone includes **1 rule**: Security → WAF → Rate limiting rules → e.g. `(http.host eq "softharbor.net")`, 100 req / 10 s per IP, Block 1 min. Accept the default 429 page, or upgrade zone for custom response. |
| **Rate limiting** (zone) | **Recommended edge layer since D32 — owner step, ⚠ verify once deployed.** The site's rate limit lives in the Worker (docs/08 Part F: 60 page requests per 10 s, our own 429 page), but measured, it holds only a client that reuses its connection; a flood opening a new connection per request slips past it. The zone rule in front of it, layer 1, counts per IP at the edge and blocks before the Worker runs (so before it is billed) — on the Free zone only with **Cloudflare's default 429 page** (custom responses need Pro), which is why it must stay looser than the Worker's limit. | §9.1 — one rule, URI Path starts with `/` and not a verified bot, **150 per 10 s per IP**, Block 10 s. (The pre-D32 recipe here named `http.host` and a 1-minute block, neither of which the Free plan offers.) |
| **Bot Fight Mode** | OFF. It challenges automated clients — which would break exactly what we publish for automation: `/api/apps.json` consumers and the `notify.py` RSS cron. The legal gate's Turnstile check (D25) is no substitute and no conflict: it runs in visitors' browsers, after consent, and fails open. | Only with a scoped WAF exception for `/api/*` and `/rss.xml` — and only in response to actual abuse. |
| **Speed Brain** (speculative prefetch) | **Should be OFF.** Cloudflare refuses speculative requests on Worker requests — a `Sec-Purpose: prefetch` GET gets a bare **503** with `Cf-Speculation-Refused: prefetch refused: disabled for worker requests` — which is why `astro.config.ts` sets `prefetch: false` (docs/02 §4). **Observed 2026-10-21: production still sends `Speculation-Rules: "/cdn-cgi/speculation"`**, i.e. the zone feature appears to be on (H12, ⚠ verify and turn off). | Turn the zone's Speed Brain toggle off (Speed settings in the dashboard). Revisit only if Cloudflare ever allows speculation on Worker routes. |
| **Cloudflare Custom Errors** | Unavailable on Free zone (paid-plans feature; also never applies to 500/501/503/505). `/errors/{403,429,500}` templates stay **dormant** as designed. | Upgrade zone to Pro → Rules → Custom Error Rules → point 403/429 at the templates. Decision logged if taken. |
| **Cache tuning / Page Rules / Snippets** | Defaults. Workers Static Assets already serves from the edge; `_headers` (docs/09 §4) owns per-path `Cache-Control` — `/*` sets none and each specific rule detaches with `! Cache-Control`, because Cloudflare comma-joins a header set by several matching rules. | — |
### 9.1 Layer 1 at the edge — the zone rate-limiting rule (owner step)
Since D32 there are two layers. **Layer 1**, this zone rule, throws a
flood out at the edge before the Worker runs — not billed, but answered
with Cloudflare's default 429 page. **Layer 2**, the Worker's limit
(docs/08 Part F), answers over-use from a browser or a keep-alive client
with our own page. Layer 1 must be the looser of the two, or nobody would
ever see our page — and it is the only one that stops a flood that opens
a new connection per request, which the Worker's per-machine counters
mostly miss (measured, docs/08 Part F). Recommended, not optional.
Free-zone constraints (Cloudflare's docs, read 2026-10-26): **one** rule;
counted **per IP** only; the expression may use only **URI Path** and
**Verified Bot** (no Host); period **10 s**; block duration **10 s**; the
Block response is Cloudflare's default 429 (a custom response needs Pro).
Use Block, not a challenge: a challenge would break `/api/apps.json` and
RSS consumers, which cannot solve one.
Dashboard → the `softharbor.net` zone → **Security** → **Security rules** →
**Create rule** → **Rate limiting rules** (older dashboards: Security → WAF
→ Rate limiting rules):
1. **Rule name:** `Edge flood guard (layer 1, D32)`.
2. **If incoming requests match:** Field **URI Path**, Operator **starts
with**, Value `/` (every request) — **And** Field **Verified Bot**,
Value **Off**, so search engines' verified crawlers are left to the
Worker's limit and their own crawl-rate control. The expression preview
should read `(starts_with(http.request.uri.path, "/") and not
cf.client.bot)`.
3. **Cache status:** if **Also apply rate limiting to cached assets** is
offered, leave it **on** — every request counts.
4. **With the same characteristics:** **IP** (the only choice on Free).
5. **When rate exceeds:** **150** requests per **10 seconds**.
6. **Then take action:** **Block**; **Duration:** **10 seconds**.
7. **Deploy.**
**Why 150.** The rule counts everything — each page's CSS, JS and fonts
(about fifteen requests for a first page load, cached afterwards) and the
Worker's own 429s — while the Worker allows 60 page requests per 10 s. 150
is out of reach for any person, above the Worker's limit so over-use meets
our page first, and far below a flood. Never set it under ~100.
**Verify** once it is deployed, from one machine — hammer a file the
Worker never sees (an asset-first path), so only layer 1 can answer:
```bash
seq 1 200 | xargs -P 20 -I{} curl -s -o /dev/null -w "%{http_code}\n" https://softharbor.net/favicon.svg | sort | uniq -c
```
Expect roughly 150 × `200` and the rest `429` (Cloudflare's page, not
ours); ten seconds later the file answers `200` again. **Roll back** by
turning the rule off on the same page — nothing in the repository depends
on it.
## 10. Rollout sequence & verification
> **Status 2026-10-21.** The rollout below is complete and historical: www
+194
View File
@@ -0,0 +1,194 @@
// SPDX-License-Identifier: GPL-3.0-only
// Copyright (C) 2026 poli0981 (SkullMute)
//
// Accessibility beyond the page-by-page axe sweep in smoke.spec.ts
// (ACCESSIBILITY.md, docs/11 §4): axe on the OPEN dialogs, the keyboard paths
// (skip link, focus return, the "/" switch), reflow at 320 CSS px, and forced
// colours. The owner's manual keyboard + Narrator pass (2026-11-09) is the
// human half of the same checklist.
import {
acceptGate,
axeViolations,
expect,
settled,
stubTurnstile,
test,
waitForIsland,
} from './fixtures';
test.describe('open dialogs pass axe', () => {
test('the legal gate', async ({ page }) => {
await stubTurnstile(page);
await page.goto('/apps');
const gate = page.getByTestId('sh-legal-gate');
await expect(gate).toBeVisible();
await settled(page);
expect(await axeViolations(page)).toEqual([]);
});
test('the filter sheet', async ({ page }) => {
await acceptGate(page);
await page.goto('/apps');
await waitForIsland(page, 'ShFilterSheet');
await page.getByRole('button', { name: /^Filters/ }).click();
await expect(page.getByRole('dialog', { name: 'Filters' })).toBeVisible();
await settled(page);
expect(await axeViolations(page)).toEqual([]);
});
test('the display menu', async ({ page }) => {
await acceptGate(page);
await page.goto('/');
await waitForIsland(page, 'ShPrefs');
await page.getByRole('button', { name: 'Display settings' }).click();
await expect(page.getByTestId('sh-prefs')).toBeVisible();
await settled(page);
expect(await axeViolations(page)).toEqual([]);
});
});
test.describe('keyboard', () => {
test.beforeEach(async ({ page }) => {
await acceptGate(page);
});
test('the first Tab reaches the skip link, which jumps past the header', async ({ page }) => {
await page.goto('/apps/7-zip');
await page.keyboard.press('Tab');
const skip = page.getByRole('link', { name: 'Skip to content' });
await expect(skip).toBeFocused();
await expect(skip).toBeInViewport();
await page.keyboard.press('Enter');
await page.keyboard.press('Tab');
// The next stop is inside <main>, not the header's first link.
expect(await page.evaluate(() => document.activeElement?.closest('main') !== null)).toBe(true);
});
test('closing the filter sheet with Esc returns focus to its button', async ({ page }) => {
await page.goto('/apps');
await waitForIsland(page, 'ShFilterSheet');
const button = page.getByRole('button', { name: /^Filters/ });
await button.focus();
await page.keyboard.press('Enter');
await expect(page.getByRole('dialog', { name: 'Filters' })).toBeVisible();
await page.keyboard.press('Escape');
await expect(page.getByRole('dialog', { name: 'Filters' })).toBeHidden();
await expect(button).toBeFocused();
});
test('closing the display menu with Esc returns focus to its button', async ({ page }) => {
await page.goto('/');
await waitForIsland(page, 'ShPrefs');
const button = page.getByRole('button', { name: 'Display settings' });
await button.focus();
await page.keyboard.press('Enter');
const panel = page.getByTestId('sh-prefs');
await expect(panel).toBeVisible();
await page.keyboard.press('Tab');
await expect(panel.getByRole('radio', { name: 'System' }).first()).toBeFocused();
await page.keyboard.press('Escape');
await expect(panel).toBeHidden();
await expect(button).toBeFocused();
});
test('the focused choice in the display menu shows a ring of its own (2.4.7)', async ({
page,
}) => {
await page.goto('/');
await waitForIsland(page, 'ShPrefs');
await page.getByRole('button', { name: 'Display settings' }).click();
await page.keyboard.press('Tab'); // the checked "System" theme radio
const ring = await page
.getByTestId('sh-prefs')
.locator('input:focus-visible + span')
.evaluate((el) => {
const s = getComputedStyle(el);
return { outline: s.outlineStyle, color: s.outlineColor, fill: s.backgroundColor };
});
expect(ring.outline).toBe('solid');
expect(ring.color).not.toBe(ring.fill);
});
test('"/" can be turned off, and then does nothing (2.1.4)', async ({ page }) => {
await page.goto('/categories');
await waitForIsland(page, 'ShPrefs');
await page.getByRole('button', { name: 'Display settings' }).click();
await page.getByTestId('sh-prefs').getByRole('radio', { name: 'Off' }).check();
await expect(page.locator('html')).toHaveAttribute('data-keys', 'off');
await page.keyboard.press('Escape');
await page.keyboard.press('/');
await expect(page).toHaveURL(/\/categories$/);
// Restored before paint on the next page: no hint, no shortcut.
await page.goto('/apps');
await waitForIsland(page, 'ShSearch');
await expect(page.locator('html')).toHaveAttribute('data-keys', 'off');
await expect(page.locator('#sh-search')).toHaveAttribute('placeholder', 'Search apps…');
await page.keyboard.press('/');
await expect(page.locator('#sh-search')).not.toBeFocused();
});
});
test.describe('reflow at 320 CSS px (1.4.10)', () => {
// The phone project already runs at 412 px; this is the WCAG width.
test.skip(({ isMobile }) => isMobile, 'desktop project only');
test.use({ viewport: { width: 320, height: 640 } });
for (const path of [
'/',
'/apps',
'/apps/7-zip',
'/categories',
'/contact',
'/legal/privacy',
'/legal/third-party',
'/legal/accessibility',
'/vi',
'/vi/apps',
'/vi/apps/7-zip',
'/vi/legal/accessibility',
'/offline',
]) {
test(`${path} does not scroll sideways`, async ({ page }) => {
await acceptGate(page);
await page.goto(path);
await settled(page);
const overflow = await page.evaluate(
() => document.documentElement.scrollWidth - document.documentElement.clientWidth,
);
expect(overflow, 'horizontal overflow in px').toBeLessThanOrEqual(0);
});
}
});
test.describe('forced colours (Windows contrast themes)', () => {
test.beforeEach(async ({ page }) => {
await acceptGate(page);
await page.emulateMedia({ forcedColors: 'active' });
});
test('the current section is still marked without its accent rule', async ({ page }) => {
await page.goto('/apps');
const current = page.locator('header nav a[aria-current="page"]');
await expect(current).toHaveCSS('text-decoration-line', 'underline');
});
test('the chosen display options and language keep a visible fill', async ({ page }) => {
await page.goto('/');
await waitForIsland(page, 'ShPrefs');
await page.getByRole('button', { name: 'Display settings' }).click();
const fills = await page.evaluate(() => {
const bg = (el: Element | null) => (el ? getComputedStyle(el).backgroundColor : null);
return {
checked: bg(document.querySelector('#sh-prefs input:checked + span')),
unchecked: bg(document.querySelector('#sh-prefs input:not(:checked) + span')),
lang: bg(document.querySelector('[data-testid="sh-lang-switch"] [aria-current="true"]')),
other: bg(document.querySelector('[data-testid="sh-lang-switch"] a')),
};
});
expect(fills.checked).not.toBe(fills.unchecked);
expect(fills.lang).not.toBe(fills.other);
});
});
+23
View File
@@ -12,6 +12,7 @@
// enforces its own CSP and logs violations for probes it makes itself
// (hagen./brunhild.challenges.cloudflare.com), which no page can change.
import AxeBuilder from '@axe-core/playwright';
import { expect, test as base, type Page } from '@playwright/test';
import { PASS_TTL_MS } from '../src/lib/human';
import { LEGAL_VERSION } from '../src/lib/legal';
@@ -98,6 +99,28 @@ export async function settled(page: Page): Promise<void> {
);
}
/** The WCAG A/AA rule sets the site targets (ACCESSIBILITY.md, WCAG 2.2 AA). */
const WCAG_TAGS = ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa', 'wcag22aa'];
/**
* axe findings that fail a test: critical, serious AND moderate (v1.4; minor
* ones are left to review). One line per rule, so a failure names the rule
* and the first offending node. `include` narrows the scan to one component.
*/
export async function axeViolations(
page: Page,
{ include }: { include?: string } = {},
): Promise<string[]> {
let builder = new AxeBuilder({ page }).withTags(WCAG_TAGS);
if (include) builder = builder.include(include);
const results = await builder.analyze();
return results.violations
.filter((v) => v.impact === 'critical' || v.impact === 'serious' || v.impact === 'moderate')
.map(
(v) => `${v.id} (${v.impact}): ${v.nodes.length} node(s) — ${v.nodes[0]?.target.join(' ')}`,
);
}
/**
* Pre-accept the legal gate (the current version) AND its human check, before
* the page loads — for tests about something other than the gate.
+33 -12
View File
@@ -2,10 +2,11 @@
// Copyright (C) 2026 poli0981 (SkullMute)
//
// Every page type, both locales, both colour schemes: renders, no console
// errors, no CSP violations (fixture), and no serious/critical axe findings.
// errors, no CSP violations (fixture), and no critical, serious or moderate
// axe findings against the WCAG A/AA rules (ACCESSIBILITY.md). Open dialogs,
// keyboard paths, reflow and forced colours: e2e/a11y.spec.ts.
import AxeBuilder from '@axe-core/playwright';
import { acceptGate, expect, settled, test } from './fixtures';
import { acceptGate, axeViolations, expect, settled, test } from './fixtures';
const PAGES = [
'/',
@@ -15,11 +16,14 @@ const PAGES = [
'/categories/browser',
'/legal/privacy',
'/legal/terms',
'/legal/third-party',
'/legal/accessibility',
'/vi',
'/vi/apps',
'/vi/apps/7-zip',
'/vi/categories/security-privacy',
'/vi/legal/disclaimer',
'/vi/legal/accessibility',
'/offline',
'/contact',
'/vi/contact',
@@ -53,22 +57,39 @@ test.describe('404', () => {
await expect(page.locator('h1')).toContainText("That page isn't here");
await expect(page.getByTestId('sh-legal-gate')).toHaveCount(0);
});
test('the 404 page has no accessibility violations', async ({ page }) => {
await page.goto('/this-page-does-not-exist');
await settled(page);
expect(await axeViolations(page)).toEqual([]);
});
});
/** Every page TYPE in both locales, plus the pages with tables and contact rows. */
const AXE_PAGES = [
'/',
'/apps',
'/apps/7-zip',
'/categories',
'/categories/browser',
'/contact',
'/legal/privacy',
'/legal/third-party',
'/legal/accessibility',
'/offline',
'/vi',
'/vi/apps',
'/vi/apps/7-zip',
];
for (const scheme of ['light', 'dark'] as const) {
for (const path of ['/', '/apps', '/apps/7-zip', '/vi/apps', '/legal/privacy']) {
test(`${path} has no serious accessibility violations (${scheme})`, async ({ page }) => {
for (const path of AXE_PAGES) {
test(`${path} has no accessibility violations (${scheme})`, async ({ page }) => {
await page.emulateMedia({ colorScheme: scheme });
await acceptGate(page);
await page.goto(path);
await settled(page);
const results = await new AxeBuilder({ page })
.withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa', 'wcag22aa'])
.analyze();
const serious = results.violations
.filter((v) => v.impact === 'serious' || v.impact === 'critical')
.map((v) => `${v.id}: ${v.nodes.length} node(s) — ${v.nodes[0]?.target.join(' ')}`);
expect(serious).toEqual([]);
expect(await axeViolations(page)).toEqual([]);
});
}
}
+134
View File
@@ -0,0 +1,134 @@
// SPDX-License-Identifier: GPL-3.0-only
// Copyright (C) 2026 poli0981 (SkullMute)
//
// The Worker end to end (D32): `wrangler dev` serves dist/ with the real
// wrangler.jsonc — run_worker_first and its negative patterns, both rate
// limiters (simulated by Miniflare), public/_headers — so a flood can be
// thrown at it and the 429s inspected.
//
// Miniflare counts in fixed windows aligned to the wall clock, and a refused
// request does not count. So each test that needs a clean slate or a
// refusal first waits for the next window, which also makes a retried or
// re-used server start from zero.
import type { APIRequestContext } from '@playwright/test';
import { unstable_readConfig } from 'wrangler';
import { expect, test } from './fixtures';
test.describe.configure({ mode: 'serial' });
/** What this spec reads of wrangler.jsonc (wrangler's own Config type does not resolve here). */
interface WranglerConfig {
ratelimits: { name: string; simple: { limit: number; period: number } }[];
}
const site = (
unstable_readConfig({ config: 'wrangler.jsonc' }, { hideWarnings: true }) as WranglerConfig
).ratelimits.find((r) => r.name === 'SITE_LIMITER');
const LIMIT = site?.simple.limit ?? 0;
const PERIOD_MS = (site?.simple.period ?? 10) * 1000;
/** Resolves just after the next window starts: every count is back to zero. */
async function nextWindow(): Promise<void> {
const wait = PERIOD_MS - (Date.now() % PERIOD_MS) + 150;
await new Promise((resolve) => setTimeout(resolve, wait));
}
/** Spends this window's whole budget on `/`; returns every status, in order. */
async function flood(request: APIRequestContext, extra = 20): Promise<number[]> {
const statuses: number[] = [];
for (let i = 0; i < LIMIT + extra; i++) statuses.push((await request.get('/')).status());
return statuses;
}
test('pages pass through the Worker with the asset server’s own handling and headers', async ({
request,
}) => {
expect(LIMIT).toBeGreaterThan(0);
await nextWindow();
const res = await request.get('/apps');
expect(res.status()).toBe(200);
// public/_headers still applies to what ASSETS.fetch() returns.
expect(res.headers()['content-security-policy']).toBe("frame-ancestors 'none'");
expect(res.headers()['x-frame-options']).toBe('DENY');
// not_found_handling and html_handling, unchanged.
expect((await request.get('/apps/no-such-app')).status()).toBe(404);
const slashed = await request.get('/apps/', { maxRedirects: 0 });
expect(slashed.status()).toBe(307);
expect(slashed.headers()['location']).toMatch(/\/apps$/);
});
test('a flood gets exactly the configured budget, then the site’s own 429 page', async ({
request,
}) => {
await nextWindow();
const statuses = await flood(request);
expect(statuses.filter((s) => s === 200)).toHaveLength(LIMIT);
// Once refused, refused for the rest of the window.
expect(statuses.slice(LIMIT).every((s) => s === 429)).toBe(true);
const refused = await request.get('/apps/7-zip');
expect(refused.status()).toBe(429);
const h = refused.headers();
expect(h['retry-after']).toBe(String(PERIOD_MS / 1000));
expect(h['cache-control']).toBe('no-store');
expect(h['content-type']).toContain('text/html');
expect(h['x-frame-options']).toBe('DENY');
expect(await refused.text()).toContain('<title>Too many requests — SoftHarbor</title>');
});
test('while refused: /api/* answers JSON, and a page’s own files still load', async ({
request,
}) => {
await nextWindow();
const home = await (await request.get('/')).text();
await flood(request);
const data = await request.get('/api/apps.json');
expect(data.status()).toBe(429);
expect(await data.json()).toEqual({ error: 'rate_limited' });
expect(data.headers()['access-control-allow-origin']).toBe('*');
const verify = await request.post('/api/verify', { data: { token: 'x' } });
expect(verify.status()).toBe(429);
expect(await verify.json()).toEqual({ error: 'rate_limited' });
// Never limited: everything a page loads after it passed.
const css = /\/_astro\/[\w.-]+\.css/.exec(home)?.[0] ?? '/_astro/ (no stylesheet linked)';
for (const path of [css, '/sw.js', '/registerSW.js', '/favicon.svg', '/manifest.webmanifest']) {
expect((await request.get(path)).status(), path).toBe(200);
}
});
test.describe('the 429 page in a browser', () => {
// Chrome logs the document's own status; that line is expected here.
test.use({ allowConsole: [/status of 429/] });
test('renders whole — styled, no CSP violation, no gate', async ({ page, request }) => {
await nextWindow();
await flood(request);
const res = await page.goto('/apps');
expect(res?.status()).toBe(429);
await expect(page.locator('h1')).toHaveText('Too many requests');
await expect(page.locator('[lang="vi"] h2')).toHaveText('Quá nhiều yêu cầu');
const styled = await page.evaluate(() =>
[...document.styleSheets].every((s) => {
try {
return s.cssRules.length > 0;
} catch {
return false;
}
}),
);
expect(styled).toBe(true);
await expect(page.getByRole('dialog')).toHaveCount(0);
});
});
test('lets everyone back in when the window passes', async ({ request }) => {
await nextWindow();
await flood(request);
expect((await request.get('/apps')).status()).toBe(429);
await nextWindow();
expect((await request.get('/apps')).status()).toBe(200);
});
+4 -1
View File
@@ -2,6 +2,7 @@
// Copyright (C) 2026 poli0981 (SkullMute)
// docs/10 §3. ESLint covers correctness only — Prettier owns style.
import { defineConfig } from 'eslint/config';
import js from '@eslint/js';
import tseslint from 'typescript-eslint';
import astro from 'eslint-plugin-astro';
@@ -9,7 +10,9 @@ import svelte from 'eslint-plugin-svelte';
import svelteParser from 'svelte-eslint-parser';
import globals from 'globals';
export default tseslint.config(
// ESLint core's defineConfig, not `tseslint.config()` — typescript-eslint
// deprecated its own helper in favour of this one (TS hint 6387, 2026-11).
export default defineConfig(
// `.claude/` holds agent worktrees — full copies of the repo that `eslint .`
// would otherwise lint a second (or third) time.
{
+2 -7
View File
@@ -1,17 +1,12 @@
{
"$schema": "https://unpkg.com/knip@6/schema.json",
"ignoreExportsUsedInFile": true,
"ignoreDependencies": ["@vite-pwa/workbox-swkit", "@vite-pwa/workbox-window"],
"entry": ["src/pages/**/*.{astro,ts}", "scripts/*.mjs", "src/scripts/*.js"],
"project": [
"src/**/*.{ts,astro,svelte}",
"src/**/*.{ts,astro,svelte,css}",
"scripts/**/*.{mjs,ts}",
"e2e/**/*.ts",
"worker/**/*.ts"
],
"ignoreDependencies": [
"tailwindcss",
"@fontsource-variable/bricolage-grotesque",
"@fontsource/be-vietnam-pro",
"@fontsource/ibm-plex-mono"
]
}
+20
View File
@@ -0,0 +1,20 @@
# OSV-Scanner exceptions for CI's `gates` job (docs/09 §7). The scanner reads
# this file because it sits next to the scanned `pnpm-lock.yaml`.
#
# An entry here is for an advisory that NO release fixes yet — anything with a
# patched version gets a floor in `pnpm-workspace.yaml` `overrides` instead.
# Every entry carries an expiry, so the gate fails again and makes someone look;
# `pnpm-workspace.yaml` `auditConfig.ignoreGhsas` lists the same ids for
# `pnpm audit --prod`. Remove both lines once a fixed release exists.
# deepmerge <= 4.3.1 (CVE-2026-93753, GitHub severity low): mergeObject() lets a
# crafted source object set the prototype of the object it returns. 4.3.1 is
# the latest release. It reaches us only through build tooling —
# @astrojs/svelte -> @sveltejs/vite-plugin-svelte (merging our own
# svelte.config.js; the second path, @vite-pwa/astro 1 -> workbox-build 7 ->
# @rollup/plugin-node-resolve, left with @vite-pwa/astro 2 on 2026-11-09) — so
# every input it merges is ours, and it is not part of anything the site ships.
[[IgnoredVulns]]
id = "GHSA-gcqx-w48m-w2h4"
ignoreUntil = 2027-01-31
reason = "No fixed deepmerge release; build tooling merging our own config only (docs/09 §7)"
+27 -23
View File
@@ -1,12 +1,12 @@
{
"name": "softharbor",
"version": "1.2.0",
"version": "1.4.1",
"private": true,
"type": "module",
"description": "Bilingual (EN/VI) directory of free and buy-once desktop software",
"license": "GPL-3.0-only",
"author": "poli0981 / SkullMute",
"packageManager": "pnpm@11.15.1",
"packageManager": "pnpm@11.28.11",
"engines": {
"node": ">=26 <27"
},
@@ -39,45 +39,49 @@
"dependencies": {
"@astrojs/rss": "^4.0.19",
"@astrojs/sitemap": "^3.7.4",
"@astrojs/svelte": "^9.1.0",
"@astrojs/svelte": "^9.1.2",
"@fontsource-variable/bricolage-grotesque": "^5.3.0",
"@fontsource/be-vietnam-pro": "^5.3.0",
"@fontsource/ibm-plex-mono": "^5.3.0",
"@iconify-json/lucide": "^1.2.147",
"@iconify-json/simple-icons": "^1.2.100",
"@tailwindcss/vite": "^4.3.3",
"@vite-pwa/astro": "^1.2.0",
"astro": "^7.4.1",
"@iconify-json/lucide": "^1.2.152",
"@iconify-json/simple-icons": "^1.2.101",
"@tailwindcss/vite": "^4.3.5",
"@vite-pwa/astro": "2.0.1",
"astro": "^7.4.7",
"minisearch": "^7.2.0",
"nanostores": "^1.5.5",
"svelte": "^5.57.2",
"tailwindcss": "^4.3.3",
"svelte": "^5.57.3",
"tailwindcss": "^4.3.5",
"unplugin-icons": "^24.0.0"
},
"devDependencies": {
"@astrojs/check": "^0.9.11",
"@astrojs/check": "^0.9.12",
"@axe-core/playwright": "^4.14.0",
"@eslint/js": "^10.0.1",
"@playwright/test": "^1.64.1",
"@types/node": "^26.6.5",
"@playwright/test": "^1.65.0",
"@types/node": "^26.6.6",
"@typescript/native": "npm:typescript@^7.0.2",
"@vitest/coverage-v8": "5.0.5",
"eslint": "^10.13.0",
"@vite-pwa/workbox-swkit": "^8.0.14",
"@vite-pwa/workbox-window": "^8.0.14",
"@vitest/coverage-v8": "5.1.0",
"eslint": "^10.14.0",
"eslint-plugin-astro": "^3.2.1",
"eslint-plugin-svelte": "^3.23.1",
"globals": "^17.13.0",
"eslint-plugin-svelte": "^3.24.1",
"globals": "^17.14.0",
"happy-dom": "^21.0.4",
"knip": "^6.42.1",
"knip": "^6.44.2",
"lefthook": "^2.2.2",
"magicast": "^0.5.5",
"prettier": "^3.9.10",
"prettier-plugin-astro": "^1.1.1",
"prettier-plugin-astro": "^1.1.2",
"prettier-plugin-svelte": "^4.1.1",
"prettier-plugin-tailwindcss": "^0.8.1",
"rolldown": "1.3.0",
"sharp": "^0.35.5",
"svelte-eslint-parser": "^1.9.0",
"svelte-eslint-parser": "^1.10.1",
"typescript": "npm:@typescript/typescript6@^6.0.2",
"typescript-eslint": "^8.72.0",
"vitest": "^5.0.5",
"wrangler": "^4.151.3"
"typescript-eslint": "^8.72.1",
"vitest": "^5.1.0",
"wrangler": "^4.158.0"
}
}
+36 -13
View File
@@ -10,11 +10,18 @@
// fixture (e2e/fixtures.ts) fails any test whose page logged a console error
// or a CSP violation.
//
// Not covered here, by design: _headers and the Worker (`astro preview`
// applies neither) — those are verified on the Workers Builds preview URL.
// `astro preview` applies neither _headers nor the Worker, so a second server
// does: `wrangler dev` on the same dist/ with the real wrangler.jsonc, for the
// `worker` project alone (e2e/worker.spec.ts — routing, the rate limits, the
// 429 page). Cloudflare's own edge is still verified on the Workers Builds
// preview URL.
import { defineConfig, devices } from '@playwright/test';
const PORT = 4321;
// Not wrangler's default 8787/8788: another project's `wrangler dev` may hold
// those, and reuseExistingServer would then test the wrong site.
const WORKER_PORT = 8799;
const WORKER_SPEC = /worker\.spec\.ts$/;
export default defineConfig({
testDir: 'e2e',
@@ -27,17 +34,33 @@ export default defineConfig({
trace: 'retain-on-failure',
},
projects: [
{ name: 'desktop', use: { ...devices['Desktop Chrome'] } },
{ name: 'desktop', use: { ...devices['Desktop Chrome'] }, testIgnore: WORKER_SPEC },
// Bottom sheets, the wrapped header and touch targets live here.
{ name: 'mobile', use: { ...devices['Pixel 7'] } },
{ name: 'mobile', use: { ...devices['Pixel 7'] }, testIgnore: WORKER_SPEC },
{
name: 'worker',
testMatch: WORKER_SPEC,
use: { ...devices['Desktop Chrome'], baseURL: `http://127.0.0.1:${WORKER_PORT}` },
},
],
webServer: [
{
command: `pnpm exec astro preview --port ${PORT} --host 127.0.0.1`,
url: `http://127.0.0.1:${PORT}`,
reuseExistingServer: !process.env['CI'],
timeout: 60_000,
// Astro ≥ 7.2 backgrounds `astro preview` when it detects an AI agent or
// CI; Playwright needs it in the foreground to own its lifetime.
env: { ASTRO_PREVIEW_BACKGROUND: '0' },
},
{
command: `pnpm exec wrangler dev --port ${WORKER_PORT} --ip 127.0.0.1 --show-interactive-dev-session=false`,
// An asset-first path (a negative pattern), so the readiness probes
// spend nothing from the rate limit the tests measure.
url: `http://127.0.0.1:${WORKER_PORT}/favicon.svg`,
reuseExistingServer: !process.env['CI'],
timeout: 90_000,
env: { WRANGLER_SEND_METRICS: 'false' },
},
],
webServer: {
command: `pnpm exec astro preview --port ${PORT} --host 127.0.0.1`,
url: `http://127.0.0.1:${PORT}`,
reuseExistingServer: !process.env['CI'],
timeout: 60_000,
// Astro ≥ 7.2 backgrounds `astro preview` when it detects an AI agent or
// CI; Playwright needs it in the foreground to own its lifetime.
env: { ASTRO_PREVIEW_BACKGROUND: '0' },
},
});
+1393 -3985
View File
File diff suppressed because it is too large. Load diff
+45 -17
View File
@@ -20,30 +20,58 @@ allowBuilds:
# decision, not an oversight.
workerd: false
# Security overrides. Both packages reach us only through
# @vite-pwa/astro -> vite-plugin-pwa -> workbox-build, i.e. BUILD tooling;
# nothing here ships to a visitor. Each floor is the first release that fixes
# every advisory listed. Remove a line once upstream's own range moves past it
# Security overrides. Every package here reaches us only through BUILD or DEV
# tooling — the eslint toolchain or @astrojs/check's language server; nothing
# here ships to a visitor. Each floor is the first release that fixes every
# advisory listed. Remove a line once upstream's own range moves past it
# (`pnpm why <pkg>` shows who still pins the old version).
#
# brace-expansion — GHSA-mh99-v99m-4gvg (<5.0.8), GHSA-rgw5-rvv9-x895 (<5.0.9),
# GHSA-6j4f-fj2g-mc7p (<5.0.10), GHSA-qhr7-859c-m2p7 (<5.0.11),
# GHSA-q2hr-2g5m-vwhr (<5.0.12). No patched 2.x exists, so minimatch@5 is forced
# across a three-major gap; acceptable only because the package's surface is a
# single `expand()` function and the build plus full test suite run against it.
# minimatch — GHSA-g3hv-75wg-m249 (<11.0.1). Callers: eslint, @eslint/config-array
# and typescript-eslint (`^10.2.x`, matching our own config globs against our
# own paths). No patched 10.x exists, so 11 is forced across a major;
# acceptable only because every caller uses nothing 11 removed — `minimatch()`,
# `minimatch.match()` and `new Minimatch().match()`, never makeRe/regexp/AST/
# debug — and `pnpm lint` lints the same 157 files with the same result either
# side of the override (checked 2026-11-04). Every 11.x requires
# brace-expansion ^5.0.12, which retired that package's own floor
# (GHSA-mh99-v99m-4gvg … GHSA-q2hr-2g5m-vwhr, <5.0.12).
#
# fast-uri — GHSA-7p8r-x3mc-p8w7, GHSA-5jgf-p345-68v8, GHSA-f65p-4m7j-42xc,
# GHSA-fph4-wmhf-6fwf, GHSA-jqff-g426-hqxp, GHSA-qw65-cvwx-89v3 (<3.1.7) and
# GHSA-hrr3-gc8f-f4qj (<3.1.8). Same major as ajv@8's `^3.0.1` range; pnpm kept
# the locked 3.1.4 even under `update --depth Infinity`, hence the override.
#
# (Retired 2026-11-09 with @vite-pwa/astro 2, which drops workbox-build 7 and
# its 270-odd packages: `glob` ^14.0.2 — GHSA-3g3m-2fjr-6pw4, nothing depends
# on glob any more — and `serialize-javascript` ^7.1.3 — GHSA-m5mm-p8h7-m29v,
# @vite-pwa/workbox-build 8 asks for ^7.1.4 itself. Retired 2026-11-04:
# `miniflare>undici` — miniflare pins the fixed 7.30.1 itself.)
overrides:
brace-expansion: '^5.0.12'
minimatch: '^11.0.1'
fast-uri: '^3.1.9'
# @vite-pwa/astro 1.2.0 is the latest release (2025-11) and its peer range stops
# at Astro 5. It works on Astro 7 — `pnpm build` and `check:sw` exercise the
# generated service worker on every CI run — so the mismatch is accepted
# explicitly here instead of surfacing as an unexplained install warning.
peerDependencyRules:
allowedVersions:
'@vite-pwa/astro>astro': '7'
# Advisories that NO release fixes yet, so no override can reach them. CI's
# `pnpm audit --prod` skips exactly these ids; `osv-scanner.toml` lists the same
# ids for OSV-Scanner, with an expiry date and the reasoning. Remove a line (in
# both files) once a fixed release exists — then it becomes an override above.
#
# deepmerge <= 4.3.1 — GHSA-gcqx-w48m-w2h4 (low). Build tooling only, merging
# our own config: @astrojs/svelte -> @sveltejs/vite-plugin-svelte (the
# @vite-pwa/astro -> workbox-build 7 path left with @vite-pwa/astro 2).
auditConfig:
ignoreGhsas:
- GHSA-gcqx-w48m-w2h4
# @astrojs/astro2tsx 0.1.3 (astro check's .astro -> TSX step, a wasm module)
# pins @emnapi/core 1.11.3 but leaves @emnapi/runtime to the peer range of
# @napi-rs/wasm-runtime (`^1.7.1 || ^2.0.0-alpha.4`). Since rolldown 1.3.0
# (astro 7.4.7) brought @emnapi/runtime 2.0.0-beta.2 into the graph, pnpm
# resolves that peer to the beta; core 1.x with runtime 2.x throws "this.bridge
# .setLastError is not a function" on import, and `astro check` reports the
# failed import as "@astrojs/check is not installed" (Dependabot #67,
# 2026-11-09). Give astro2tsx the runtime that matches its core. Drop this once
# an astro2tsx release declares @emnapi/runtime itself.
packageExtensions:
'@astrojs/astro2tsx@0.1.3':
dependencies:
'@emnapi/runtime': '1.11.3'
+59
View File
@@ -0,0 +1,59 @@
# Qodana (JetBrains) — the third analyser beside CodeQL and SonarQube Cloud
# (D35, docs/12 §2). Read by .github/workflows/qodana.yml; results go to Qodana
# Cloud (the QODANA_TOKEN project token carries the Ultimate licence) and to
# GitHub code scanning (tool QDJS, category softharbor/qodana).
version: '1.0'
# Qodana for JS is WebStorm's engine and runs only under an Ultimate (or
# Ultimate Plus) licence. Native mode, no container: the analysis then sees the
# runner's Node 26 and the node_modules that pnpm installed in the step before
# it, instead of whatever Node the image ships. On its own it reads
# .ts/.js/.mjs, JSON, YAML, Markdown and CSS — .astro and .svelte are outside
# its language list (why no plugin adds them: the end of this file).
linter: qodana-js
withinDocker: 'false'
profile:
name: qodana.recommended
# The same scope as sonar-project.properties: the dataset is CC BY-SA content
# validated by Zod and validate:data, not code; everything else here is
# generated output or local tool state (git-ignored, so absent in CI anyway).
exclude:
- name: All
paths:
- src/data
- data
- dist
- coverage
- playwright-report
- test-results
- blob-report
- .astro
- .wrangler
- .claude
# The dark palette has to exist twice — once for the system choice
# (`@media (prefers-color-scheme: dark)`), once for the explicit one
# (`[data-theme='dark']`): CSS cannot share one block between a media query
# and a selector. `light-dark()` could, but needs Chrome 123 / Safari 17.5,
# newer than Tailwind 4's own floor (Chrome 111, Safari 16.4).
- name: DuplicatedCode
paths:
- src/styles/global.css
# No `plugins:`. JetBrains' Astro (org.jetbrains.plugins.astro) and Svelte
# (dev.blachut.svelte.lang) plugins were tried on 2026-11-15 and dropped:
# under Qodana their type checks were not deterministic. On unchanged code
# the Svelte plugin reported Intl.PluralRules#select and
# Intl.NumberFormat#format in ShFilterSheet.svelte as unresolved (one run in
# three), and the Astro plugin read Base.astro's `locale = 'en'` default as
# `string` instead of `Locale` — 15 errors in one run, 0 in the run before it
# on the same commit. A gate that flips on its own teaches everyone to
# ignore it. `astro check` (the TypeScript compiler itself) type-checks the
# .astro files; ESLint, the Vitest island suites and e2e cover the islands.
# Any finding fails the job: red on the PR, but not a required check (D35) —
# like Sonar's gate, a Qodana Cloud outage must never block a merge.
failureConditions:
severityThresholds:
any: 0
+1 -1
View File
@@ -17,7 +17,7 @@ const root = join(process.cwd(), 'src/i18n');
const BASE = 'en';
/** Locale dictionaries only — `xx.json` or `xx-YY.json`, never helper files. */
const LOCALE_FILE = /^([a-z]{2}(?:-[A-Z]{2})?)\.json$/;
const PLACEHOLDER = /\{(\w+)\}/g;
const PLACEHOLDER = /\{(\w+)}/g;
/** Plain UTF-16 order — identical to the default sort, but explicit (S2871). */
const byCodeUnit = (a, b) => (a < b ? -1 : a > b ? 1 : 0);
+61 -5
View File
@@ -19,6 +19,10 @@
* `NavigationRoute(createHandlerBoundToURL('/'))`. Since '/' was never
* precached, every SW-handled navigation threw
* `non-precached-url :: [{"url":"/"}]` in the console (2026-07-30).
* 5. `@vite-pwa/astro` 2.0.0 emitted a classic SW that still held ES
* `import` statements of bare `@vite-pwa/workbox-swkit/*` specifiers
* (unresolvable under pnpm's strict layout) and an empty precache — a
* script the browser cannot even evaluate (tried 2026-11-04, refused).
*
* Number 4 was the dangerous one. Had '/' been precached, that route would
* have served the home page for EVERY navigation — failure 2 again, but
@@ -33,23 +37,54 @@ import { join } from 'node:path';
const SW = join(process.cwd(), 'dist/sw.js');
const problems = [];
/**
* Whether any line of `code` is an ES `import`/`export` statement, which a
* classic script cannot evaluate. A dynamic `import(` and `importScripts(` are
* fine. Line by line, so the pattern never backtracks across newlines.
*/
function hasModuleSyntax(code) {
return code
.split('\n')
.some((line) => /^(?:import|export)(?:\s+[^\s(]|[{*"'`])/.test(line.trimStart()));
}
if (!existsSync(SW)) {
problems.push('dist/sw.js does not exist — the PWA integration produced no service worker');
} else {
const sw = readFileSync(SW, 'utf8');
// (5) A classic service worker (what registerSW.js registers) cannot
// evaluate ES `import` statements, and every script it pulls in with
// importScripts() must exist. These checks, and the name checks below, read
// the unminified output — `minify: false` in astro.config.ts keeps it so.
if (hasModuleSyntax(sw)) {
problems.push(
'dist/sw.js still contains ES `import` statements — a classic service worker cannot\n' +
' evaluate them (bare @vite-pwa/workbox-swkit specifiers: that package must be a\n' +
' direct dependency so the SW bundler can resolve it).',
);
}
for (const m of sw.matchAll(/importScripts\(\s*(["'`])(?:\.\/)?([^"'`]+)\1\s*\)/g)) {
if (!existsSync(join(process.cwd(), 'dist', m[2]))) {
problems.push(`dist/sw.js loads ${m[2]} with importScripts(), but the build did not emit it`);
}
}
// (4) No navigation fallback route. Navigations must reach the network so
// content stays fresh; the offline page is a failure path, not a strategy.
if (sw.includes('NavigationRoute') || sw.includes('createHandlerBoundToURL')) {
problems.push(
"a NavigationRoute is registered — set `workbox.navigateFallback: ''`.\n" +
"a NavigationRoute is registered — set `generateSW.navigateFallback: ''`.\n" +
' Omitting the key is not enough; vite-plugin-pwa defaults it to index.html.',
);
}
// (2) Navigations are NetworkOnly, falling back to /offline only on failure.
if (!sw.includes('NetworkOnly')) {
problems.push('no NetworkOnly navigation route — navigations would not hit the network');
problems.push(
'no NetworkOnly navigation route — navigations would not hit the network\n' +
' (a minified SW drops the names this check reads: keep `minify: false`).',
);
}
if (!sw.includes('/offline')) {
problems.push('no /offline fallback — a failed navigation would show the browser error page');
@@ -57,10 +92,10 @@ if (!existsSync(SW)) {
// (3) The globs actually matched. An empty or near-empty precache means the
// offline page is not there, which is invisible until you pull the cable.
const urls = [...sw.matchAll(/url:"([^"]+)"/g)].map((m) => m[1]);
const urls = [...sw.matchAll(/url:\s*(["'`])([^"'`]+)\1/g)].map((m) => m[2]);
if (!urls.some((u) => u.startsWith('offline'))) {
problems.push(
`offline.html is not precached (${urls.length} entries) — check workbox.globPatterns\n` +
`offline.html is not precached (${urls.length} entries) — check generateSW.globPatterns\n` +
' against build.format; they are coupled.',
);
}
@@ -91,10 +126,17 @@ if (!existsSync(SW)) {
}
// (6) An updated SW must take over without waiting for every tab to close:
// registerSW.js never posts SKIP_WAITING (workbox.skipWaiting).
// registerSW.js never posts SKIP_WAITING (generateSW.skipWaiting).
if (!sw.includes('skipWaiting')) {
problems.push('the SW does not call skipWaiting() — fixes would wait for every tab to close');
}
// (10) …and clears precaches an older Workbox format left behind
// (generateSW.cleanupOutdatedCaches — a default in 1.x, opt-in in 2.x).
if (!sw.includes('cleanupOutdatedCaches')) {
problems.push(
'the SW does not call cleanupOutdatedCaches() — old precaches would stay on disk',
);
}
}
// (1) The registration script must be referenced by a page, or the SW is dead
@@ -110,6 +152,20 @@ if (!existsSync(home)) {
"registerSW.js is not referenced from dist/index.html — set injectRegister: 'script'",
);
}
// (9) …and the page loads it as a CLASSIC script (`<script defer src>`), so
// one ES `import` in it is a SyntaxError and the SW never registers. 2.x
// emitted `import "@vite-pwa/workbox-window/esm-sw-detector"` until that
// package became a direct dependency (2026-11-09).
const register = join(process.cwd(), 'dist/registerSW.js');
if (!existsSync(register)) {
problems.push('dist/registerSW.js does not exist — nothing would register the SW');
} else if (hasModuleSyntax(readFileSync(register, 'utf8'))) {
problems.push(
'dist/registerSW.js contains ES import/export — the page loads it as a classic script,\n' +
' so it throws and the SW never registers (@vite-pwa/workbox-window must be a\n' +
' direct dependency).',
);
}
if (!html.includes('rel="manifest"')) {
problems.push('dist/index.html does not link the web app manifest');
}
+55 -1
View File
@@ -6,15 +6,19 @@ import { project, run } from './fixture';
const GOOD_SW =
'precacheAndRoute([{url:"offline.html"},{url:"_astro/f.woff2"},{url:"_astro/a.css"},' +
'{url:"_astro/theme.js"}]);new NetworkOnly();handlerDidError("/offline");self.skipWaiting();';
'{url:"_astro/theme.js"}]);new NetworkOnly();handlerDidError("/offline");self.skipWaiting();' +
'cleanupOutdatedCaches();';
const OFFLINE =
'<link rel="stylesheet" href="/_astro/a.css"><script src="/_astro/theme.js"></script>';
const HOME = '<script defer src="/registerSW.js"></script><link rel="manifest" href="/m.json">';
const REGISTER =
'if ("serviceWorker" in navigator) navigator.serviceWorker.register("/sw.js", { scope: "/" });';
const dist = (over: Record<string, string> = {}): Record<string, string> => ({
'dist/sw.js': GOOD_SW,
'dist/offline.html': OFFLINE,
'dist/index.html': HOME,
'dist/registerSW.js': REGISTER,
...over,
});
@@ -46,11 +50,35 @@ describe('check-service-worker', () => {
over: { 'dist/sw.js': GOOD_SW.replace('self.skipWaiting();', '') },
message: 'does not call skipWaiting',
},
{
name: 'no cleanupOutdatedCaches',
over: { 'dist/sw.js': GOOD_SW.replace('cleanupOutdatedCaches();', '') },
message: 'does not call cleanupOutdatedCaches',
},
{
name: 'no NetworkOnly navigation route',
over: { 'dist/sw.js': GOOD_SW.replace('NetworkOnly', 'CacheFirst') },
message: 'no NetworkOnly navigation route',
},
{
name: 'ES imports left in a classic SW (@vite-pwa/astro 2.0.0 under pnpm)',
over: {
'dist/sw.js': `import { NetworkOnly } from "@vite-pwa/workbox-swkit/strategies";\n${GOOD_SW}`,
},
message: 'still contains ES `import` statements',
},
{
name: 'an importScripts() target the build did not emit',
over: { 'dist/sw.js': `importScripts("./workbox-0000.js");\n${GOOD_SW}` },
message: 'loads workbox-0000.js with importScripts(), but the build did not emit it',
},
{
name: 'an ES import in the classic registerSW.js',
over: {
'dist/registerSW.js': `import "@vite-pwa/workbox-window/esm-sw-detector";\n${REGISTER}`,
},
message: 'dist/registerSW.js contains ES import/export',
},
{
name: 'an unlinked manifest',
over: { 'dist/index.html': '<script src="/registerSW.js"></script>' },
@@ -67,6 +95,32 @@ describe('check-service-worker', () => {
expect(r.out).toContain(message);
});
it('reads the unminified @vite-pwa/astro 2 output and its emitted runtime', () => {
const sw =
'importScripts("./workbox-1234.js");\n' +
'var { r: precacheAndRoute, t: NetworkOnly } = self.workbox.workbox;\n' +
'self.skipWaiting();\n' +
'precacheAndRoute([\n\t{\n\t\turl: "offline",\n\t\trevision: "x"\n\t},\n' +
'\t{ url: "_astro/f.woff2", revision: null },\n\t{ url: "_astro/a.css", revision: null },\n' +
'\t{ url: "_astro/theme.js", revision: null }\n]);\n' +
'cleanupOutdatedCaches();\n' +
'registerRoute(n, new NetworkOnly({ plugins: [new P({ "fallbackURL": "/offline" })] }));';
const r = run(
'check-service-worker.mjs',
project(dist({ 'dist/sw.js': sw, 'dist/workbox-1234.js': '' })),
);
expect(r.code).toBe(0);
expect(r.out).toContain('check-service-worker — OK');
});
it('fails when no registerSW.js was emitted', () => {
const files = dist();
delete files['dist/registerSW.js'];
const r = run('check-service-worker.mjs', project(files));
expect(r.code).toBe(1);
expect(r.out).toContain('dist/registerSW.js does not exist');
});
it('fails when there is no service worker at all', () => {
const r = run('check-service-worker.mjs', project({ 'dist/index.html': HOME }));
expect(r.code).toBe(1);
+15 -10
View File
@@ -93,7 +93,7 @@ export function parseSlugs(value, log = () => {}) {
* object holds no nested braces (docs/04 §2), so `[^}]*` cannot overrun it.
*/
export function patchSecurity(text, security) {
return text.replace(/("security":\s*\{)([^}]*)(\})/, (_, open, body, close) => {
return text.replace(/("security":\s*\{)([^}]*)(})/, (_, open, body, close) => {
const next = body
.replace(/("status":\s*)"[^"]*"/, `$1"${security.status}"`)
.replace(/("evidence":\s*)(?:null|"[^"]*")/, `$1${JSON.stringify(security.evidence)}`)
@@ -242,7 +242,8 @@ function client({ apiKey, fetch, sleep, now, intervalMs, budget }) {
};
}
const why = (vt, e) => (vt.state.quotaHit ? 'daily quota' : e.message);
/** A failed entry's reason — once the daily quota is gone, that is the reason. */
const why = (vt, reason) => (vt.state.quotaHit ? 'daily quota' : reason);
/** Pass 1: submit the queue, keeping half the budget for the reads. */
async function submitAll(vt, queue, outcome) {
@@ -255,11 +256,11 @@ async function submitAll(vt, queue, outcome) {
}
try {
const id = await vt.submit(entry.app.links.download);
if (typeof id !== 'string') throw new Error('no analysis id');
pending.push({ entry, id, polls: 0 });
if (typeof id === 'string') pending.push({ entry, id, polls: 0 });
else outcome(entry, { kind: 'error', reason: why(vt, 'no analysis id') });
} catch (e) {
if (e instanceof AuthError) throw e;
outcome(entry, { kind: 'error', reason: why(vt, e) });
outcome(entry, { kind: 'error', reason: why(vt, e.message) });
}
}
return pending;
@@ -288,15 +289,19 @@ async function readAll(vt, pending, outcome) {
// The URL's id rides along in `meta`; the analysis id ("u-<sha256>-<ts>")
// carries it too, should `meta` ever be missing.
const id = body?.meta?.url_info?.id ?? /^u-([0-9a-f]{64})-\d+$/.exec(item.id)?.[1];
if (typeof id !== 'string' || !/^[0-9a-f]{64}$/.test(id)) throw new Error('no URL id');
const stats = attributes.stats ?? {};
const verdicts = ['harmless', 'undetected', 'malicious', 'suspicious'];
// Every engine timing out is not "no detections" — it is no answer.
if (verdicts.every((k) => !stats[k])) throw new Error('no engine returned a verdict');
outcome(item.entry, { kind: 'scanned', id, stats });
if (typeof id !== 'string' || !/^[0-9a-f]{64}$/.test(id)) {
outcome(item.entry, { kind: 'error', reason: why(vt, 'no URL id') });
} else if (verdicts.every((k) => !stats[k])) {
// Every engine timing out is not "no detections" — it is no answer.
outcome(item.entry, { kind: 'error', reason: why(vt, 'no engine returned a verdict') });
} else {
outcome(item.entry, { kind: 'scanned', id, stats });
}
} catch (e) {
if (e instanceof AuthError) throw e;
outcome(item.entry, { kind: 'error', reason: why(vt, e) });
outcome(item.entry, { kind: 'error', reason: why(vt, e.message) });
}
}
}
+2 -1
View File
@@ -114,11 +114,12 @@ const priceTone = {
/>
{security}
</p>
{/* min-h-6: each category link is a 24px target (WCAG 2.5.8). */}
<p class="flex flex-wrap gap-x-3 gap-y-1 text-badge">
{d.categories.map((c) => (
<a
href={localePath(locale, `/categories/${c.id}`)}
class="text-sh-accent relative z-1 font-medium hover:underline"
class="text-sh-accent relative z-1 inline-flex min-h-6 items-center font-medium hover:underline"
>
{categoryLabels.get(c.id) ?? c.id}
</a>
+2
View File
@@ -20,6 +20,7 @@ const legal = [
['/legal/trademarks', 'footer.legal.trademarks'],
['/legal/third-party', 'footer.legal.thirdParty'],
['/legal/ai-disclosure', 'footer.legal.aiDisclosure'],
['/legal/accessibility', 'footer.legal.accessibility'],
] as const;
// Build date, not request date — this is a static site, so it is the honest
@@ -99,6 +100,7 @@ const built = new Intl.DateTimeFormat(locale === 'vi' ? 'vi-VN' : 'en-GB', {
client:visible
label={t(locale, 'bug.report')}
countLabel={t(locale, 'bug.errorCount')}
newTabLabel={t(locale, 'link.newTab')}
/>
</nav>
</div>
+25 -3
View File
@@ -35,8 +35,12 @@ const nav = [
] as const;
---
<header class="sh-glass sticky top-0 z-30">
<div class="mx-auto flex max-w-[1360px] items-center gap-2 px-4 py-2.5 md:gap-4 md:px-6">
{/* flex-wrap: when the row cannot hold everything — a 320 px screen, 200 %
zoom, wider text spacing, the longer Vietnamese labels — the language and
display controls drop to a second row instead of being pushed off-screen
(WCAG 1.4.10). ShPrefs publishes the resulting height as --sh-header-h. */}
<header class="sh-glass sticky top-0 z-30" data-sh-header>
<div class="mx-auto flex max-w-[1360px] flex-wrap items-center gap-2 px-4 py-2.5 md:gap-4 md:px-6">
<a
href={home}
class="sh-anim group flex items-center gap-2.5 rounded-[var(--radius-btn)] py-1 pr-2"
@@ -71,7 +75,7 @@ const nav = [
>
<ShIcon name="search" class="size-4" motion="pop" />
<span>{t(locale, 'search.label')}</span>
<kbd class="sh-kbd ml-6" aria-hidden="true">
<kbd class="sh-kbd sh-kbd-slash ml-6" aria-hidden="true">
/
</kbd>
</a>
@@ -118,6 +122,11 @@ const nav = [
system: t(locale, 'prefs.motion.system'),
reduce: t(locale, 'prefs.motion.reduce'),
}}
keysLabel={t(locale, 'prefs.keys')}
keys={{
on: t(locale, 'prefs.keys.on'),
off: t(locale, 'prefs.keys.off'),
}}
searchHref={`${apps}#search`}
/>
</div>
@@ -152,6 +161,19 @@ const nav = [
border-end-start-radius: 0;
border-end-end-radius: 0;
}
/* Forced colours drop box-shadow, and with it the only cue left once the
text colour is forced too: underline the current section instead. */
@media (forced-colors: active) {
.sh-nav[aria-current='page'] {
text-decoration: underline 2px;
text-underline-offset: 0.35em;
}
}
/* The hint promises a shortcut; hide it when the visitor turned the
shortcut off in the display menu (theme.js sets data-keys pre-paint). */
:global(:root[data-keys='off']) .sh-kbd-slash {
display: none;
}
.sh-searchlink {
min-height: 2.5rem;
padding: 0 0.5rem 0 0.75rem;
+6 -4
View File
@@ -5,17 +5,19 @@
The sixth and final island (docs/02 §5). A seventh needs a decision-log
entry. -->
<script lang="ts">
import { buildBugUrl } from '../../lib/issueUrl';
import { BUG_FORM_URL, buildBugUrl } from '../../lib/issueUrl';
import { bufferSize, getBuffer } from '../../lib/ringbuffer';
interface Props {
label: string;
/** Shown next to the button when the buffer has caught something. */
countLabel: string;
/** Screen-reader warning that the link opens a new tab (WCAG 3.2.5 advice). */
newTabLabel: string;
}
const { label, countLabel }: Props = $props();
const { label, countLabel, newTabLabel }: Props = $props();
let href = $state('#');
let href = $state(BUG_FORM_URL);
let count = $state(0);
/**
@@ -48,5 +50,5 @@
>
{label}{#if count > 0}<span class="text-badge ml-1 font-mono"
>({countLabel.replaceAll('{n}', String(count))})</span
>{/if}
>{/if}<span class="sr-only">{` ${newTabLabel}`}</span>
</a>
+12 -4
View File
@@ -18,7 +18,10 @@ beforeEach(() => {
history.replaceState(null, '', '/vi/apps?q=gimp');
const target = document.createElement('div');
document.body.appendChild(target);
app = mount(ShBugReport, { target, props: { label: 'Báo lỗi', countLabel: '{n} lỗi' } });
app = mount(ShBugReport, {
target,
props: { label: 'Báo lỗi', countLabel: '{n} lỗi', newTabLabel: '(mở trong thẻ mới)' },
});
flushSync();
link = document.querySelector<HTMLAnchorElement>('[data-testid="sh-bug-report"]')!;
});
@@ -30,10 +33,15 @@ afterEach(async () => {
});
describe('ShBugReport', () => {
it('is an inert link until the visitor reaches for it', () => {
expect(link.getAttribute('href')).toBe('#');
it('points at the bare bug form until the visitor reaches for it', () => {
// Works before (and without) hydration; the prefilled URL comes later.
expect(link.getAttribute('href')).toBe(
'https://github.com/poli0981/softharbor/issues/new?template=bug_report.yml&labels=bug',
);
expect(link.getAttribute('rel')).toBe('noopener');
expect(link.textContent?.trim()).toBe('Báo lỗi');
expect(link.getAttribute('target')).toBe('_blank');
// The new tab is announced, not sprung on screen-reader users.
expect(link.textContent?.trim()).toBe('Báo lỗi (mở trong thẻ mới)');
});
it('prefills the issue form with the page as it is on focus', () => {
+5 -2
View File
@@ -26,6 +26,8 @@
interface Props {
/** Button text AND the dialog's accessible name ("Filters"). */
openLabel: string;
/** Read after the count chip, so the button says "Filters 2 active". */
activeLabel: string;
clearLabel: string;
/** "Show {n} apps" (plural "other") and "Show {n} app" (plural "one"). */
showLabel: string;
@@ -33,7 +35,8 @@
headings: { categories: string; platforms: string; pricing: string };
options: { categories: Option[]; platforms: Option[]; pricing: Option[] };
}
const { openLabel, clearLabel, showLabel, showLabelOne, headings, options }: Props = $props();
const { openLabel, activeLabel, clearLabel, showLabel, showLabelOne, headings, options }: Props =
$props();
let dialog: HTMLDialogElement | undefined = $state();
/** Resolved on mount from <html lang>; SSR renders the "other" form. */
@@ -81,7 +84,7 @@
{#if $activeFilterCount > 0}
<span class="sh-pill bg-sh-accent text-sh-accent-ink border-transparent"
>{$activeFilterCount}</span
>
><span class="sr-only">{` ${activeLabel}`}</span>
{/if}
</button>
+8 -1
View File
@@ -12,6 +12,7 @@ import ShFilterSheet from './ShFilterSheet.svelte';
const PROPS = {
openLabel: 'Filters',
activeLabel: 'active',
clearLabel: 'Clear all',
showLabel: 'Show {n} apps',
showLabelOne: 'Show {n} app',
@@ -71,7 +72,13 @@ describe('ShFilterSheet', () => {
flushSync();
expect(categories.get()).toEqual(new Set(['browser']));
expect(pricing.get()).toEqual(new Set(['free']));
expect(button(/^\s*Filters/).textContent).toContain('2');
// Read as "Filters 2 active", not a bare "Filters 2" (WCAG 4.1.3 / 2.5.3:
// the visible "Filters 2" stays at the start of the name).
expect(
button(/^\s*Filters/)
.textContent?.replace(/\s+/g, ' ')
.trim(),
).toBe('Filters 2 active');
});
it('"Clear all" is only enabled with something to clear, and clears it everywhere', () => {
+14 -1
View File
@@ -87,7 +87,7 @@
{#if showSuggestion}
<div
class="sh-panel fixed inset-x-4 bottom-4 z-40 flex flex-wrap items-center gap-3 p-4 md:left-auto md:max-w-md"
class="sh-lang-suggest sh-panel fixed inset-x-4 bottom-4 z-40 flex flex-wrap items-center gap-3 p-4 md:left-auto md:max-w-md"
lang="vi"
data-testid="sh-lang-suggest"
>
@@ -124,6 +124,19 @@
.sh-lang > a:hover {
background: var(--sh-surface-2);
}
/* The control clips its corners (overflow: hidden), which also clipped the
global ring drawn 2px OUTSIDE the link — keep it inside instead. */
.sh-lang > a:focus-visible {
outline-offset: -3px;
}
/* Forced colours repaint the filled segment as Canvas; keep it marked. */
@media (forced-colors: active) {
.sh-lang > [aria-current='true'] {
forced-color-adjust: none;
background: Highlight;
color: HighlightText;
}
}
/* The endonym is read after the visible code ("VI — Tiếng Việt"), so the
visible text stays part of the accessible name (WCAG 2.5.3). Its leading
space is an expression in the markup: Svelte strips whitespace at the
+78 -2
View File
@@ -1,6 +1,7 @@
<!-- SPDX-License-Identifier: GPL-3.0-only
Copyright (C) 2026 poli0981 (SkullMute)
Display preferences (v1.1) — theme, scrollbar and motion in one menu.
Display preferences (v1.1) — theme, scrollbar, motion and (v1.4) the "/"
shortcut in one menu.
Replaces ShThemeToggle, so the island budget stays at six (docs/02 §5). -->
<script lang="ts">
import { onMount } from 'svelte';
@@ -14,12 +15,17 @@
type ThemeChoice,
} from '../../lib/theme';
import {
applyKeys,
applyMotion,
applyScrollbar,
readKeys,
readMotion,
readScrollbar,
shortcutsEnabled,
writeKeys,
writeMotion,
writeScrollbar,
type KeysChoice,
type MotionChoice,
type ScrollbarChoice,
} from '../../lib/prefs';
@@ -33,6 +39,9 @@
scrollbars: Record<ScrollbarChoice, string>;
motionLabel: string;
motions: Record<MotionChoice, string>;
/** The "/" shortcut on/off group (WCAG 2.1.4). */
keysLabel: string;
keys: Record<KeysChoice, string>;
/** Localized /apps#search — where `/` goes from pages without a search box. */
searchHref: string;
}
@@ -44,6 +53,8 @@
scrollbars,
motionLabel,
motions,
keysLabel,
keys: keysText,
searchHref,
}: Props = $props();
@@ -54,6 +65,7 @@
let theme = $state<ThemeChoice>('system');
let scrollbar = $state<ScrollbarChoice>('auto');
let motion = $state<MotionChoice>('system');
let keys = $state<KeysChoice>('on');
const root = (): HTMLElement => document.documentElement;
@@ -75,13 +87,22 @@
applyMotion(next, root());
}
function setKeys(next: KeysChoice): void {
keys = next;
writeKeys(next);
applyKeys(next, root());
}
/**
* `/` jumps to search from any page (docs/06 §9). On /apps ShSearch owns the
* key and focuses its box; everywhere else the header hint used to promise a
* shortcut that did nothing.
* shortcut that did nothing. A single printable key must be possible to
* turn off (WCAG 2.1.4) — speech-input users can trigger it by accident —
* hence the "Keyboard shortcut: Off" choice in this menu.
*/
function onGlobalKeydown(e: KeyboardEvent): void {
if (e.key !== '/' || e.metaKey || e.ctrlKey || e.altKey || e.defaultPrevented) return;
if (!shortcutsEnabled()) return;
if (document.getElementById('sh-search')) return;
const t = e.target as HTMLElement | null;
if (t && (t.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName))) return;
@@ -94,6 +115,7 @@
theme = readChoice();
scrollbar = readScrollbar();
motion = readMotion();
keys = readKeys();
// While in system mode the OS can flip underneath us — follow it live
// (docs/05 §A8). Once the visitor picks explicitly, stop following it.
@@ -106,11 +128,27 @@
if (e.key === 'sh:theme') setTheme(readChoice());
else if (e.key === 'sh:scrollbar') setScrollbar(readScrollbar());
else if (e.key === 'sh:motion') setMotion(readMotion());
else if (e.key === 'sh:keys') setKeys(readKeys());
};
mq.addEventListener('change', onSystemChange);
window.addEventListener('storage', onStorage);
document.addEventListener('keydown', onGlobalKeydown);
// The sticky header's real height, for global.css's scroll-padding-top
// (WCAG 2.4.11): it wraps to two rows on narrow screens and grows with
// zoom and text spacing. CSSOM writes are not style attributes, so the
// CSP (no 'unsafe-inline') allows them. This island lives in the header
// on every page, which is why it, not a seventh island, does this.
const header = document.querySelector<HTMLElement>('[data-sh-header]');
const publish = () => {
if (header) root().style.setProperty('--sh-header-h', `${header.offsetHeight}px`);
};
const headerWatch = typeof ResizeObserver === 'function' ? new ResizeObserver(publish) : null;
if (header) headerWatch?.observe(header);
publish();
return () => {
headerWatch?.disconnect();
mq.removeEventListener('change', onSystemChange);
window.removeEventListener('storage', onStorage);
document.removeEventListener('keydown', onGlobalKeydown);
@@ -120,6 +158,7 @@
const themeChoices: ThemeChoice[] = ['system', 'light', 'dark'];
const scrollbarChoices: ScrollbarChoice[] = ['auto', 'thin', 'hidden'];
const motionChoices: MotionChoice[] = ['system', 'reduce'];
const keysChoices: KeysChoice[] = ['on', 'off'];
/** For the button's tooltip: what "system" currently resolves to. */
const resolvedTheme = $derived(
@@ -205,6 +244,24 @@
{/each}
</div>
</fieldset>
<fieldset>
<legend>{keysLabel}</legend>
<div class="sh-seg">
{#each keysChoices as value (value)}
<label>
<input
type="radio"
name="sh-keys"
{value}
checked={keys === value}
onchange={() => setKeys(value)}
/>
<span>{keysText[value]}</span>
</label>
{/each}
</div>
</fieldset>
</div>
<style>
@@ -291,6 +348,25 @@
outline: 2px solid var(--sh-accent);
outline-offset: -4px;
}
/* Arrow keys move focus AND the choice together, so the focused radio is
almost always the checked one — whose fill is the accent. An accent ring
on an accent fill was invisible (WCAG 2.4.7); draw it in the fill's ink. */
.sh-seg input:checked:focus-visible + span {
outline-color: var(--sh-accent-ink);
}
/* Forced colours (Windows contrast themes) repaint backgrounds as Canvas,
which erased the checked fill — the choice must stay visible. */
@media (forced-colors: active) {
.sh-seg input:checked + span {
forced-color-adjust: none;
background: Highlight;
color: HighlightText;
}
.sh-seg input:checked:focus-visible + span {
outline-color: HighlightText;
}
}
@media (width < 40rem) {
.sh-prefs-panel {
+33 -3
View File
@@ -18,6 +18,8 @@ const PROPS = {
scrollbars: { auto: 'Default', thin: 'Thin', hidden: 'Hidden' },
motionLabel: 'Motion',
motions: { system: 'System', reduce: 'Reduce' },
keysLabel: 'Keyboard shortcut “/”',
keys: { on: 'On', off: 'Off' },
searchHref: '/apps#search',
};
@@ -37,8 +39,12 @@ function stubStorage(seed: Record<string, string> = {}) {
let target: HTMLElement;
let app: Record<string, unknown> | undefined;
// Matched on the `value` PROPERTY, not the attribute: "on" is a radio's default
// value, so Svelte never writes value="on" for the shortcut's On choice.
const radio = (name: string, value: string) =>
document.querySelector<HTMLInputElement>(`input[name="${name}"][value="${value}"]`)!;
[...document.querySelectorAll<HTMLInputElement>(`input[name="${name}"]`)].find(
(i) => i.value === value,
)!;
function choose(name: string, value: string) {
const input = radio(name, value);
@@ -49,7 +55,7 @@ function choose(name: string, value: string) {
beforeEach(() => {
document.body.innerHTML = '';
for (const a of ['data-theme', 'data-scrollbar', 'data-motion']) {
for (const a of ['data-theme', 'data-scrollbar', 'data-motion', 'data-keys']) {
document.documentElement.removeAttribute(a);
}
target = document.createElement('div');
@@ -74,12 +80,18 @@ describe('ShPrefs', () => {
});
it('reflects stored choices once mounted', () => {
stubStorage({ 'sh:theme': 'dark', 'sh:scrollbar': 'thin', 'sh:motion': 'reduce' });
stubStorage({
'sh:theme': 'dark',
'sh:scrollbar': 'thin',
'sh:motion': 'reduce',
'sh:keys': 'off',
});
app = mount(ShPrefs, { target, props: PROPS });
flushSync();
expect(radio('sh-theme', 'dark').checked).toBe(true);
expect(radio('sh-scrollbar', 'thin').checked).toBe(true);
expect(radio('sh-motion', 'reduce').checked).toBe(true);
expect(radio('sh-keys', 'off').checked).toBe(true);
});
it('applies and persists each choice immediately', () => {
@@ -99,8 +111,26 @@ describe('ShPrefs', () => {
expect(document.documentElement.dataset['motion']).toBe('reduce');
expect(store.get('sh:motion')).toBe('reduce');
choose('sh-keys', 'off');
expect(document.documentElement.dataset['keys']).toBe('off');
expect(store.get('sh:keys')).toBe('off');
choose('sh-scrollbar', 'auto');
expect(document.documentElement.dataset['scrollbar']).toBeUndefined();
expect(store.has('sh:scrollbar')).toBe(false);
choose('sh-keys', 'on');
expect(document.documentElement.dataset['keys']).toBeUndefined();
expect(store.has('sh:keys')).toBe(false);
});
it('leaves "/" alone while the shortcut is turned off (WCAG 2.1.4)', () => {
stubStorage({ 'sh:keys': 'off' });
app = mount(ShPrefs, { target, props: PROPS });
flushSync();
document.documentElement.dataset['keys'] = 'off';
const e = new KeyboardEvent('keydown', { key: '/', bubbles: true, cancelable: true });
document.body.dispatchEvent(e);
expect(e.defaultPrevented).toBe(false);
});
});
+23 -4
View File
@@ -5,12 +5,16 @@
import { onMount } from 'svelte';
import IconSearch from '~icons/lucide/search';
import { mountGrid, type GridHandle } from '../../lib/grid';
import { shortcutsEnabled } from '../../lib/prefs';
import { loadSearchIndex } from '../../lib/searchIndex';
import { categories, platforms, pricing, query, sort, type SortOrder } from '../../lib/stores';
import { parseViewState, serializeViewState } from '../../lib/urlstate';
interface Props {
/** Mentions the "/" shortcut… */
placeholder: string;
/** …and this one does not: shown while the shortcut is turned off. */
placeholderPlain: string;
label: string;
loadingLabel: string;
/** Shown when the index cannot be loaded; facet filters keep working. */
@@ -22,6 +26,7 @@
}
const {
placeholder,
placeholderPlain,
label,
loadingLabel,
errorLabel,
@@ -37,6 +42,8 @@
const URL_DEBOUNCE_MS = 300;
let value = $state('');
// SSR shows the shortcut hint (the default); corrected on mount.
let keysOn = $state(true);
let loading = $state(false);
let failed = $state(false);
let input: HTMLInputElement | undefined = $state();
@@ -108,6 +115,8 @@
/** `/` focuses search from anywhere on /apps (docs/06 §9). */
function onGlobalKeydown(e: KeyboardEvent): void {
if (e.key !== '/' || e.metaKey || e.ctrlKey || e.altKey) return;
// Turned off in the display menu (WCAG 2.1.4).
if (!shortcutsEnabled()) return;
// Never steal the key from a field the user is typing in...
const t = e.target as HTMLElement | null;
if (t && (t.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName))) return;
@@ -174,7 +183,15 @@
];
document.addEventListener('keydown', onGlobalKeydown);
// The display menu flips <html data-keys> on this page (or theme.js on a
// later one); keep the placeholder's "( / )" hint honest either way.
keysOn = shortcutsEnabled();
const keysWatch = new MutationObserver(() => (keysOn = shortcutsEnabled()));
keysWatch.observe(document.documentElement, { attributeFilter: ['data-keys'] });
return () => {
keysWatch.disconnect();
clearTimeout(searchTimer);
clearTimeout(urlTimer);
for (const off of unsubs) off();
@@ -194,7 +211,7 @@
<input
id="sh-search"
bind:this={input}
{placeholder}
placeholder={keysOn ? placeholder : placeholderPlain}
type="search"
autocomplete="off"
spellcheck="false"
@@ -229,9 +246,11 @@
</select>
</div>
{#if failed}
<p id="sh-search-status" class="text-sh-muted text-small mt-2" role="status">{errorLabel}</p>
{/if}
<!-- The live region is always in the DOM and only its text changes: a region
inserted together with its message is often not announced (WCAG 4.1.3). -->
<p id="sh-search-status" class={['text-sh-muted text-small', failed && 'mt-2']} role="status">
{failed ? errorLabel : ''}
</p>
<style>
.sr-only {
+29 -1
View File
@@ -18,7 +18,8 @@ vi.mock('../../lib/grid', () => ({ mountGrid: vi.fn() }));
vi.mock('../../lib/searchIndex', () => ({ loadSearchIndex: vi.fn() }));
const PROPS = {
placeholder: 'Search apps',
placeholder: 'Search apps ( / )',
placeholderPlain: 'Search apps',
label: 'Search',
loadingLabel: 'Loading…',
errorLabel: 'Search is unavailable right now.',
@@ -163,6 +164,33 @@ describe('ShSearch', () => {
expect(document.activeElement).not.toBe(input);
});
it('stands down, and drops the "( / )" hint, while the shortcut is off', async () => {
const input = start();
expect(input.placeholder).toBe(PROPS.placeholder);
document.documentElement.dataset['keys'] = 'off';
await vi.advanceTimersByTimeAsync(0); // MutationObserver delivery
flushSync();
expect(input.placeholder).toBe(PROPS.placeholderPlain);
key(document, '/');
expect(document.activeElement).not.toBe(input);
delete document.documentElement.dataset['keys'];
await vi.advanceTimersByTimeAsync(0);
flushSync();
expect(input.placeholder).toBe(PROPS.placeholder);
key(document, '/');
expect(document.activeElement).toBe(input);
});
it('keeps its status live region in the page before anything goes wrong', () => {
const input = start();
const status = document.getElementById('sh-search-status');
expect(status?.getAttribute('role')).toBe('status');
expect(status?.textContent).toBe('');
expect(input.hasAttribute('aria-describedby')).toBe(false);
});
it('Escape on an empty box gives focus back to the page', () => {
const input = start();
input.focus();
+269
View File
@@ -0,0 +1,269 @@
---
// SPDX-License-Identifier: GPL-3.0-only
// Copyright (C) 2026 poli0981 (SkullMute)
// docs/14 §3g — Accessibility Statement (D33). The visitor-facing twin of
// ACCESSIBILITY.md in the repository: keep the target, the test record, the
// known limitations and the response times identical in both. Section ids are
// link targets (#report from the footer of ACCESSIBILITY.md and the issue
// form).
import { CONTACTS } from '../../lib/contacts';
import type { Locale } from '../../i18n';
interface Props {
locale: Locale;
}
const { locale } = Astro.props;
const MAIL = CONTACTS.accessibility;
const FORM = 'https://github.com/poli0981/softharbor/issues/new?template=accessibility.yml';
const GUIDE = 'https://github.com/poli0981/softharbor/blob/main/ACCESSIBILITY.md';
const WCAG = 'https://www.w3.org/TR/WCAG22/';
---
{locale === 'en' ? (
<>
<p>
SoftHarbor should work for everyone who wants to find software — including people who use only
a keyboard, a screen reader, magnification, voice control or a high-contrast theme. This page
says what we aim for, what the site already does, what we know is not right yet, and how to
tell us about anything that gets in your way.
</p>
<h2 id="target">What we aim for</h2>
<p>
Our target is the <a href={WCAG}>Web Content Accessibility Guidelines (WCAG) 2.2</a> at level
AA. It is a goal that guides the work, not a claim that every page meets it: no independent
audit has been done.
</p>
<h2 id="features">What the site does</h2>
<ul>
<li>
Everything works with a keyboard alone. The first stop on every page is a “Skip to content”
link, and the item you are on is always outlined.
</li>
<li>
Pages are built from real headings, lists and landmarks, and say which language they are in,
so screen readers pronounce English and Vietnamese correctly.
</li>
<li>
Text and controls keep their contrast in both the light and the dark theme, checked by an
automated test: 7:1 for body text, 4.5:1 for other text, 3:1 for control edges.
</li>
<li>
Nothing relies on colour alone: a security status has its own icon shape, and the section
you are in is underlined.
</li>
<li>
The display settings (the sliders button at the top right) offer a light or dark theme,
reduced motion, a thinner or hidden scrollbar, and a switch that turns off the “/” search
shortcut. The site also follows your system’s reduced-motion setting and its high-contrast
colours.
</li>
<li>
Text can be zoomed to 200 %, and the layout reflows down to a narrow phone screen without
sideways scrolling.
</li>
<li>When you search or filter, the number of results is announced to screen readers.</li>
<li>There are no pictures of text. App logos are decoration; the app’s name is text.</li>
</ul>
<h2 id="tested">How we check it</h2>
<ul>
<li>
<strong>On every change:</strong> automated accessibility checks (axe, using its WCAG 2.0 to
2.2 A and AA rules) on the main pages in both themes, on a desktop and a phone-sized screen,
plus tests for keyboard use, reflow, high-contrast colours and contrast.
</li>
<li>
<strong>By hand, 9 November 2026:</strong> keyboard only, and the Narrator screen reader, on
Windows 11 with Chrome, Brave and Firefox.
</li>
<li>
<strong>Not tested yet:</strong> NVDA, JAWS, VoiceOver (macOS and iOS), TalkBack and Safari.
Reports from these are especially welcome.
</li>
</ul>
<h2 id="limitations">Known limitations</h2>
<ul>
<li>
After you accept the legal notice, a short bot check from Cloudflare (Turnstile) runs. It is
a third-party widget we cannot fully control. If it cannot finish, you are let in anyway —
after 10 seconds, or 2 minutes if it asked for a click.
</li>
<li>
Every listed app links to its developer’s own website and installer. How accessible those
are is outside our control; tell the developer, and tell us if a listing should say so.
</li>
<li>App cards shorten the summary to two lines. The full text is on each app’s page.</li>
<li>The Vietnamese legal pages are translations; the English text is the one that counts.</li>
</ul>
<h2 id="report">Report a barrier</h2>
<p>
Email <a href={`mailto:${MAIL}`}>{MAIL}</a>, or <a href={FORM}>open an accessibility issue</a>{' '}
on GitHub (that needs a GitHub account; email does not). If you can, say which page you were
on, what you were trying to do, what happened, and which device, browser and assistive
technology you use. Screenshots or recordings are welcome but never required, and you never
need to tell us about a disability. Write in English or Vietnamese.
</p>
<h2 id="response">What happens next</h2>
<p>
SoftHarbor is run by one person, so these are the promises that can be kept. We reply within 7
days and rate how much the barrier gets in your way:
</p>
<ul>
<li>
<strong>Critical</strong> — stops you finding, reading or opening an app’s links: fixed
within 30 days;
</li>
<li>
<strong>Serious</strong> — hard to get past, though there is a way around: within 60 days;
</li>
<li>
<strong>Moderate</strong> or <strong>minor</strong> — an annoyance or inconsistency: within
90 days.
</li>
</ul>
<p>
If a date slips, we say why, offer a workaround, and give a new date. We may ask you to
confirm the fix before the report is closed.
</p>
<h2 id="contributors">For contributors</h2>
<p>
How we keep changes accessible — the checks a pull request must pass and what to test by hand
— is in <a href={GUIDE}>ACCESSIBILITY.md</a> in the source repository.
</p>
</>
) : (
<>
<p>
SoftHarbor muốn ai cần tìm phần mềm cũng dùng được — kể cả người chỉ dùng bàn phím, trình đọc
màn hình, phóng to màn hình, điều khiển bằng giọng nói hay giao diện tương phản cao. Trang này
nói rõ mục tiêu của chúng tôi, những gì trang đã làm được, những gì còn chưa ổn, và cách báo
cho chúng tôi khi bạn gặp trở ngại.
</p>
<h2 id="target">Mục tiêu</h2>
<p>
Mục tiêu của chúng tôi là{' '}
<a href={WCAG} lang="en">
Web Content Accessibility Guidelines (WCAG) 2.2
</a>{' '}
ở mức AA. Đây là đích hướng tới cho công việc, không phải lời khẳng định mọi trang đều đã đạt:
chưa có đánh giá độc lập nào.
</p>
<h2 id="features">Trang đã làm được gì</h2>
<ul>
<li>
Mọi thứ dùng được chỉ với bàn phím. Điểm dừng đầu tiên trên mỗi trang là liên kết “Tới nội
dung chính”, và mục đang chọn luôn có viền bao quanh.
</li>
<li>
Trang được dựng bằng tiêu đề, danh sách và vùng mốc thật, đồng thời khai báo ngôn ngữ, để
trình đọc màn hình phát âm đúng tiếng Anh và tiếng Việt.
</li>
<li>
Chữ và nút giữ độ tương phản ở cả giao diện sáng lẫn tối, được kiểm tra bằng bài test tự
động: 7:1 cho chữ nội dung, 4.5:1 cho chữ khác, 3:1 cho viền điều khiển.
</li>
<li>
Không có gì chỉ dựa vào màu sắc: trạng thái bảo mật có hình biểu tượng riêng, và mục bạn
đang xem được gạch chân.
</li>
<li>
Phần cài đặt hiển thị (nút thanh trượt ở góc trên bên phải) có giao diện sáng hoặc tối, giảm
chuyển động, thanh cuộn mảnh hoặc ẩn, và công tắc tắt phím tắt tìm kiếm “/”. Trang cũng làm
theo thiết lập giảm chuyển động và màu tương phản cao của hệ điều hành.
</li>
<li>
Chữ phóng to được đến 200 %, và bố cục tự sắp lại đến cỡ màn hình điện thoại hẹp mà không
phải cuộn ngang.
</li>
<li>Khi bạn tìm kiếm hay lọc, số kết quả được đọc cho trình đọc màn hình.</li>
<li>Không có hình ảnh chứa chữ. Logo ứng dụng chỉ để trang trí; tên ứng dụng luôn là chữ.</li>
</ul>
<h2 id="tested">Chúng tôi kiểm tra thế nào</h2>
<ul>
<li>
<strong>Mỗi lần thay đổi:</strong> kiểm tra trợ năng tự động (axe, theo các quy tắc WCAG 2.0
đến 2.2 mức A và AA) trên các trang chính ở cả hai giao diện, trên màn hình máy tính và cỡ
điện thoại, cùng các bài test dùng bàn phím, tự sắp lại bố cục, màu tương phản cao và độ
tương phản.
</li>
<li>
<strong>Kiểm tra tay, ngày 9/11/2026:</strong> chỉ dùng bàn phím, và trình đọc màn hình
Narrator, trên Windows 11 với Chrome, Brave và Firefox.
</li>
<li>
<strong>Chưa kiểm tra:</strong> NVDA, JAWS, VoiceOver (macOS và iOS), TalkBack và Safari.
Chúng tôi rất mong nhận phản hồi từ những công cụ này.
</li>
</ul>
<h2 id="limitations">Hạn chế đã biết</h2>
<ul>
<li>
Sau khi bạn chấp nhận thông báo pháp lý, một bước kiểm tra bot ngắn của Cloudflare
(Turnstile) sẽ chạy. Đây là tiện ích của bên thứ ba mà chúng tôi không kiểm soát được hoàn
toàn. Nếu nó không chạy xong, bạn vẫn được vào — sau 10 giây, hoặc 2 phút nếu nó yêu cầu
bấm.
</li>
<li>
Mỗi ứng dụng trong danh mục dẫn đến trang web và bộ cài của chính nhà phát triển. Mức độ trợ
năng ở đó nằm ngoài tầm kiểm soát của chúng tôi; hãy báo cho nhà phát triển, và báo cho
chúng tôi nếu mục giới thiệu nên ghi chú điều đó.
</li>
<li>
Thẻ ứng dụng rút gọn phần tóm tắt còn hai dòng. Toàn văn có ở trang riêng của từng ứng dụng.
</li>
<li>Các trang pháp lý tiếng Việt là bản dịch; bản tiếng Anh là bản có giá trị.</li>
</ul>
<h2 id="report">Báo một trở ngại</h2>
<p>
Gửi email đến <a href={`mailto:${MAIL}`}>{MAIL}</a>, hoặc{' '}
<a href={FORM}>mở một issue về trợ năng</a> trên GitHub (cần tài khoản GitHub; email thì không
cần). Nếu được, hãy cho biết bạn đang ở trang nào, định làm gì, chuyện gì đã xảy ra, và bạn
dùng thiết bị, trình duyệt, công nghệ hỗ trợ nào. Ảnh chụp hay video màn hình luôn được hoan
nghênh nhưng không bắt buộc, và bạn không bao giờ cần cho chúng tôi biết về tình trạng khuyết
tật. Bạn có thể viết bằng tiếng Việt hoặc tiếng Anh.
</p>
<h2 id="response">Sau khi bạn báo</h2>
<p>
SoftHarbor do một người vận hành, nên đây là những cam kết giữ được. Chúng tôi trả lời trong
vòng 7 ngày và đánh giá mức độ trở ngại:
</p>
<ul>
<li>
<strong>Nghiêm trọng</strong> — khiến bạn không tìm, đọc hay mở được liên kết của ứng dụng:
sửa trong 30 ngày;
</li>
<li>
<strong>Nặng</strong> — khó vượt qua, dù vẫn có cách khác: trong 60 ngày;
</li>
<li>
<strong>Vừa</strong> hoặc <strong>nhẹ</strong> — gây phiền hoặc thiếu nhất quán: trong 90
ngày.
</li>
</ul>
<p>
Nếu trễ hạn, chúng tôi sẽ nói rõ lý do, đưa ra cách tạm thời, và hẹn ngày mới. Chúng tôi có
thể nhờ bạn xác nhận bản sửa trước khi đóng báo cáo.
</p>
<h2 id="contributors">Dành cho người đóng góp</h2>
<p>
Cách chúng tôi giữ cho mọi thay đổi đều dễ tiếp cận — các bước kiểm tra một pull request phải
qua và những gì cần thử bằng tay — nằm trong{' '}
<a href={GUIDE} lang="en">
ACCESSIBILITY.md
</a>{' '}
ở kho mã nguồn.
</p>
</>
)}
+12 -5
View File
@@ -68,18 +68,25 @@ const rows = [
<p>
{en
? 'Claude models developed by Anthropic, used through Claude Code — Anthropic’s command-line coding tool: Claude Opus 5 (model identifier claude-opus-5) for the site and catalogue through v1.0, and Claude Opus 5.5 (claude-opus-5-5) for the v1.1 and v1.2 work of October 2026. Earlier work on the project used Claude models through the same tool. No other AI system contributed to this site.'
: 'Các mô hình Claude do Anthropic phát triển, sử dụng qua Claude Code — công cụ lập trình dòng lệnh của Anthropic: Claude Opus 5 (mã định danh mô hình claude-opus-5) cho trang web và danh mục đến hết v1.0, và Claude Opus 5.5 (claude-opus-5-5) cho phần việc v1.1 và v1.2 vào tháng 10/2026. Các giai đoạn trước của dự án cũng dùng mô hình Claude qua chính công cụ này. Không có hệ thống AI nào khác tham gia vào trang web này.'}
? 'Claude models developed by Anthropic, used through Claude Code — Anthropic’s command-line coding tool: Claude Opus 5 (model identifier claude-opus-5) for the site and catalogue through v1.0, and Claude Opus 5.5 (claude-opus-5-5) for the v1.1, v1.2 and v1.3 work of October 2026 and the v1.4 work of November 2026. Earlier work on the project used Claude models through the same tool. No other AI system contributed to this site.'
: 'Các mô hình Claude do Anthropic phát triển, sử dụng qua Claude Code — công cụ lập trình dòng lệnh của Anthropic: Claude Opus 5 (mã định danh mô hình claude-opus-5) cho trang web và danh mục đến hết v1.0, và Claude Opus 5.5 (claude-opus-5-5) cho phần việc v1.1, v1.2 và v1.3 vào tháng 10/2026 và v1.4 vào tháng 11/2026. Các giai đoạn trước của dự án cũng dùng mô hình Claude qua chính công cụ này. Không có hệ thống AI nào khác tham gia vào trang web này.'}
</p>
<h2>{en ? 'Where it was used' : 'Đã dùng ở đâu'}</h2>
<div class="-mx-4 overflow-x-auto px-4">
<div class="-mx-4 overflow-x-auto px-4" role="region" aria-labelledby="ai-use-caption" tabindex="0">
<table class="w-full border-collapse text-small">
<caption id="ai-use-caption" class="sr-only">
{en ? 'Where AI was used, and how' : 'AI đã được dùng ở đâu và như thế nào'}
</caption>
<thead>
<tr class="border-sh-border border-b-2 text-left">
<th class="w-1/4 py-2 pr-4">{en ? 'Area' : 'Hạng mục'}</th>
<th class="py-2">{en ? 'How' : 'Cách làm'}</th>
<th scope="col" class="w-1/4 py-2 pr-4">
{en ? 'Area' : 'Hạng mục'}
</th>
<th scope="col" class="py-2">
{en ? 'How' : 'Cách làm'}
</th>
</tr>
</thead>
<tbody>
+34 -9
View File
@@ -2,9 +2,10 @@
// SPDX-License-Identifier: GPL-3.0-only
// Copyright (C) 2026 poli0981 (SkullMute)
// docs/14 §3b. The storage inventory here must stay in step with docs/09 §8,
// and the two Cloudflare sections with src/scripts/analytics.js and
// src/lib/turnstile.ts + worker/verify.ts. Section ids are link targets:
// the gate's step 2 links to #turnstile.
// the two Cloudflare sections with src/scripts/analytics.js and
// src/lib/turnstile.ts + worker/verify.ts, and #rate-limit with
// worker/limit.ts. Section ids are link targets: the gate's step 2 links to
// #turnstile.
import { CONTACTS } from '../../lib/contacts';
import type { Locale } from '../../i18n';
interface Props {
@@ -20,7 +21,8 @@ const PRIVACY = CONTACTS.privacy;
<strong>Short version:</strong> no accounts, no ads, no cookies, and nothing sold or shared
for advertising. Two Cloudflare services see limited data — visitor statistics that skip you
if your browser sends Global Privacy Control, and a bot check that runs only after you accept
these documents. Your settings stay in your browser.
these documents. To keep floods off the site, requests are counted per network address for a
few seconds, then forgotten. Your settings stay in your browser.
</p>
<h2 id="who">Who runs this site</h2>
@@ -46,8 +48,8 @@ const PRIVACY = CONTACTS.privacy;
<code>sh:lang</code> — that you answered the language suggestion;
</li>
<li>
<code>sh:theme</code>, <code>sh:scrollbar</code>, <code>sh:motion</code> — your display
choices.
<code>sh:theme</code>, <code>sh:scrollbar</code>, <code>sh:motion</code>,{' '}
<code>sh:keys</code> — your display choices.
</li>
</ul>
<p>
@@ -91,6 +93,17 @@ const PRIVACY = CONTACTS.privacy;
service.
</p>
<h2 id="rate-limit">Rate limiting</h2>
<p>
So that one runaway script cannot crowd everyone else out, this site's own code counts the
requests for its pages, feeds and data per IP address (per /64 network for IPv6) over a window
of a few seconds. A network that sends far more than anyone reading the site would gets a "Too
many requests" page until the window passes. The counts are held by Cloudflare's rate limiter
for that window only; we keep no record of addresses — when a request is refused, the log says
only that it happened. We do this out of a legitimate interest in keeping a public service
available to everyone.
</p>
<h2 id="hosting">Hosting</h2>
<p>
Cloudflare serves the site and the endpoint above. As a network provider it processes
@@ -139,7 +152,8 @@ const PRIVACY = CONTACTS.privacy;
<strong>Tóm tắt:</strong> không tài khoản, không quảng cáo, không cookie, và không bán hay
chia sẻ dữ liệu cho quảng cáo. Hai dịch vụ của Cloudflare thấy một ít dữ liệu — thống kê truy
cập sẽ bỏ qua bạn nếu trình duyệt gửi tín hiệu Global Privacy Control, và một bước kiểm tra
bot chỉ chạy sau khi bạn chấp nhận các văn bản này. Các tuỳ chọn của bạn nằm lại trong trình
bot chỉ chạy sau khi bạn chấp nhận các văn bản này. Để chặn lưu lượng dồn dập, số yêu cầu được
đếm theo địa chỉ mạng trong vài giây rồi bỏ đi. Các tuỳ chọn của bạn nằm lại trong trình
duyệt.
</p>
@@ -166,8 +180,8 @@ const PRIVACY = CONTACTS.privacy;
<code>sh:lang</code> — việc bạn đã trả lời gợi ý ngôn ngữ;
</li>
<li>
<code>sh:theme</code>, <code>sh:scrollbar</code>, <code>sh:motion</code> — các tuỳ chọn hiển
thị của bạn.
<code>sh:theme</code>, <code>sh:scrollbar</code>, <code>sh:motion</code>,{' '}
<code>sh:keys</code> — các tuỳ chọn hiển thị của bạn.
</li>
</ul>
<p>
@@ -212,6 +226,17 @@ const PRIVACY = CONTACTS.privacy;
lợi ích chính đáng: giữ cho một dịch vụ công cộng không bị lạm dụng tự động.
</p>
<h2 id="rate-limit">Giới hạn tần suất truy cập</h2>
<p>
Để một đoạn mã chạy mất kiểm soát không chiếm hết chỗ của mọi người khác, mã của chính trang
này đếm số yêu cầu tới các trang, nguồn tin (feed) và dữ liệu theo từng địa chỉ IP (theo dải
/64 với IPv6) trong một khoảng vài giây. Mạng nào gửi nhiều hơn hẳn mức của một người đọc bình
thường sẽ thấy trang "Quá nhiều yêu cầu" cho tới khi hết khoảng đó. Số đếm chỉ được bộ giới
hạn của Cloudflare giữ trong đúng khoảng thời gian ấy; chúng tôi không lưu lại địa chỉ nào —
khi một yêu cầu bị từ chối, nhật ký chỉ ghi rằng việc đó đã xảy ra. Chúng tôi làm vậy vì lợi
ích chính đáng: giữ cho một dịch vụ công cộng luôn dùng được với mọi người.
</p>
<h2 id="hosting">Lưu trữ và phân phối</h2>
<p>
Cloudflare phục vụ trang web và điểm xác minh nói trên. Với vai trò nhà cung cấp mạng,
+38 -8
View File
@@ -71,13 +71,29 @@ const packages = productionLicenses();
: 'SoftHarbor được xây dựng trên phần mềm mã nguồn mở. Các thành phần và giấy phép tương ứng:'}
</p>
<div class="-mx-4 overflow-x-auto px-4">
{/* A labelled, focusable region: on a narrow screen the table scrolls
sideways, and keyboard users need a way to reach that scroll. */}
<div
class="-mx-4 overflow-x-auto px-4"
role="region"
aria-labelledby="components-caption"
tabindex="0"
>
<table class="w-full border-collapse text-small">
<caption id="components-caption" class="sr-only">
{en ? 'Components and their licenses' : 'Các thành phần và giấy phép'}
</caption>
<thead>
<tr class="border-sh-border border-b-2 text-left">
<th class="py-2 pr-4">{en ? 'Component' : 'Thành phần'}</th>
<th class="py-2 pr-4">{en ? 'License' : 'Giấy phép'}</th>
<th class="py-2">{en ? 'Note' : 'Ghi chú'}</th>
<th scope="col" class="py-2 pr-4">
{en ? 'Component' : 'Thành phần'}
</th>
<th scope="col" class="py-2 pr-4">
{en ? 'License' : 'Giấy phép'}
</th>
<th scope="col" class="py-2">
{en ? 'Note' : 'Ghi chú'}
</th>
</tr>
</thead>
<tbody>
@@ -114,13 +130,27 @@ const packages = productionLicenses();
? 'Generated when the site is built, from package.json and the installed packages, so it always matches the code you are looking at.'
: 'Được tạo tự động mỗi lần dựng trang, từ package.json và các gói đã cài, nên luôn khớp với mã nguồn bạn đang xem.'}
</p>
<div class="-mx-4 overflow-x-auto px-4">
<div
class="-mx-4 overflow-x-auto px-4"
role="region"
aria-labelledby="packages-caption"
tabindex="0"
>
<table class="w-full border-collapse text-small">
<caption id="packages-caption" class="sr-only">
{en ? 'Packages in this build and their licenses' : 'Các gói trong bản dựng và giấy phép'}
</caption>
<thead>
<tr class="border-sh-border border-b-2 text-left">
<th class="py-2 pr-4">{en ? 'Package' : 'Gói'}</th>
<th class="py-2 pr-4">{en ? 'Version' : 'Phiên bản'}</th>
<th class="py-2">{en ? 'License' : 'Giấy phép'}</th>
<th scope="col" class="py-2 pr-4">
{en ? 'Package' : 'Gói'}
</th>
<th scope="col" class="py-2 pr-4">
{en ? 'Version' : 'Phiên bản'}
</th>
<th scope="col" class="py-2">
{en ? 'License' : 'Giấy phép'}
</th>
</tr>
</thead>
<tbody>
+2
View File
@@ -67,6 +67,7 @@ const facetOptions = {
<ShSearch
client:idle
placeholder={t(locale, 'search.placeholder')}
placeholderPlain={t(locale, 'search.placeholder.plain')}
label={t(locale, 'search.label')}
loadingLabel={t(locale, 'search.loading')}
errorLabel={t(locale, 'search.error')}
@@ -79,6 +80,7 @@ const facetOptions = {
<ShFilterSheet
client:idle
openLabel={t(locale, 'filters.open')}
activeLabel={t(locale, 'filters.active')}
clearLabel={t(locale, 'filters.clear')}
showLabel={t(locale, 'filters.show')}
showLabelOne={t(locale, 'filters.show.one')}
+13 -2
View File
@@ -20,7 +20,18 @@ const ISSUES = 'https://github.com/poli0981/softharbor/issues/new/choose';
const rows = [
{ key: 'security', icon: 'shield-alert' },
{ key: 'privacy', icon: 'eye-off' },
{ key: 'dmca', icon: 'copyright', more: '/legal/terms#copyright' },
{
key: 'accessibility',
icon: 'accessibility',
more: '/legal/accessibility',
moreTitle: 'legal.title.accessibility',
},
{
key: 'dmca',
icon: 'copyright',
more: '/legal/terms#copyright',
moreTitle: 'legal.title.terms',
},
{ key: 'takedown', icon: 'flag' },
{ key: 'legal', icon: 'scale' },
{ key: 'copyright', icon: 'scroll-text' },
@@ -61,7 +72,7 @@ const rows = [
href={localePath(locale, row.more)}
class="sh-anim text-sh-muted mt-1 flex items-center gap-1 text-small hover:underline"
>
{t(locale, 'legal.title.terms')}
{t(locale, row.moreTitle)}
<ShIcon name="arrow-right" class="size-3.5" motion="nudge-x" />
</a>
)}
+2 -2
View File
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: GPL-3.0-only
// Copyright (C) 2026 poli0981 (SkullMute)
//
// docs/14 — shared chrome for the six legal documents. Prose lives per
// docs/14 — shared chrome for the seven legal documents. Prose lives per
// locale in src/components/legal/, not in the i18n dictionaries: docs/07 §1
// puts legal in its own layer precisely because multi-paragraph documents are
// content, not UI strings, and the English text is canonical (docs/07 §8).
@@ -29,7 +29,7 @@ const updated = new Intl.DateTimeFormat(locale === 'vi' ? 'vi-VN' : 'en-GB', {
{/* Suffixed like every other page: an unbranded <title> in a SERP reads as
someone else's document. The description names the document too, so the
six legal pages are not six copies of the site tagline. */}
legal pages are not seven copies of the site tagline. */}
<Base
title={`${title} — ${t(locale, 'site.name')}`}
description={t(locale, 'meta.legal', { title })}
+2 -2
View File
@@ -17,9 +17,9 @@
"download": "https://www.7-zip.org/download.html"
},
"security": {
"status": "unverified",
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/273d0beedb411e020dd6ce34a46330b626a4ed56df427f806c4c552ea5c287e7",
"checkedAt": "2026-10-23"
"checkedAt": "2026-11-09"
},
"addedAt": "2026-07-28"
}
+25
View File
@@ -0,0 +1,25 @@
{
"name": "Accessibility Insights for Windows",
"developer": "Microsoft",
"logo": "monogram",
"summary": {
"en": "Finds accessibility problems in Windows desktop apps with automated checks and a live view of the UI Automation tree.",
"vi": "Tìm lỗi trợ năng trong ứng dụng Windows bằng các bài kiểm tra tự động và chế độ xem trực tiếp cây UI Automation."
},
"categories": ["accessibility", "developer-tools"],
"tags": ["ui-automation", "testing", "wcag", "inspector"],
"platforms": ["windows"],
"pricing": "free",
"license": "MIT",
"links": {
"homepage": "https://accessibilityinsights.io/docs/windows/overview/",
"repo": "https://github.com/microsoft/accessibility-insights-windows",
"download": "https://accessibilityinsights.io/downloads/"
},
"security": {
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/4b7c03af5915f46aa687b06793ce53faac39679bcfecefbac3c89dab4c68cfd7",
"checkedAt": "2026-11-09"
},
"addedAt": "2026-11-09"
}
+2 -2
View File
@@ -17,9 +17,9 @@
"download": "https://developer.android.com/studio"
},
"security": {
"status": "unverified",
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/c19baa232f69e69a69d324ece0a21a3afe17245faad082eef9b959fa14092afb",
"checkedAt": "2026-10-23"
"checkedAt": "2026-11-09"
},
"addedAt": "2026-07-28"
}
+1 -1
View File
@@ -19,7 +19,7 @@
"security": {
"status": "unverified",
"evidence": "https://www.virustotal.com/gui/url/4d04818ce36865ef6a9f6479e05bc81d7c745045db094b4d3db1f84651c549e3",
"checkedAt": "2026-10-23"
"checkedAt": "2026-11-09"
},
"addedAt": "2026-10-23"
}
+25
View File
@@ -0,0 +1,25 @@
{
"name": "Balabolka",
"developer": "Ilya Morozov",
"logo": "monogram",
"summary": {
"en": "Text-to-speech reader that reads documents and the clipboard aloud with your installed voices and saves speech as audio.",
"vi": "Phần mềm chuyển văn bản thành giọng nói, đọc to tài liệu và clipboard bằng các giọng đã cài, lưu được thành tệp âm thanh."
},
"categories": ["accessibility", "productivity"],
"tags": ["text-to-speech", "audiobook", "portable", "clipboard"],
"platforms": ["windows"],
"pricing": "free",
"license": null,
"links": {
"homepage": "https://www.cross-plus-a.com/balabolka.htm",
"repo": null,
"download": "https://www.cross-plus-a.com/balabolka.htm"
},
"security": {
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/2ccab1b1bfe13790e911b395cf2f877a5e4f2e5e7b355e3515315905e1378a78",
"checkedAt": "2026-11-09"
},
"addedAt": "2026-11-09"
}
+25
View File
@@ -0,0 +1,25 @@
{
"name": "Bookworm",
"developer": "Blind Pandas",
"logo": "monogram",
"summary": {
"en": "Document reader made for screen-reader users that opens EPUB, PDF, Word and more, with read-aloud and bookmarks.",
"vi": "Trình đọc tài liệu dành cho người dùng trình đọc màn hình, mở EPUB, PDF, Word và nhiều định dạng khác, có đọc to và đánh dấu."
},
"categories": ["accessibility", "productivity"],
"tags": ["ebook", "screen-reader", "read-aloud", "portable"],
"platforms": ["windows"],
"pricing": "free",
"license": "GPL-2.0-or-later",
"links": {
"homepage": "https://github.com/blindpandas/bookworm",
"repo": "https://github.com/blindpandas/bookworm",
"download": "https://github.com/blindpandas/bookworm/releases"
},
"security": {
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/b171e4359ffb01eef1edbaae0e226094da3ae35c813476cef0374e2aa12ebd63",
"checkedAt": "2026-11-09"
},
"addedAt": "2026-11-09"
}
+1 -1
View File
@@ -19,7 +19,7 @@
"security": {
"status": "unverified",
"evidence": "https://www.virustotal.com/gui/url/4021e24fda8949410ef64b32752996e075b78f60f3188244efb415df5e3bf3e4",
"checkedAt": "2026-10-23"
"checkedAt": "2026-11-09"
},
"addedAt": "2026-10-23"
}
@@ -0,0 +1,25 @@
{
"name": "Colour Contrast Analyser",
"developer": "Vispero (TPGi)",
"logo": "monogram",
"summary": {
"en": "Picks text and background colours from anywhere on screen and reports their contrast against the WCAG thresholds.",
"vi": "Lấy màu chữ và màu nền ở bất kỳ đâu trên màn hình, rồi báo độ tương phản giữa chúng theo các ngưỡng của WCAG."
},
"categories": ["accessibility", "developer-tools"],
"tags": ["wcag", "contrast", "color-picker", "design-review"],
"platforms": ["windows", "macos", "linux"],
"pricing": "free",
"license": "GPL-3.0-only",
"links": {
"homepage": "https://vispero.com/color-contrast-checker/",
"repo": "https://github.com/ThePacielloGroup/CCAe",
"download": "https://github.com/ThePacielloGroup/CCAe/releases"
},
"security": {
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/8a07e9837dc4628c0f358075852c44508fbcca928310bcb61672e070d7493581",
"checkedAt": "2026-11-09"
},
"addedAt": "2026-11-09"
}
+2 -2
View File
@@ -17,9 +17,9 @@
"download": "https://dbeaver.io/download/"
},
"security": {
"status": "unverified",
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/4501ec70bd4de7a1496fa573fe3e2dd94d9caa526c3fba937085acdb2595f362",
"checkedAt": "2026-10-23"
"checkedAt": "2026-11-09"
},
"addedAt": "2026-07-28"
}
+2 -2
View File
@@ -17,9 +17,9 @@
"download": "https://devtoys.app/download"
},
"security": {
"status": "unverified",
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/b583d39856e8ccf6d06e97486cba5c4cf40cc04b18e5e48bdf2858db13058fd6",
"checkedAt": "2026-10-23"
"checkedAt": "2026-11-09"
},
"addedAt": "2026-07-28"
}
+25
View File
@@ -0,0 +1,25 @@
{
"name": "eSpeak NG",
"developer": "eSpeak NG contributors",
"logo": "monogram",
"summary": {
"en": "Compact speech synthesizer for more than a hundred languages, run from the command line or used as a screen reader voice.",
"vi": "Bộ tổng hợp giọng nói gọn nhẹ cho hơn một trăm ngôn ngữ, chạy từ dòng lệnh hoặc làm giọng đọc cho trình đọc màn hình."
},
"categories": ["accessibility", "utilities"],
"tags": ["text-to-speech", "cli", "speech-synthesis", "multilingual"],
"platforms": ["windows", "linux"],
"pricing": "free",
"license": "GPL-3.0-or-later",
"links": {
"homepage": "https://github.com/espeak-ng/espeak-ng",
"repo": "https://github.com/espeak-ng/espeak-ng",
"download": "https://github.com/espeak-ng/espeak-ng/releases"
},
"security": {
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/c6c7eec6b1d9653eeef8e4a80a2e59b7ce0957f4c8d8aeb0cb7207b84f928b02",
"checkedAt": "2026-11-09"
},
"addedAt": "2026-11-09"
}
+1 -1
View File
@@ -19,7 +19,7 @@
"security": {
"status": "unverified",
"evidence": "https://www.virustotal.com/gui/url/95707fe983a07c4a17ea04b94ce50a9397bfe77002a56fb064015cda3273487a",
"checkedAt": "2026-10-23"
"checkedAt": "2026-11-09"
},
"addedAt": "2026-10-23"
}
+2 -2
View File
@@ -17,9 +17,9 @@
"download": "https://helium.computer"
},
"security": {
"status": "unverified",
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/a25c2cf1aba9368a2cba36ebfd6c3acc01987e0889991f69d0d895a40f22c76e",
"checkedAt": "2026-10-23"
"checkedAt": "2026-11-09"
},
"addedAt": "2026-07-28"
}
+2 -2
View File
@@ -17,9 +17,9 @@
"download": "https://itch.io/app"
},
"security": {
"status": "unverified",
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/20dfb1872095ef5234100b1d93eca2e5c03901c7902a844dcf4e5d5742024bc7",
"checkedAt": "2026-10-23"
"checkedAt": "2026-11-09"
},
"addedAt": "2026-07-28"
}
+2 -2
View File
@@ -17,9 +17,9 @@
"download": "https://keepassxc.org/download/"
},
"security": {
"status": "unverified",
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/4d2aed206303081787d07167298d5e6e385b96c0c5eba3c68fde1ea4aa57f483",
"checkedAt": "2026-10-23"
"checkedAt": "2026-11-09"
},
"addedAt": "2026-07-28"
}
+4 -3
View File
@@ -13,13 +13,14 @@
"license": "GPL-3.0-or-later",
"links": {
"homepage": "https://www.linphone.org",
"repo": "https://gitlab.linphone.org/BC/public/linphone-desktop",
"repo": "https://github.com/BelledonneCommunications/linphone-desktop",
"download": "https://www.linphone.org/en/download/"
},
"security": {
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/a7271e3eda0d0513ac80ade5a0f84390647c980f7a64e052e2b5f2985cc98355",
"checkedAt": "2026-07-30"
"checkedAt": "2026-11-09"
},
"addedAt": "2026-07-28"
"addedAt": "2026-07-28",
"updatedAt": "2026-11-09"
}
+1 -1
View File
@@ -19,7 +19,7 @@
"security": {
"status": "unverified",
"evidence": "https://www.virustotal.com/gui/url/f03f31716a8876b136a752af94015ed4d0c806b33315a95d9958f80af8b283b4",
"checkedAt": "2026-10-23"
"checkedAt": "2026-11-09"
},
"addedAt": "2026-10-23"
}
+1 -1
View File
@@ -27,7 +27,7 @@
"security": {
"status": "unverified",
"evidence": "https://www.virustotal.com/gui/url/c9e490cc95fea84d77e8fb7c048c304e86944b467f0a5bccb3dd444eb8acbb2f",
"checkedAt": "2026-10-23"
"checkedAt": "2026-11-09"
},
"addedAt": "2026-10-23"
}
+1 -1
View File
@@ -19,7 +19,7 @@
"security": {
"status": "unverified",
"evidence": "https://www.virustotal.com/gui/url/de74cc5378d63fb139bbcc44dab08c46c894364b3140aea863347a882127dc34",
"checkedAt": "2026-10-23"
"checkedAt": "2026-11-09"
},
"addedAt": "2026-10-23"
}
+2 -2
View File
@@ -17,9 +17,9 @@
"download": "https://objective-see.org/products/lulu.html"
},
"security": {
"status": "unverified",
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/1bfc2472d3111070abdec4ee78e343c41768682de5ff0de8e93d5355a5bf4701",
"checkedAt": "2026-10-23"
"checkedAt": "2026-11-09"
},
"addedAt": "2026-07-28"
}
+2 -2
View File
@@ -17,9 +17,9 @@
"download": "https://meldmerge.org"
},
"security": {
"status": "unverified",
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/33c6aee29c051b1b5376f30a6a8ed54dc4ff29e129d787478c181fa35a9bf49f",
"checkedAt": "2026-10-23"
"checkedAt": "2026-11-09"
},
"addedAt": "2026-07-28"
}
+25
View File
@@ -0,0 +1,25 @@
{
"name": "NVDA",
"developer": "NV Access",
"logo": "monogram",
"summary": {
"en": "Screen reader for Windows that speaks what is on screen or sends it to a braille display, extended through add-ons.",
"vi": "Trình đọc màn hình cho Windows, đọc to nội dung trên màn hình hoặc xuất ra màn hình chữ nổi, mở rộng bằng add-on."
},
"categories": ["accessibility"],
"tags": ["screen-reader", "braille", "text-to-speech", "add-ons"],
"platforms": ["windows"],
"pricing": "free",
"license": "GPL-2.0-or-later",
"links": {
"homepage": "https://www.nvaccess.org",
"repo": "https://github.com/nvaccess/nvda",
"download": "https://www.nvaccess.org/download/"
},
"security": {
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/bead57e2a8b5ba6dedecdf8e6a8e7523deb2f3d464fff9803eb8b62ff9d804b5",
"checkedAt": "2026-11-09"
},
"addedAt": "2026-11-09"
}
+1 -1
View File
@@ -19,7 +19,7 @@
"security": {
"status": "unverified",
"evidence": "https://www.virustotal.com/gui/url/d671adfc83cac2a266c02d7db6810fe5b1070f59826533d609d235f2e6bf5ace",
"checkedAt": "2026-10-23"
"checkedAt": "2026-11-09"
},
"addedAt": "2026-10-23"
}
+1 -1
View File
@@ -19,7 +19,7 @@
"security": {
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/8fa08436655973e0ad1531e1f4c8328407eef839f005a6c7621ba53b16580503",
"checkedAt": "2026-07-30"
"checkedAt": "2026-10-29"
},
"addedAt": "2026-07-28"
}
+1 -1
View File
@@ -19,7 +19,7 @@
"security": {
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/a973fdbf0c96eebc085221fe0c054e6398cc2f97a43c04918b5eebc454f2ac50",
"checkedAt": "2026-07-30"
"checkedAt": "2026-10-29"
},
"addedAt": "2026-07-28"
}
+25
View File
@@ -0,0 +1,25 @@
{
"name": "Optikey",
"developer": "Julius Sweetland",
"logo": "monogram",
"summary": {
"en": "On-screen keyboard driven by an eye tracker, switches, head movement or a mouse, for full computer control and speech.",
"vi": "Bàn phím ảo điều khiển bằng thiết bị theo dõi mắt, công tắc, chuyển động đầu hoặc chuột, để dùng cả máy tính và nói thành lời."
},
"categories": ["accessibility"],
"tags": ["eye-tracking", "on-screen-keyboard", "aac", "switch-access"],
"platforms": ["windows"],
"pricing": "free",
"license": "GPL-3.0-only",
"links": {
"homepage": "https://www.optikey.org",
"repo": "https://github.com/OptiKey/OptiKey",
"download": "https://github.com/OptiKey/OptiKey/releases"
},
"security": {
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/54bd376bc17509fca8f66064863afe7193a0b1d7d64f4c3654025c621483a5c4",
"checkedAt": "2026-11-09"
},
"addedAt": "2026-11-09"
}
+1 -1
View File
@@ -19,7 +19,7 @@
"security": {
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/bd9e0d23a0d81645efe065cd0d117faf251b4f7033bce223f944b6615c60c599",
"checkedAt": "2026-07-30"
"checkedAt": "2026-10-29"
},
"addedAt": "2026-07-28"
}
+25
View File
@@ -0,0 +1,25 @@
{
"name": "Orkas",
"developer": "Orkas",
"logo": "monogram",
"summary": {
"en": "Desktop AI workspace where a coordinator agent splits a goal among specialist agents, using your own model keys or a local endpoint.",
"vi": "Không gian làm việc AI trên máy tính, một tác tử điều phối chia mục tiêu cho các tác tử chuyên trách, dùng khoá API riêng hoặc mô hình cục bộ."
},
"categories": ["productivity", "ai-local"],
"tags": ["ai-agents", "llm", "local-first", "byok"],
"platforms": ["windows", "macos"],
"pricing": "free",
"license": "MIT",
"links": {
"homepage": "https://orkas.ai",
"repo": "https://github.com/Orkas-AI/Orkas",
"download": "https://orkas.ai/download/"
},
"security": {
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/856bef961530a205b9fe0cd8d822d7c463b112c8fa1ac37ffed0e2894fbeef27",
"checkedAt": "2026-11-09"
},
"addedAt": "2026-11-09"
}
+1 -1
View File
@@ -19,7 +19,7 @@
"security": {
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/6f87aab6e1992dd4ba1b6f3e17deb6edf4d73a8ff59a8d3b740d239917962696",
"checkedAt": "2026-07-30"
"checkedAt": "2026-10-29"
},
"addedAt": "2026-07-28"
}
+1 -1
View File
@@ -19,7 +19,7 @@
"security": {
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/797b86c3aeecdbcb05c383bd81d6929c3c626492cc4a08040b2b4bdc2a4cacbe",
"checkedAt": "2026-07-30"
"checkedAt": "2026-10-29"
},
"addedAt": "2026-07-28"
}
+1 -1
View File
@@ -19,7 +19,7 @@
"security": {
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/73b363ca2df0f1bb11ebee796708aed94f4261e95ff639b481e2b1bde718da4e",
"checkedAt": "2026-07-30"
"checkedAt": "2026-10-29"
},
"addedAt": "2026-07-28"
}
+1 -1
View File
@@ -19,7 +19,7 @@
"security": {
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/16f526b64743c6565ea8a22f986a4ea8510db405b5cf8ff28160a92c4fe63365",
"checkedAt": "2026-07-30"
"checkedAt": "2026-10-29"
},
"addedAt": "2026-07-28"
}
+2 -2
View File
@@ -17,9 +17,9 @@
"download": "https://peazip.github.io/peazip-64bit.html"
},
"security": {
"status": "unverified",
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/650bd36089edfe582f792b2cce4b1fdf46c43abdaad83038152db4cf4253f539",
"checkedAt": "2026-07-30"
"checkedAt": "2026-11-09"
},
"addedAt": "2026-07-28"
}
+1 -1
View File
@@ -19,7 +19,7 @@
"security": {
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/12e839bda473bf14479d76c4e82a5c2ae815b276076e88101445fafcb161db1e",
"checkedAt": "2026-07-30"
"checkedAt": "2026-10-29"
},
"addedAt": "2026-07-28"
}
+1 -1
View File
@@ -19,7 +19,7 @@
"security": {
"status": "clean",
"evidence": "https://www.virustotal.com/gui/url/0e7df8f830b54640721682bb373cac06f621e746b7ba44b3460f0e8081dc1784",
"checkedAt": "2026-07-30"
"checkedAt": "2026-10-29"
},
"addedAt": "2026-07-28"
}
Loaded 100 of 241 files, more files were not shown because too many files have changed in this diff. Show more