Every request that runs the Worker is counted per client (IPv4, or IPv6
/64): RL_SITE 120/min (app pages, public /api, the old apps' /data JSON,
misses), RL_IMG 600/min (covers), RL_ADMIN 300/min (/admin + /api/admin);
RL_SUGGEST 5 and RL_GATE 20 stay on top for their POSTs. Verified bots are
not counted. Over a limit: 429 + Retry-After 60 (JSON for the API, covers,
files and /data with CORS; a script-less EN/VI page for app pages). Fails
open.
Every rate-limit namespace moves to 8801-8806 (staging 8901-8906):
namespace ids are account-wide, and other Workers on the account use
1001-1006, so RL_SUGGEST / RL_GATE shared their counters.
docs/operations.md section 1 step 15: the zone's WAF rate-limiting rule as
the first layer (Free plan: one rule, IP, 10 s; 300 requests / 10 s).
[skip-discuss]
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first SonarQube Cloud scan reported 57 issues. 45 are fixed in code, the 11 on the saved itch.io test pages leave the scan via .sonarcloud.properties, and css:S8776 (Tailwind's @utility nesting) is a false positive to mark on SonarQube Cloud.
Worker: trailing slashes and the gate cookie's padding are trimmed by trimEnd() instead of /\/+$/ (quadratic on the public 404 path); the feed and collection parsers lose their backtracking regexes; compareCodeUnits keeps the code-unit sorts (the rule's localeCompare is locale-dependent); Number.*, DEFAULT_SIZES, crypto.randomUUID; i18n-edit.mjs reads stdin. Pipeline: the NSFW notices are one selector list, either class (the rule's ".a.b" would need both), each tested; plain if-guards; update_info.main returns None; no plain-http adapter; [[ ]] in cf_build_status.sh.
Supply chain: requirements*.txt are hash-locked pip-tools compiles of requirements*.in (on Python 3.14, which Dependabot reads from the header), installed with --require-hashes --only-binary :all: in block scalars; npm ci --ignore-scripts in CI and the release builds (verified by manual release runs on all platforms); npm run cf:check.
Release 4.4.2: also ships the toolchain upgrade (#149, #154) and Dependabot #141-#148, #150, #152, #153. CLAUDE.md gotchas 40 and 41.
[skip-discuss]
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The browser extension (poli0981/itch-f2p-extension) and the Telegram bot (poli0981/telegram-scraper-bot) are archived. Removed: POST /api/ingest (ingest.ts, requireService, the idempotency store, RL_INGEST, ACCESS_AUD_INGEST; it never received a game), the admin's "Browser extension" auto-approve source and "Extension" queue label, and the About page's Telegram numeric-ID note. No D1 migration: the idempotency table and the 'ext' CHECK stay.
Policies (Privacy, ToS, EULA + installer RTF, Disclaimer, Security; EN + VI) drop the extension / ingest wording; Last updated 2026-10-16, LEGAL_VERSION unchanged. Docs, CLAUDE.md and pipeline comments updated.
Release 4.4.1 (also ships #131, #135, #136, #137).
[skip-discuss]
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Admin: add games from any list or itch.io collection (Check first, batches of 200, per-game ingest tracking from scripts/state/ingest_outcomes.json), followed collections and auto-approve run by the cron in one [auto] commit, bulk remove/edit up to 100 games in one commit, New games, Activity and Settings pages. D1 migration 0002 (applied to production before this merge). Policies (ToS, Privacy, Disclaimer, EN + VI) cover approval by the maintainer's rules; LEGAL_VERSION 2026-10-13.
Web: the theme button shows the theme in use, no dark-mode flash (pre-paint script, hash in three CSPs), Charts tabs stay mounted (no rebuilt charts or replayed animations), 300 ms entrances, scrollbar gutter on mouse devices.
Release 4.4.0 (changelog also covers #130).
[skip-discuss]
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Implements the approved mockup (Free Itch Games, dark and light).
- Tailwind CSS 4 via @tailwindcss/vite (no PostCSS / tailwind.config), design
tokens in src/index.css, tw-animate-css, self-hosted Geist / Geist Mono.
- A sticky top nav (global search with the / shortcut, display menu for
theme / language / density / 18+, phone sheet menu) and a footer replace the
sidebar; the window scrolls, with scroll restoration on back / forward.
- Welcome page at / (catalog status, features, recently added) replaces the
dashboard.
- Games: search, genre / platform / status / tags / language / input / engine,
minimum rating, plays-in-browser, sort and page live in the URL
(lib/game-filters.ts, unit-tested); facet counts ignore their own filter;
a table on desktop, a list on phones, 100 per page. Counts show the whole
catalog while 18+ games are hidden.
- New game detail page (breadcrumb back to the same list, facts, tags that
open the matching list, copy link, report a problem), searchable Removed
page, simpler Settings, restyled error pages and charts header.
- Legal gate is an overlay above the page (deep links land where they
pointed), with translated document names; no "Leave" button in the apps.
- Cached data stays on screen when a background refresh fails (offline).
- Numbers and dates follow the language (lib/format.ts).
- New favicon, PWA icons and OG image from the same tokens
(scripts/gen_assets.py uses the Geist fonts from node_modules).
- Removed: sidebar, dashboard, data-table components, TanStack Table /
Virtual, sonner and toast settings, the unused Select primitive; 81 unused
i18n keys; prefs now persist only the keys still in use.
- Review fixes: routers without startTransition (useSearchParams was stale,
so quick filter clicks and typed searches overwrote each other or pulled
the visitor back from a game); paging starts at the top and Back returns
to the old position; the 18+ confirmation is an in-app dialog
(window.confirm is a no-op in the macOS app); the apps show only the legal
gate until it is accepted (covers load from itch.io there); breadcrumb goes
back; named popovers, list semantics, IME-safe Enter, English plurals,
pointer cursor, --brand-soft without color-mix, copy-link fallback.
- wrangler.jsonc: id of the production D1 database (created by command,
0001_init applied); runbook notes that R2 must be enabled first.
- Docs: CLAUDE.md, CHANGELOG, webapp README / TAURI.md, THIRD_PARTY,
ACKNOWLEDGEMENTS, docs/operations.md; Dependabot groups for Tailwind 4.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Worker
- The local DEV_ADMIN_EMAIL bypass keeps the same-origin check for
writes, and JSON bodies must be exactly application/json (a cross-site
`text/plain; application/json` POST no longer gets through without a
preflight).
- Request bodies are capped while they stream (a chunked upload without
Content-Length is never buffered past 4 KB / 64 KB).
- count_history.json is rewritten when today's row already exists
(upsertCountHistory no longer mutates the rows it was given).
- A game that entered the catalog through the queue, was removed and turns
up again is reviewed again (flagged previously removed) instead of being
blocked as "already pending" for good.
- Restoring / approving a removed game no longer deletes its public
removal record up front: the Worker allow-lists it in
scripts/state/unblocked.json, update_info.py scrapes it despite the
deleted log, and apply_patch.py drops the log entry only when the game is
really re-added (a still-paid or dead game keeps its record).
Admin app
- The editor compares against what the repository holds (published data
or what was saved in this session), so saved changes can be reverted and
are never dropped silently.
- An Access session that expires mid-session shows a sign-in banner from
any request, without losing what is on the page.
- Restore refreshes the queue; knip now checks the admin entry.
Suggest page
- The form doesn't let the browser's URL check block links without
https:// (the page and the server accept them).
- A failed config request shows an error with Retry instead of a
permanently disabled form or a false "closed" message.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
- webapp/admin/: a second Vite entry (/admin/, HashRouter), served only
by the Worker after the Access check, with its own CSP. Review queue by
status (approve, approve with override for previously removed games,
reject), paste-to-add URLs, and a catalog editor for the three
maintainer fields, removal with a public reason, and restore of removed
games. Uses the published /data for search; every write is applied to
the latest repository state by the Worker. An expired Access session
surfaces as "sign in again" instead of a broken request.
- /suggest (web only; the desktop/Android apps link to the website):
itch.io link + optional note (<= 500 characters, deleted after 180
days), Cloudflare Turnstile loaded on demand, EN + VI strings.
- Local development: DEV_ADMIN_EMAIL in .dev.vars lets `wrangler dev` on
localhost into the admin without Access; it is ignored on any other host.
Checked in wrangler dev with a local D1: queue listing, reject, approve
answering "GitHub App not configured", catalog search/editor, and a
Suggest submission (Turnstile test keys) landing in the queue; no CSP
violations.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>