Static-first scraping engine

Clean Markdown and typed records from any page.

CrawlForge fetches a page with a plain HTTP request, strips the boilerplate with Readability, and evaluates a Zod schema against the result. The SSRF guard runs after DNS resolution, the robots policy is RFC 9309, and every run is stored as a Snapshot you can diff later.

-74.4%
Tokens saved on real HTML
5
Built-in extraction recipes
32
Blocked CIDR ranges
RFC 9309
Robots exclusion standard

Pipeline architecture

Every stage is observable

The pipeline is a chain of small, testable stages. Each one records a verdict, so the Local Workbench can show exactly where a run spent its time and why a request was refused.

Crawl Target URL SSRF Guard post-DNS Robots Policy RFC 9309 Rate Limiter token bucket Fetch static → chromium Clean Markdown readability Zod Recipe typed record snapshot store · sqlite wal

Before / after

Real HTML in, clean Markdown out

The three demos below are not screenshots. Every byte, every record and every diff on this page was produced by the CrawlForge engines while this site was built.

Tech Docs 2416 B → 635 B · -73.7% · ~159 tokens

https://crawl.cesarcai.dev/docs/getting-started · recipe tech-docs

Before · noisy HTML

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Getting started · CrawlForge Docs</title>
  <meta name="description" content="Install CrawlForge, fetch your first page and read the Clean Markdown output.">
  <link rel="canonical" href="/docs/getting-started">
  <link rel="stylesheet" href="/assets/docs.css">
  <script src="/assets/analytics.js" defer></script>
</head>
<body>
  <header class="site-header">
    <a class="logo" href="/">CrawlForge Docs</a>
    <nav aria-label="Main navigation">
      <ul>
        <li><a href="/docs">Guides</a></li>
        <li><a href="/reference">Reference</a></li>
        <li><a href="https://github.com/crawlforge/crawl-forge">GitHub</a></li>
      </ul>
    </nav>
  </header>

  <nav aria-label="breadcrumb">
    <ol>
      <li><a href="/docs">Guides</a></li>
      <li><a href="/docs/getting-started">Getting started</a></li>
    </ol>
  </nav>

  <div class="cookie-banner" role="dialog" aria-label="Cookie consent">
    <p>We use cookies to measure documentation traffic.</p>
    <button type="button">Accept all</button>
  </div>

  <aside class="sidebar">
    <ul>
      <li><a href="/docs/installation">Installation</a></li>
      <li><a href="/docs/configuration">Configuration</a></li>
      <li><a href="/docs/recipes">Recipes</a></li>
    </ul>
  </aside>

  <article>
    <h1>Getting started</h1>
    <p>CrawlForge converts noisy HTML into clean GFM Markdown, then validates a typed Extracted Record against a Zod schema. The pipeline is static-first: a plain HTTP request is tried before any headless browser is launched.</p>

    <h2>Install</h2>
    <p>Install the package and verify the CLI.</p>
    <pre><code class="language-bash">npm install crawlforge
crawlforge --help</code></pre>

    <h2>Fetch your first page</h2>
    <pre><code class="language-bash">crawlforge fetch https://example.com/docs --mode static --json</code></pre>

    <h3>Read the Clean Markdown</h3>
    <p>The <code>cleanMarkdown</code> field holds the boilerplate-stripped GFM output, and <code>compressionRatio</code> reports the reduction against the raw byte budget of the document.</p>
  </article>

  <footer class="site-footer">
    <p>© 2026 CrawlForge · MIT licensed</p>
  </footer>

  <script>window.__CF_DOCS__ = { version: '1.4.2', build: 4412 };</script>
</body>
</html>

After · clean Markdown

# Getting started

CrawlForge converts noisy HTML into clean GFM Markdown, then validates a typed Extracted Record against a Zod schema. The pipeline is static-first: a plain HTTP request is tried before any headless browser is launched.

## Install

Install the package and verify the CLI.

```bash
npm install crawlforge
crawlforge --help
```

## Fetch your first page

```bash
crawlforge fetch https://example.com/docs --mode static --json
```

### Read the Clean Markdown

The `cleanMarkdown` field holds the boilerplate-stripped GFM output, and `compressionRatio` reports the reduction against the raw byte budget of the document.

Compliance

Safe by default, not by configuration

The dangerous parts of a scraper are the parts you forget to configure. CrawlForge refuses the request instead.

SSRF guard

The guard resolves the hostname first and validates every returned address against the blocklist, so a public name that points at a private address is still refused.

  • 0.0.0.0/8
  • 10.0.0.0/8
  • 100.64.0.0/10
  • 127.0.0.0/8
  • 169.254.0.0/16
  • 172.16.0.0/12

Robots policy

The robots policy is parsed as RFC 9309 requires, with the most specific matching rule deciding the outcome.

  • Standard
  • Groups
  • Directives
  • Longest match

Local Workbench

The inspector runs on the loopback interface only, rejects foreign Host and Origin headers and never renders scraped markup as HTML.

  • Bind
  • Host header
  • Origin header
  • Authentication

Built-in recipes

Five recipes that already work

Each recipe pairs a set of field extractors with a Zod schema. The record is only valid when the schema accepts it.

Quickstart

Three commands

npm install crawlforge
crawlforge fetch https://example.com/docs --recipe tech-docs --json
crawlforge serve --port 4310

The Workbench opens a three pane inspector on 127.0.0.1:4310 — target queue, cleaning lens and structured output with the pipeline trace below.