AbrasioDocumentation

Abrasio SDK Reference

Stealth browser automation built on Patchright — a Playwright fork that patches CDP leaks, removes navigator.webdriver and fixes headless indicators. Available as a free local SDK or a cloud-managed service.

Fingerprint Spoofing

WebGL, canvas, audio, WebRTC noise injection to defeat fingerprinting-based detection.

Human Behavior

Bezier-curve mouse movement, variable typing speed with typos, realistic scroll patterns.

40+ Geo-Regions

Auto-configures locale, timezone, and proxy geo-routing for BR, US, DE, JP, and more.

Persistent Profiles

Cookie jars and browser state survive across sessions — local file or cloud-managed.

CDP WebSocket

Cloud sessions connect via Chrome DevTools Protocol — same API as local Playwright.

Free Local Mode

No API key, no cost — runs Patchright on your machine. Upgrade to cloud for managed infra.

Documentation

Abrasio Node.js SDK reference

SDK:

Installation

npm install abrasio-sdk
npx patchright install chromium

Mode auto-detection

The SDK automatically selects the mode based on the API key:

ConditionMode
No api_keyLocal (Free)
api_key starts with sk_Cloud (Paid)

Local mode example

import { Abrasio } from 'abrasio-sdk';

const abrasio = new Abrasio({ headless: true });

try {
  await abrasio.start();
  const page = await abrasio.newPage();
  await page.goto('https://example.com');

  const title = await page.title();
  console.log('Title:', title);
} finally {
  await abrasio.close();
}

Cloud mode example

import { Abrasio } from 'abrasio-sdk';

const abrasio = new Abrasio({
  apiKey: 'sk_live_your_api_key_here',
  url: 'https://target-site.com',   // Used for region inference
});

try {
  await abrasio.start();

  if (abrasio.liveViewUrl) {
    console.log('Watch live:', abrasio.liveViewUrl);
  }

  const page = await abrasio.newPage();
  await page.goto('https://target-site.com');
  const html = await page.content();
  console.log(html);
} finally {
  await abrasio.close();
}