← All projects
Project record1 mention
Originally shared on Hacker News

Playwright-style browser automation API for Chrome extensions

A library that reimplements the Puppeteer/Playwright client API on top of native Chrome extension APIs, enabling browser automation to run inside a Chrome extension without the Chrome DevTools Protocol. Chrome extension APIs cover roughly 85% of CDP/Webdriver BiDi functionality (e.g., calling functions with chrome.scripting.executeScript() instead of script.callFunction) while preserving security features that shouldn't be bypassed; a proof of concept is planned in 2-3 weeks.

Last shared
01 / The problem

What it addresses

Running Playwright inside a Chrome extension currently requires the Chrome DevTools Protocol (CDP) to automate a browser, which hurts the user experience, is very slow, and opens security vulnerabilities.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Playwright-style browser automation API for Chrome extensions

    A library that reimplements the Puppeteer/Playwright client API on top of native Chrome extension APIs, enabling browser automation to run inside a Chrome extension without the Chrome DevTools Protocol. Chrome extension APIs cover roughly 85% of CDP/Webdriver BiDi functionality (e.g., calling functions with chrome.scripting.executeScript() instead of script.callFunction) while preserving security features that shouldn't be bypassed; a proof of concept is planned in 2-3 weeks.

    Problem: Running Playwright inside a Chrome extension currently requires the Chrome DevTools Protocol (CDP) to automate a browser, which hurts the user experience, is very slow, and opens security vulnerabilities.

    Posted by @dataviz1000 · Original source ↗

    Source text · @dataviz1000 · · Source ↗

    I'm copying the Puppeteer / Playwright client API to run in a Chrome extension using the native Chrome extension APIs.