Parser: Checking… SSRF Guard: Active

Crawler Visibility · Non-JS HTML vs. Browser Rendering

Crawler SSR vs. SPA Visibility Auditor

Non-rendering crawlers (ClaudeBot, GPTBot, CCBot) read raw wire HTML without running JavaScript. This workbench audits what those crawlers extract in SSR vs. CSR pages using streaming HTMLRewriter, and compares it side by side with what a browser renders.

Why this matters

When a page ships an empty SPA shell (<div id="root"></div>) and fills in text with client-side JavaScript, non-rendering crawlers record zero visible prose—creating the 6% CSR vs. 55% SSR recall gap measured in URLs in Models.

What this opens up

Exposing JS-only crawler blind spots before a page ships. Teams can inspect raw wire prose versus rendered DOM words side by side, audit public HTTPS URLs behind an SSRF guard, and distinguish genuine empty shells from streaming SSR pages.

How the tests work

Test 4 live Worker fixtures below (Pure SSR, Hydration-Heavy, Empty SPA, and Streaming Falsification), inspect any public HTTPS URL, or paste raw HTML. The streaming parser separates visible text from <script>, hydration JSON, and hidden <template> chunks.

3 Things To Try

Compare what a non-JS crawler extracts against what your browser renders

1. Compare SSR vs. Empty SPA

Audits /fixtures/empty-spa as raw HTML (0 visible words in #root) beside the exact same URL rendered in a browser iframe (~190 words after JS runs).

2. Trigger Streaming Falsification

Audits /fixtures/streaming-falsify, where an empty #root fools naive regex checks even though deferred prose sits in <template hidden> and Flight payloads.

3. Probe SSRF Guard & Live URL

Sends blocked private/metadata targets (169.254.169.254, 127.0.0.1, [::1], http://) to verify the SSRF block, then audits a real public HTTPS page.

Audit Input Source

Switch between the 4 live Worker fixtures, a public HTTPS URL (SSRF-guarded), or pasted raw HTML (POST /api/analyze-html).

Target: /fixtures/empty-spa

Audit Verdict

Pending… Engine: —
Raw HTML Bytes — Text ratio: —
Non-JS Visible Words — <noscript>: —
Browser Post-JS Words — Delta: —
<script> Footprint — — tags
Hydration / Flight Bytes — <template>: —
Empty SPA Mounts — Directives: —

Classification Evidence

    Detected signatures:

    Naive Regex vs. Streaming HTMLRewriter

    —
    Naive Empty-Mount Regex
    —
    Naive Tag-Strip Word Count
    —
    Streaming-Aware Classification
    —

    —

    Crawler Policy Headers & Meta: —

    Non-JS Crawler Raw View

    Exact bytes and visible text extracted over HTTP without running JavaScript.

    Live Rendered Frame Preview

    Real browser execution of the same fixture URL inside an isolated iframe.

    Rendered: —

    4-Fixture Visibility & Falsification Matrix

    Side-by-side metrics across all four Worker fixtures showing raw wire bytes, visible prose, deferred template prose, hydration weight, and naive detector false positives.

    Fixture Raw Bytes Visible Words <template> Words Hydration Bytes Empty Mounts Naive Regex Streaming-Aware Verdict
    Loading fixture matrix…

    1. Measured Recall Gap

    In URLs in Models, 31 client-rendered pages averaged 6% bare-URL recall (25 scored 0%), compared with 55% across 60 server-rendered sources (arXiv, RFCs, CVEs, Wikipedia).

    2. Common Crawl Shell Floor

    Across 1.04 million Common Crawl pages, 0.45% shipped literal empty app mounts (averaging ~53 KB of HTML), climbing to 2.5%–2.8% among the top 10,000 ranked domains.

    3. Verified Bot Execution

    IP-verified traces on uatracer.com show ClaudeBot and GPTBot fetch JS/CSS without executing scripts, whereas OAI-SearchBot executes JS via Chromium.

    Architecture SSRF-hardened streaming HTMLRewriter visibility pipeline
    Cloudflare Worker Edge · Zero JavaScript execution during audit
    Inputs

    4 Live Fixtures, Public HTTPS, or Pasted HTML

    POST /api/audit-fixture · /api/audit-url · /api/analyze-html
    • SSRF Gate (src/ssrf.ts): enforces https:// port 443, rejects RFC1918, loopback, CGNAT, link-local, metadata (169.254.169.254), IPv6 literals, and validates every redirect: "manual" hop.
    • Bounded Read: caps wire stream at 512 KiB and 8 s timeout with selectable crawler User-Agent.
    Streaming Parser

    HTMLRewriter Auditor src/auditor.ts

    1. Separate visible body prose from <script>, <style>, <svg>, <noscript>, and <template>/[hidden]
    2. Measure __NEXT_DATA__, __NUXT__, self.__next_f.push, and JSON-LD bytes
    3. Inspect mount containers (#root, #app, #__next, <app-root>) for child depth and words
    4. Cross-check naive empty-mount regex against deferred streaming SSR content

    Node tests run the parity state-machine parser when HTMLRewriter is unavailable.

    VISIBLE IN WIRE HTML

    SSR Content-Rich & Hydration-Heavy

    Prose arrives before JS runs
    X-Robots-Tag Content-Usage meta[robots]
    BLIND OR AMBIGUOUS

    Empty SPA Shell vs. Streaming Deferred

    0 body words vs. <template hidden>

    Flags naive regex false positives when streaming SSR pairs empty #root with deferred prose.

    Browser Rendered Comparison public/fixtures/*.js

    Same-Origin Iframe

    The workbench loads the identical Worker fixture URL into a sandboxed iframe so readers compare raw non-JS crawler words directly against post-JS browser-rendered words.

    All remote URL fetches pass through manual-redirect SSRF validation and bounded streaming reads in src/ssrf.ts before src/auditor.ts extracts metrics without executing fetched JavaScript.
    Key terms & further reading
    SSR vs. CSR (Server-Side vs. Client-Side Rendering)
    SSR sends finished HTML prose in the initial HTTP response, whereas CSR sends a minimal shell and builds the page text in the browser with JavaScript.
    Empty SPA shell
    A single-page application document whose body contains only an empty mount element like <div id="root"></div> until client scripts execute.
    Cloudflare HTMLRewriter
    A streaming HTML parser that inspects elements and text chunks directly on the wire without executing page JavaScript.
    Hydration & React Flight payloads
    Inline serialized state blobs (such as __NEXT_DATA__ or self.__next_f.push) embedded inside <script> tags so client code can attach interactivity to server markup.
    SSRF (Server-Side Request Forgery) guard
    Validation blocking server-side fetchers from reaching private networks, loopback addresses, metadata endpoints, or unsafe redirect targets.
    X-Robots-Tag & IETF aipref (Content-Usage)
    HTTP response headers declaring indexing and AI training preferences to automated crawlers alongside raw HTML.