A crawler that only becomes a browsertier 1 when it has to
Kitsune fetches over HTTP first, escalates to a real, headed Chrome only on evidence, hands captcha walls to one solver plugin, and writes every answer as a classified record. Bun and TypeScript, with its own DevTools driver and no npm dependencies.
Every URL climbs the same ladder, and stops at the first rung that returns a real answer. Most pages never need Chrome. The ones that do get a real, headed Chrome with no automation flags, driven over the DevTools Protocol by Kitsune's own driver.
siteSite pluginA plugin that owns the URL takes it before anything else runs.
0HTTPA plain fetch. Real content or JSON becomes a record; a JavaScript shell escalates.
1–3Real ChromeNavigate, fill, submit, extract. The settle time grows with every attempt.
hand-offChallengeA captcha widget goes to the one active solver, then the page is re-read.
outRecordClassified, passed through every record hook, flushed to JSONL.
Point at a layer
page
the target, rendered as any visitor sees it
stealth
no automation flags; WebRTC held behind the proxy
cdp
Kitsune's own DevTools socket, not Puppeteer or Playwright
chrome
a headed Chrome with a fresh profile per session
a real runbash
$ bun run kitsune crawl https://quotes.toscrape.com/js/OK[browser:selectors]https://quotes.toscrape.com/js/7511ms data extractedverdicts: { ok: 1 }tiers: { "browser:selectors": 1 }attempts: 1 avg 7511ms rejection rate 0% quotes.toscrape.com: 1/1 ok
Pacing
Hover to slow the belt
Rate is the control variable. 43% rejected, then 0%.
One captcha-guarded host rejected 43% of requests sent 1.5–4 s apart and none of the twelve sent 7–11 s apart. Kitsune keeps a delay per host with ±40% jitter, doubles it on a block and lets it decay on success.
Any proxy format, one sticky exit. Five formats, lists, JSON.
URLs, SOCKS, auth shorthand and colon-separated provider strings, from --proxy, PROXY_URL, PROXIES or PROXY_LIST. Each browser session keeps one exit, and a loopback relay adds the authentication Chrome won't.
Captcha walls go to one solver. 2Captcha, CapMonster or Capsolver.
When the browser tier classifies a challenge, Kitsune reads the widget and hands it to exactly one solver plugin. The token is injected and checked before submit, then the page is extracted again.
Every answer is a record. Six verdicts. Never a guessed ok.
ok, empty, blocked, challenge, tarpit or unknown. Each attempt is flushed to JSONL as it lands, so a killed run keeps its evidence and the summary is recomputed from the file.