devtools

Playwright-go: Automate Browsers

Control Chromium, Firefox and WebKit with a single API, for founders and developers
3,466 stars239 forksGoGuide quality 9/10Updated 7/17/2026100% free · open source
What it does

Playwright-go is a browser automation library that allows you to control Chromium, Firefox, and WebKit with a single API, enabling automated browsing and testing across multiple browsers.

When to use it
  • When you need to automate web browsing for data scraping or monitoring
  • When you want to write end-to-end tests for your web application across multiple browsers
  • When you need to generate screenshots or PDFs of web pages programmatically
Ready-to-paste prompt
page, err := context.NewPage(); page.Goto("https://example.com"); page.Click("text=Login"); page.Fill("input[name="username"]", "your_username"); page.Fill("input[name="password"]", "your_password"); page.Click("text=Submit")
Heads up: Make sure you have the required browser binaries installed on your system, as playwright-go will not download them automatically; you can use the `playwright.BinaryDownloadURL` variable to specify the download URL
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

🛠️ Technical setup

Expect 20–40 minutes in a terminal — or let your AI agent drive it.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/playwright-go && curl -fsSL https://workflowstacks.com/api/skills/playwright-go/claude-skill -o ~/.claude/skills/playwright-go/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How Playwright-go: Automate Browsers works
Codeflow
Free to inspect

Playwright-go: Automate Browsers is a medium Go project (~15k lines across 100 code files, plus 72 test files). Expect some technical setup — comfortable with a terminal, or ask a developer. Last commit a month ago, MIT license, has a test suite.

Size
Medium codebase
~15k lines · 100 code files · ~2 h to skim
Setup
Some technical setup
Comfortable with a terminal? 20–40 min. Otherwise ask a dev.
Runs on
Go
No API keys detected
Go 96%HTML 3%Shell 1%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    CLAUDE.md
    The instructions the AI actually follows
  3. 3
    run.go
    Where the program starts running
  4. 4
    go.mod
    Dependencies and the commands it exposes
  5. 5
    internal/safe/map.go
    Inside internal/ — the main logic begins here
What's in each folder
internal/Core code — the actual logic1 files
cmd/Command-line entry points1 files
examples/Examples you can copy11 files
docs/Documentation2 files
scripts/Helper scripts5 files
patches/Patches1 files
tests/Tests — proof it works244 files
.claude/Editor / agent settings7 files
READMEHas testsDocumentedCI checksExamples includedMIT licenseUpdated this month
Quick Actions
Details
Creator
playwright-community
Language
Go
Category
devtools
Published
8/16/2020

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.