Extraction recipe
GitHub Repository
Owner/repo name, description, star and fork counts, primary language, topics, license, latest release and README lead.
Field extractors
Each field names the extractor that produces it and the target it reads from.
| Field | Extractor | Target | Transforms | Required |
|---|---|---|---|---|
| owner | regex | octolytics-dimension-repository_nwo" content="([^/"]+)/ | — | required |
| repo | regex | octolytics-dimension-repository_nwo" content="[^/"]+/([^"]+) | — | required |
| description | css | meta[name="description"] | — | required |
| stars | css | #repo-stars-counter-star | — | required |
| forks | css | #repo-network-counter | — | required |
| primaryLanguage | css | span[itemprop="programmingLanguage"] | — | required |
| topics | css | a.topic-tag | — | required |
| license | css | a[href$="/LICENSE"] | — | required |
| latestRelease | css | a[href*="/releases/tag/"] | — | required |
| readmeLead | css | #readme article p | — | required |
Zod rules
The output schema is projected to JSON Schema to build this table, so the documentation always matches the runtime validation.
| Field | Type | Constraints | Required |
|---|---|---|---|
| owner | string | string, min length 1 | yes |
| repo | string | string, min length 1 | yes |
| fullName | string | string, min length 1 | yes |
| description | string | string | yes |
| stars | integer | integer, minimum 0, maximum 9007199254740991 | yes |
| forks | integer | integer, minimum 0, maximum 9007199254740991 | yes |
| primaryLanguage | string | null | string, nullable | yes |
| topics | array | array, items: string | yes |
| license | string | null | string, nullable | yes |
| latestRelease | string | null | string, nullable | yes |
| readmeLead | string | null | string, nullable | yes |
JSON output
The real record produced by the real engine for the sample document of this recipe. The Zod schema accepted it.
{
"owner": "crawlforge",
"repo": "crawl-forge",
"fullName": "crawlforge/crawl-forge",
"description": "Static-first web scraping engine for AI agents and data engineers.",
"stars": 1234,
"forks": 56,
"primaryLanguage": "TypeScript",
"topics": [
"scraping",
"typescript"
],
"license": "MIT License",
"latestRelease": "v0.3.0",
"readmeLead": "CrawlForge combines static-first fetching with a headless Chromium fallback and a strict SSRF Guard."
} CLI invocation
crawlforge fetch https://github.com/crawlforge/crawl-forge --recipe github-repo --json
Add --db to store the Snapshot, then use
crawlforge diff to compare two revisions of the same page.