Skip to main content

Install

Node 18+ required. Uses native fetch — no runtime dependencies. Works in Node, Deno, Cloudflare Workers, Bun, modern browsers.

Configuration

Running tasks

run() submits + polls internally. For manual control:

All task options

Sessions / follow-ups

Fetch every turn:

Design extraction

Pull a site’s images, fonts, colors, icons, design tokens, and logo as structured data. See Design extraction for what each extractor returns.
run() submits + polls until the extraction terminates (typically 5–15 seconds). For manual control:

Options

enableIpRotation defaults to false. Set it to true to route the extraction through the residential proxy/IP rotation pool. task.design carries the raw JSON the server returns — see the response schema. Asset URLs are signed S3 links valid for 7 days; re-submit the task to refresh.

End-user credentials

API key management

Create and revoke API keys in the dashboard under Settings → API Keys. Key lifecycle is dashboard-only by design — so a leaked key can’t mint more.

Exceptions

Typed results

Every response type is a plain interface. Unknown server fields are preserved on .raw so future additions don’t break you:

Version pinning

The SDK follows semver. During 0.x.y, API may change on minor bumps. Pin conservatively:

Source

Published on npm. Issues and feature requests to team@stablebrowse.ai.