Type Definition
Options Reference
Required Options
| Option | Type | Description |
|---|---|---|
url | string | Seed URL to start crawling from |
Crawl Limit Options
| Option | Type | Default | Description |
|---|---|---|---|
depth | number | 1 | Maximum crawl depth |
maxPages | number | 20 | Maximum pages to discover |
Scraping Options
| Option | Type | Default | Description |
|---|---|---|---|
scrape | boolean | false | Also scrape content of discovered pages |
scrapeConcurrency | number | 2 | Concurrent scraping threads |
formats | Array<"markdown" | "html"> | ["markdown", "html"] | Output formats when scraping |
Rate Limiting Options
| Option | Type | Default | Description |
|---|---|---|---|
delayMs | number | 1000 | Delay between requests (ms) |
timeoutMs | number | undefined | Total timeout for crawl (ms) |
URL Filtering Options
| Option | Type | Default | Description |
|---|---|---|---|
includePatterns | string[] | undefined | URL patterns to include (regex) |
excludePatterns | string[] | undefined | URL patterns to exclude (regex) |
Request Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
userAgent | string | undefined | Custom user agent string |
proxy | ProxyConfig | undefined | Proxy configuration |
Debugging Options
| Option | Type | Default | Description |
|---|---|---|---|
verbose | boolean | false | Enable verbose logging |
showChrome | boolean | false | Show browser window |

