{"id":43762864,"url":"https://github.com/justapithecus/quarry","last_synced_at":"2026-02-07T16:04:47.124Z","repository":{"id":335038883,"uuid":"1143905915","full_name":"justapithecus/quarry","owner":"justapithecus","description":"Web extraction runtime for browser-driven crawling and durable ingestion","archived":false,"fork":false,"pushed_at":"2026-02-05T20:21:33.000Z","size":536,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-06T00:37:11.003Z","etag":null,"topics":["browser-automation","data-ingestion","etl","golang","primary","puppeteer","streaming","typescript","web-scraping"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justapithecus.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-01-28T04:40:11.000Z","updated_at":"2026-02-05T20:21:36.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/justapithecus/quarry","commit_stats":null,"previous_names":["justapithecus/quarry"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/justapithecus/quarry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justapithecus%2Fquarry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justapithecus%2Fquarry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justapithecus%2Fquarry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justapithecus%2Fquarry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justapithecus","download_url":"https://codeload.github.com/justapithecus/quarry/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justapithecus%2Fquarry/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29199519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T14:35:27.868Z","status":"ssl_error","status_checked_at":"2026-02-07T14:25:51.081Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser-automation","data-ingestion","etl","golang","primary","puppeteer","streaming","typescript","web-scraping"],"created_at":"2026-02-05T15:09:58.651Z","updated_at":"2026-02-07T16:04:47.118Z","avatar_url":"https://github.com/justapithecus.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Quarry\n\n**A CLI-first web extraction runtime for browser-driven crawling and durable ingestion**\n\nQuarry is a web extraction runtime for imperative, browser-backed scraping workflows. It is designed for adversarial sites, bespoke extraction logic, and long-lived ETL pipelines where correctness, observability, and durability matter more than convenience abstractions.\n\nQuarry executes user-authored Puppeteer scripts under a strict runtime contract, streams observations incrementally, and hands off persistence to an external substrate (typically Lode). It is intentionally *not* a crawler framework, workflow engine, or low-code platform.\n\n---\n\n## What Quarry Is\n\nQuarry is:\n\n- A **runtime**, not a framework\n- **CLI-first**, not embedded\n- Designed for **imperative Puppeteer scripts**\n- Explicit about **ordering, backpressure, and failure**\n- Agnostic to storage, retries, scheduling, and downstream processing\n\nQuarry’s responsibility ends at **observing and emitting what happened**.\n\n---\n\n## What Quarry Is Not\n\nQuarry is **not**:\n\n- A crawling DSL\n- A workflow orchestrator\n- A distributed task scheduler\n- A SaaS scraper or low-code pipeline\n- A storage engine\n\nThose concerns are intentionally left to other layers.\n\n---\n\n## Conceptual Model\n\nQuarry enforces a clean boundary between extraction logic and ingestion mechanics:\n\n```\nUser Script (Puppeteer, imperative)\n        ↓\nemit.*  (stable event contract)\n        ↓\nQuarry Runtime\n        ↓\nIngestion Policy (strict, buffered, etc.)\n        ↓\nPersistence Substrate (e.g. Lode)\n```\n\nScripts **emit observations**.  \nPolicies decide how those observations are handled.  \nPersistence decides what survives.\n\n---\n\n## Using Quarry in a Larger Pipeline\n\nQuarry is designed to be composed **around**, not extended **from**.\n\nA typical pipeline might look like:\n\n```bash\n# Extract\nquarry run \\\n  --script streeteasy.ts \\\n  --run-id \"streeteasy-$(date +%s)\" \\\n  --source nyc-rent \\\n  --category streeteasy \\\n  --job '{\"url\": \"https://streeteasy.com/rentals\"}' \\\n  --storage-backend fs \\\n  --storage-path /var/quarry/data \\\n  --policy buffered\n\n# Transform (outside Quarry)\nnyc-rent-transform \\\n  --input /var/quarry/data/source=nyc-rent \\\n  --output /var/quarry/normalized\n\n# Index / analyze (outside Quarry)\nnyc-rent-index \\\n  --input /var/quarry/normalized\n```\n\nQuarry owns **only** the extraction step.\n\n---\n\n## Quarry Scripts\n\nQuarry scripts are **freestanding programs**, not libraries.\n\nThey should:\n- Accept all inputs via the job payload\n- Use real Puppeteer objects (`page`, `browser`)\n- Emit all outputs via `emit.*`\n- Avoid shared global state\n- Remain agnostic to durability and retries\n\n### Example\n\n```ts\nimport type { QuarryContext } from '@justapithecus/quarry-sdk'\n\nexport default async function run(ctx: QuarryContext): Promise\u003cvoid\u003e {\n  await ctx.page.goto(ctx.job.url)\n\n  const listings = await ctx.page.evaluate(() =\u003e {\n    // scrape DOM\n    return []\n  })\n\n  for (const listing of listings) {\n    await ctx.emit.item({\n      item_type: 'listing',\n      data: listing\n    })\n  }\n\n  await ctx.emit.runComplete()\n}\n```\n\nScripts are imperative, explicit, and boring by design.\n\n---\n\n## Emission Model\n\nScripts do not return values.\n\nAll output flows through `emit.*`:\n\n- `emit.item(...)` — structured records\n- `emit.artifact(...)` — binary artifacts (screenshots, files)\n- `emit.checkpoint(...)` — progress markers\n- `emit.log(...)` — structured logs\n- `emit.runError(...)` — terminal failure\n- `emit.runComplete(...)` — successful completion\n\nEmission is:\n- **ordered**\n- **append-only**\n- **backpressure-aware**\n- **observable**\n\n---\n\n## Backpressure and Policies\n\nQuarry does not hide backpressure.\n\nIf downstream ingestion is slow, `emit.*` **blocks**.\n\nIngestion behavior is controlled via **policies**:\n\n- **Strict** — synchronous writes, no loss\n- **Buffered** — bounded buffering, explicit drops allowed\n\nScripts are policy-agnostic.\n\n---\n\n## Durability and Lode\n\nQuarry does not persist data itself.\n\nIt is commonly paired with **Lode**, which provides:\n- append-only object storage\n- partitioned datasets\n- recovery and replay\n- lineage visibility\n\nQuarry guarantees consistent emission semantics so that Lode can remain simple.\n\n---\n\n## Design Principles\n\n- **Contracts before code**\n- **No silent loss**\n- **No hidden retries**\n- **No framework magic**\n- **Explicit failure boundaries**\n\nIf a behavior matters, it is documented and observable.\n\n---\n\n## Documentation\n\nUser-facing guides live in [docs/guides/](docs/guides/) for a deeper dive into concepts,\nconfiguration, and usage.\n\n---\n\n## Status\n\nQuarry is under active development.\n\n- Contracts are frozen\n- SDK surface is stabilizing\n- Executor and runtime are evolving\n\nBreaking changes are gated by contract versioning.\n\n---\n\n## License\n\nApache 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustapithecus%2Fquarry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustapithecus%2Fquarry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustapithecus%2Fquarry/lists"}