{"_id":"@pixygon/browser","name":"@pixygon/browser","description":"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).","license":"UNLICENSED","dist-tags":{"latest":"0.1.5"},"versions":{"0.1.0":{"name":"@pixygon/browser","version":"0.1.0","description":"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).","type":"module","main":"./src/index.mjs","exports":{".":"./src/index.mjs","./chromium":"./src/chromium.mjs"},"bin":{"pixygon-browser":"bin/pixygon-browser.mjs"},"files":["src","bin","README.md","CHANGELOG.md"],"scripts":{"test":"node --test test/*.test.mjs"},"engines":{"node":">=20"},"license":"UNLICENSED","dist":{"integrity":"sha512-l4KpyYMOes6KOZm+t0FKYZjtFGANLLOCvq9xckjhkMzhFyWYdKnIbrvMK35BCx6BoqWLzzfvdfYN815SD98ZNg==","shasum":"448be3e024af4a81fe4c87c23c00f41be4e1bf33","tarball":"https://ppm.pixygon.io/@pixygon/browser/-/browser-0.1.0.tgz"},"readmeFilename":"README.md","_id":"@pixygon/browser@0.1.0","_integrity":"sha512-l4KpyYMOes6KOZm+t0FKYZjtFGANLLOCvq9xckjhkMzhFyWYdKnIbrvMK35BCx6BoqWLzzfvdfYN815SD98ZNg==","_resolved":"/tmp/dyson-ppm-425321-1793804885619/@pixygon/browser/pixygon-browser-0.1.0.tgz","_from":"file:pixygon-browser-0.1.0.tgz","_nodeVersion":"26.13.0","_npmVersion":"12.2.1"},"0.1.1":{"name":"@pixygon/browser","version":"0.1.1","description":"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).","type":"module","main":"./src/index.mjs","exports":{".":"./src/index.mjs","./chromium":"./src/chromium.mjs"},"bin":{"pixygon-browser":"bin/pixygon-browser.mjs"},"files":["src","bin","README.md","CHANGELOG.md"],"scripts":{"test":"node --test test/*.test.mjs"},"engines":{"node":">=20"},"license":"UNLICENSED","dist":{"integrity":"sha512-8a2yTOweTlAkSIcCqFKZky3T/1kaR9chuPjUl1028mSxUHXppWG5VtIz6oF5AREp/IIG6xJp8VwNTZ8941oTaA==","shasum":"bff2d6c25e2d72f3a47c52bf2776f8a78954beb7","tarball":"https://ppm.pixygon.io/@pixygon/browser/-/browser-0.1.1.tgz"},"readmeFilename":"README.md","_id":"@pixygon/browser@0.1.1","_integrity":"sha512-8a2yTOweTlAkSIcCqFKZky3T/1kaR9chuPjUl1028mSxUHXppWG5VtIz6oF5AREp/IIG6xJp8VwNTZ8941oTaA==","_resolved":"/tmp/dyson-ppm-503179-1793805579298/@pixygon/browser/pixygon-browser-0.1.1.tgz","_from":"file:pixygon-browser-0.1.1.tgz","_nodeVersion":"26.13.0","_npmVersion":"12.2.1"},"0.1.2":{"name":"@pixygon/browser","version":"0.1.2","description":"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).","type":"module","main":"./src/index.mjs","exports":{".":"./src/index.mjs","./chromium":"./src/chromium.mjs"},"bin":{"pixygon-browser":"bin/pixygon-browser.mjs"},"files":["src","bin","README.md","CHANGELOG.md"],"scripts":{"test":"node --test test/*.test.mjs"},"engines":{"node":">=20"},"license":"UNLICENSED","dist":{"integrity":"sha512-pNlh/IwNED/4VOk8FP55mk1TKGm9LV9NedG/If0TxAqsTuCH0OxVkGPWcRoaiq8mr40SAnk8/WLhvCGKHioTBg==","shasum":"cf3745940ee46d72d10fe0c3326364401deed298","tarball":"https://ppm.pixygon.io/@pixygon/browser/-/browser-0.1.2.tgz"},"readmeFilename":"README.md","_id":"@pixygon/browser@0.1.2","_integrity":"sha512-pNlh/IwNED/4VOk8FP55mk1TKGm9LV9NedG/If0TxAqsTuCH0OxVkGPWcRoaiq8mr40SAnk8/WLhvCGKHioTBg==","_resolved":"/tmp/dyson-ppm-532146-1793806352183/@pixygon/browser/pixygon-browser-0.1.2.tgz","_from":"file:pixygon-browser-0.1.2.tgz","_nodeVersion":"26.13.0","_npmVersion":"12.2.1"},"0.1.3":{"name":"@pixygon/browser","version":"0.1.3","description":"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).","type":"module","main":"./src/index.mjs","exports":{".":"./src/index.mjs","./chromium":"./src/chromium.mjs"},"bin":{"pixygon-browser":"bin/pixygon-browser.mjs"},"files":["src","bin","README.md","CHANGELOG.md"],"scripts":{"test":"node --test test/*.test.mjs"},"engines":{"node":">=20"},"license":"UNLICENSED","dist":{"integrity":"sha512-Ks85jQMFl4L3nCbT4ya/YqFW8yVP/V7IQHzcBl75dna5cUqbSec+Rm3cpFaPQC4ZV3X4X1vbLiOcj7JH1tqbJA==","shasum":"5da2379cc1d39ca88f339cdb4e286c56c914ddee","tarball":"https://ppm.pixygon.io/@pixygon/browser/-/browser-0.1.3.tgz"},"readmeFilename":"README.md","_id":"@pixygon/browser@0.1.3","_integrity":"sha512-Ks85jQMFl4L3nCbT4ya/YqFW8yVP/V7IQHzcBl75dna5cUqbSec+Rm3cpFaPQC4ZV3X4X1vbLiOcj7JH1tqbJA==","_resolved":"/tmp/dyson-ppm-1129686-1793809461571/@pixygon/browser/pixygon-browser-0.1.3.tgz","_from":"file:pixygon-browser-0.1.3.tgz","_nodeVersion":"26.13.0","_npmVersion":"12.2.1"},"0.1.4":{"name":"@pixygon/browser","version":"0.1.4","description":"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).","type":"module","main":"./src/index.mjs","exports":{".":"./src/index.mjs","./chromium":"./src/chromium.mjs"},"bin":{"pixygon-browser":"bin/pixygon-browser.mjs"},"files":["src","bin","README.md","CHANGELOG.md"],"scripts":{"test":"node --test test/*.test.mjs"},"engines":{"node":">=20"},"license":"UNLICENSED","dist":{"integrity":"sha512-jYVKTFmqU3GU2zcXro2B5kUYnPVu9xlDOCqmshOShnntVDUm7PI0Lqcjvq8fGDq7ZeeKXr/fWmBgA1q0MJ7BVQ==","shasum":"23db4efc851502631c3f3d55ebfdd21efcf1e90e","tarball":"https://ppm.pixygon.io/@pixygon/browser/-/browser-0.1.4.tgz"},"readmeFilename":"README.md","_id":"@pixygon/browser@0.1.4","_integrity":"sha512-jYVKTFmqU3GU2zcXro2B5kUYnPVu9xlDOCqmshOShnntVDUm7PI0Lqcjvq8fGDq7ZeeKXr/fWmBgA1q0MJ7BVQ==","_resolved":"/tmp/dyson-ppm-1454627-1793815797986/@pixygon/browser/pixygon-browser-0.1.4.tgz","_from":"file:pixygon-browser-0.1.4.tgz","_nodeVersion":"26.13.0","_npmVersion":"12.2.1"},"0.1.5":{"name":"@pixygon/browser","version":"0.1.5","description":"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).","type":"module","main":"./src/index.mjs","exports":{".":"./src/index.mjs","./chromium":"./src/chromium.mjs"},"bin":{"pixygon-browser":"bin/pixygon-browser.mjs"},"files":["src","bin","README.md","CHANGELOG.md"],"scripts":{"test":"node --test test/*.test.mjs"},"engines":{"node":">=20"},"license":"UNLICENSED","dist":{"integrity":"sha512-WANYU9FJ9OT3TyN1gAIl3pt3o8kqKN2Ve5bFPKVIrU96gCj6tA/LmvFUcsNVMzNpHtsmzMbBNB52kXy4DmnI+g==","shasum":"4202ea3a1a168268d5b56f9d8565a2edaef9ff30","tarball":"https://ppm.pixygon.io/@pixygon/browser/-/browser-0.1.5.tgz"},"readmeFilename":"README.md","_id":"@pixygon/browser@0.1.5","_integrity":"sha512-WANYU9FJ9OT3TyN1gAIl3pt3o8kqKN2Ve5bFPKVIrU96gCj6tA/LmvFUcsNVMzNpHtsmzMbBNB52kXy4DmnI+g==","_resolved":"/tmp/dyson-ppm-3436317-1795261764144/@pixygon/browser/pixygon-browser-0.1.5.tgz","_from":"file:pixygon-browser-0.1.5.tgz","_nodeVersion":"26.13.1","_npmVersion":"12.2.2"}},"time":{"0.1.0":"2026-11-04T15:08:06.440Z","modified":"2026-11-21T11:49:31.180Z","created":"2026-11-04T15:08:06.440Z","0.1.1":"2026-11-04T15:19:40.131Z","0.1.2":"2026-11-04T15:32:32.994Z","0.1.3":"2026-11-04T16:24:22.846Z","0.1.4":"2026-11-04T18:09:58.782Z","0.1.5":"2026-11-21T11:49:31.180Z"},"readme":"# @pixygon/browser\n\nPixygon's own headless browser driver. It replaces Playwright across the estate (Anders, 4 Nov 2026).\n\n- **Chromium over the DevTools protocol**, through Chromium's debugging pipe: no port, no WebSocket, no dependencies.\n- **One pinned Chromium per node**: Google's Chrome for Testing headless shell, version pinned in\n  `src/chromium.mjs`, verified by SHA-256 before it is unpacked into `~/.cache/pixygon-browser`.\n- **Playwright's API, the slice the estate uses**, so a script moves over by changing its import.\n\n```js\nimport { chromium } from '@pixygon/browser';\n\nconst browser = await chromium.launch();           // downloads the pinned Chromium on first use\nconst page = await browser.newPage({ locale: 'nb-NO' });\nawait page.goto('https://pixygon.io', { waitUntil: 'networkidle' });\nawait page.getByRole('button', { name: 'Kjøp' }).click();\nawait page.screenshot({ path: 'home.png', fullPage: true });\nawait browser.close();\n```\n\n## Install the browser\n\n```bash\nnpx pixygon-browser install   # once per node; `launch()` also does it on first use\nnpx pixygon-browser path      # the binary it launches\n```\n\n`PIXYGON_CHROMIUM=/path/to/chrome` uses another binary; `PIXYGON_BROWSER_CACHE` moves the cache.\n\n## What is covered\n\n- **Browser and context:** `chromium.launch({ args, executablePath, timeout })`, `launchPersistentContext`,\n  `newContext({ viewport, locale, timezoneId, userAgent, extraHTTPHeaders, deviceScaleFactor, isMobile, hasTouch,\n  storageState, geolocation, permissions, colorScheme, offline, javaScriptEnabled, bypassCSP })`, `devices`,\n  cookies, `storageState`, `addInitScript`, `route`, `grantPermissions`.\n- **Page:** `goto` (load, domcontentloaded, networkidle, commit), `reload`, `goBack`, `waitForLoadState`,\n  `waitForURL`, `waitForSelector`, `waitForFunction`, `waitForTimeout`, `waitForResponse`, `waitForRequest`,\n  `waitForEvent`, `evaluate`, `content`, `setContent`, `title`, `url`, `screenshot` (png or jpeg, full page, clip),\n  `pdf`, `setViewportSize`, `emulateMedia`, `route` (`fulfill`, `continue`, `abort`, `fetch`), `keyboard`, `mouse`,\n  and the events `console`, `pageerror`, `request`, `response`, `requestfailed`, `requestfinished`, `dialog`, `close`.\n  `networkidle` means the page has loaded and no request has been in flight for 500 ms. A live connection does not\n  count: a WebSocket, an EventSource stream or a socket.io (engine.io) long-poll. A page that keeps a socket open is\n  idle once it has rendered, and an ordinary request that is still pending keeps it from being idle.\n- **Locators:** CSS, including `:has-text()`, `:text()` and `:visible`; `text=`, `xpath=`, `role=`, `>>`;\n  `getByRole` / `getByText` / `getByLabel` / `getByPlaceholder` / `getByTestId` / `getByAltText` / `getByTitle`;\n  `first` / `last` / `nth` / `filter` / `locator` / `all`.\n  - Actions: `click` (waits until visible, enabled, stable and not covered, as Playwright does), `dblclick`, `hover`,\n    `fill`, `type`, `pressSequentially`, `press`, `check`, `uncheck`, `selectOption`, `setInputFiles`.\n  - Reads: `count`, `isVisible`, `isEnabled`, `isChecked`, `getAttribute`, `innerText`, `textContent`,\n    `inputValue`, `allTextContents`, `boundingBox`, `evaluate`, `screenshot`.\n  - Strict mode: an action on a locator that matches several elements throws.\n- **`request`:** `request.newContext()`, plus `page.request` and `context.request`, each with\n  `get` / `post` / `put` / `patch` / `delete` / `fetch` (Node's fetch, sending the context's cookies).\n\nChromium only: `firefox.launch()` and `webkit.launch()` throw.\n\n## Tests\n\n`npm test` runs against the pinned Chromium and a local server. Run `npx pixygon-browser install` first.\n","readmeFilename":"README.md"}