Skip to content

Add free Page Source Check with bounded HTML input - #58

Open
offflinerpsy wants to merge 1 commit into
mainfrom
codex/page-readiness-task113-20260905
Open

Add free Page Source Check with bounded HTML input#58
offflinerpsy wants to merge 1 commit into
mainfrom
codex/page-readiness-task113-20260905

Conversation

@offflinerpsy

Copy link
Copy Markdown
Owner

A user can paste a public page’s HTML or choose an HTML file, receive deterministic observations and a concrete correction, then compare fresh source without signing in. The editable example starts with an empty title; the corrected example changes its title finding from Review to Observed.

This is the accepted source-only fallback for the proposed single-page readiness check. Arbitrary live URL retrieval remains incomplete: the current native-fetch stack does not establish the required connection-time public-IP/DNS-rebinding guarantee. The optional URL is resolution context only. HTTP status, redirects, X-Robots-Tag, robots.txt and indexing remain Unknown; URL-only API requests receive a useful unsupported response.

  • Adds one modular POST /api/page-readiness/v1 handler using native HTMLRewriter, streamed request limits (320 KiB body / 256 KiB HTML / five seconds), the existing rate-limit binding and zero target requests. No LLM, storage, analytics payload or new infrastructure.
  • Adds /tools/page-readiness/ and scoped CSS/JS through one additive builder hunk. The router changes by one import and one exact branch; it passes only the rate-limit capability. Existing auth, endpoints and Tools Studio templates are preserved.
  • Records the API, security decision, limitations, integration instructions and one-minute demonstration in cloudflare/base2026-worker/PAGE_SOURCE_CHECK.md. Discoverability/sitemap integration and production release remain release-owner work.

Validation: 35 real Workers HTMLRewriter tests; 645 existing public Worker tests; 13 member tests; TypeScript; 32 builder tests; JavaScript syntax; publication audit and diff checks. Local HTTPS Worker/browser QA verified title before/after, file input without URL, hostile source inertness, zero target resource fetches, clear behavior, one header/footer/H1, no storage and no horizontal overflow at 390px. Final member-enabled synthetic artifact and Wrangler dry-run passed. Synthetic fixtures and screenshots are excluded from Git.

This PR is a reviewed source candidate, not a production deployment or evidence of real-user activation. Release must use the current verified account/bindings and retained production artifact, preserving the member build flag and adjacent-tool/privacy smoke checks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant