Source: /

# 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.

Get started Use it in TypeScript

Crawl Probe Doctor Import

bun run kitsune crawl https://example.com Copy

Works with

- Bun
- Chrome
- CDP
- 2Captcha
- CapMonster
- Capsolver
- hCaptcha
- reCAPTCHA
- Turnstile

## Escalates only on evidence.

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.

1. siteSite pluginA plugin that owns the URL takes it before anything else runs.
2. 0HTTPA plain fetch. Real content or JSON becomes a record; a JavaScript shell escalates.
3. 1–3Real ChromeNavigate, fill, submit, extract. The settle time grows with every attempt.
4. hand-offChallengeA captcha widget goes to the one active solver, then the page is re-read.
5. outRecordClassified, passed through every record hook, flushed to JSONL.

Point at a layer rest

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 run bash

```
$ bun run kitsune crawl https://quotes.toscrape.com/js/OK   [browser:selectors] https://quotes.toscrape.com/js/  7511ms  data extracted verdicts: { 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 rest

### 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.

Read more

Proxies

Point at an exit rest

### 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.

Read more

Challenges

Bring the pointer to the booth rest

### 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.

Read more

Records

Point at a card rest

### 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.

Read more

## Describe a site, or drive it yourself.

Recipes cover the sites you crawl every day. The library covers the flows a recipe can't. Plugins cover the rest, without forking the core.

### Recipes are JSON

Match a host, name the fields. `kitsune init` scaffolds one from a live page.

recipes/quotes-toscrape-com.json json

```
1{2  "name": "quotes-toscrape-com",3  "match": ["quotes.toscrape.com"],4  "extract": {5    "mode": "selectors",6    "fields": {7      "quote": ".quote .text",8      "author": ".quote .author"9    }10  }11}
```

### The browser is an API

Type, click and wait like a person, through the same session a crawl uses.

login.ts ts

```
1import { Kitsune } from 'kitsune'2 3const kit = await Kitsune.launch({ proxy: process.env.PROXY_URL })4 5try {6  await kit.goto('https://example.com/login')7  await kit.type('input[name="email"]', 'me@example.com')8  await kit.click('button[type="submit"]')9  await kit.waitForText('Signed in', 5_000)10} finally {11  await kit.close()12}
```

### Plugins, not forks

Seven hooks, from `launch` to `close`, plus site handlers. A plugin can rewrite Chrome's flags, own a whole site, solve a challenge or reshape a record.

plugins/stamp.ts ts

```
1import { definePlugin } from 'kitsune'2 3export default definePlugin({4  name: 'team:stamp',5  record: (record) => ({6    ...record,7    meta: { ...record.meta, source: 'nightly' },8  }),9})
```

### One command per job

Each command writes its own JSONL file, or nothing at all.

kitsune --help bash

```
kitsune crawl   <url>      recipe-aware crawl, one recordkitsune batch   <file>     every URL in a file, pacedkitsune probe   <url>      HTTP, then browser diagnosticskitsune init    <url>      inspect a page, scaffold a recipekitsune sites              list recipeskitsune plugins            plugins and the active solverkitsune doctor             Chrome, proxies, solver keys, egress
```

## Measured on real targets. Every default in Kitsune comes from a run that failed first.

Rejected at 7–11 s

0% 12 of 12 answered

Rejected at 1.5–4 s

43% same host, same IP

Requests per IP

~20 before the window closed

Per page, defaults

2.52 s 9% faster than the Node build

Local pages / s

131 with settle set to 0

npm dependencies

0 its own CDP driver

## Point it at a URL.

Bun 1.3 and Google Chrome are all it needs. The first crawl takes about a minute to set up.

Get started
