@josharsh/pixelpi-cdp
v0.1.0
Published
Thin Chrome DevTools Protocol transport powering pixelpi's pixel-cheap look() over raw CDP.
Maintainers
Readme
@josharsh/pixelpi-cdp
The browser substrate for pixelpi — a thin client over the raw Chrome DevTools Protocol plus the six primitives (look, act, fill, nav, eval, store). No Playwright.
import { launchChrome, createBrowserTools } from "@josharsh/pixelpi-cdp";
import { MemoryStore } from "@josharsh/pixelpi-core";
const { session, close } = await launchChrome({ headless: true, startUrl: "https://example.com" });
const tools = createBrowserTools({ session, store: new MemoryStore() });
// tools[0] = look, tools[4] = eval — hand them to an agent loop, or call directly.
await close();See the main repo for the full story. MIT.
