@pixygon/browser
Pixygon's own headless browser driver: Chromium over the DevTools protocol with no dependencies, a pinned Chrome for Testing build verified by SHA-256, and the slice of Playwright's API the estate's browser scripts use (a script moves over by changing its import).
Install
# .npmrc @pixygon:registry=https://ppm.pixygon.io/ npm install @pixygon/browser@0.1.5
Versions
| Version | Published | Integrity |
|---|---|---|
| 0.1.5 latest | 2026-11-21 | sha512-WANYU9FJ9OT3TyN… |
| 0.1.4 | 2026-11-04 | sha512-jYVKTFmqU3GU2zc… |
| 0.1.3 | 2026-11-04 | sha512-Ks85jQMFl4L3nCb… |
| 0.1.2 | 2026-11-04 | sha512-pNlh/IwNED/4VOk… |
| 0.1.1 | 2026-11-04 | sha512-8a2yTOweTlAkSIc… |
| 0.1.0 | 2026-11-04 | sha512-l4KpyYMOes6KOZm… |
@pixygon/browser
Pixygon's own headless browser driver. It replaces Playwright across the estate (Anders, 4 Nov 2026).
- Chromium over the DevTools protocol, through Chromium's debugging pipe: no port, no WebSocket, no dependencies.
- One pinned Chromium per node: Google's Chrome for Testing headless shell, version pinned in
src/chromium.mjs, verified by SHA-256 before it is unpacked into~/.cache/pixygon-browser. - Playwright's API, the slice the estate uses, so a script moves over by changing its import.
import { chromium } from '@pixygon/browser';
const browser = await chromium.launch(); // downloads the pinned Chromium on first use
const page = await browser.newPage({ locale: 'nb-NO' });
await page.goto('https://pixygon.io', { waitUntil: 'networkidle' });
await page.getByRole('button', { name: 'Kjøp' }).click();
await page.screenshot({ path: 'home.png', fullPage: true });
await browser.close();
Install the browser
npx pixygon-browser install # once per node; `launch()` also does it on first use
npx pixygon-browser path # the binary it launches
PIXYGON_CHROMIUM=/path/to/chrome uses another binary; PIXYGON_BROWSER_CACHE moves the cache.
What is covered
- Browser and context:
chromium.launch({ args, executablePath, timeout }),launchPersistentContext,newContext({ viewport, locale, timezoneId, userAgent, extraHTTPHeaders, deviceScaleFactor, isMobile, hasTouch, storageState, geolocation, permissions, colorScheme, offline, javaScriptEnabled, bypassCSP }),devices, cookies,storageState,addInitScript,route,grantPermissions. - Page:
goto(load, domcontentloaded, networkidle, commit),reload,goBack,waitForLoadState,waitForURL,waitForSelector,waitForFunction,waitForTimeout,waitForResponse,waitForRequest,waitForEvent,evaluate,content,setContent,title,url,screenshot(png or jpeg, full page, clip),pdf,setViewportSize,emulateMedia,route(fulfill,continue,abort,fetch),keyboard,mouse, and the eventsconsole,pageerror,request,response,requestfailed,requestfinished,dialog,close.networkidlemeans the page has loaded and no request has been in flight for 500 ms. A live connection does not count: a WebSocket, an EventSource stream or a socket.io (engine.io) long-poll. A page that keeps a socket open is idle once it has rendered, and an ordinary request that is still pending keeps it from being idle. - Locators: CSS, including
:has-text(),:text()and:visible;text=,xpath=,role=,>>;getByRole/getByText/getByLabel/getByPlaceholder/getByTestId/getByAltText/getByTitle;first/last/nth/filter/locator/all.- Actions:
click(waits until visible, enabled, stable and not covered, as Playwright does),dblclick,hover,fill,type,pressSequentially,press,check,uncheck,selectOption,setInputFiles. - Reads:
count,isVisible,isEnabled,isChecked,getAttribute,innerText,textContent,inputValue,allTextContents,boundingBox,evaluate,screenshot. - Strict mode: an action on a locator that matches several elements throws.
- Actions:
request:request.newContext(), pluspage.requestandcontext.request, each withget/post/put/patch/delete/fetch(Node's fetch, sending the context's cookies).
Chromium only: firefox.launch() and webkit.launch() throw.
Tests
npm test runs against the pinned Chromium and a local server. Run npx pixygon-browser install first.