Move plugin install section to top of README

This commit is contained in:
Adam Ladachowski
2026-02-11 13:01:32 +01:00
parent 216eb8edf3
commit 7cf2e48e72
+33 -31
View File
@@ -6,37 +6,6 @@
[![Node.js](https://img.shields.io/node/v/@saiden/browse.svg)](https://nodejs.org) [![Node.js](https://img.shields.io/node/v/@saiden/browse.svg)](https://nodejs.org)
#### Headless browser automation for Claude Code using Playwright WebKit. #### Headless browser automation for Claude Code using Playwright WebKit.
## Installation
```bash
npm install @saiden/browse
npx playwright install webkit
```
## CLI Usage
```bash
# Take a screenshot
browse https://example.com
# Custom viewport and output
browse -o page.png -w 1920 -h 1080 https://example.com
# Query elements
browse -q "a[href]" https://example.com
browse -q "img" -j https://example.com # JSON output
# Click and interact
browse -c "button.submit" https://example.com
browse -t "input[name=q]=hello" -c "button[type=submit]" https://google.com
# Chain actions
browse -c ".cookie-accept" -c "a.nav-link" -q "h1" https://example.com
# Interactive mode (visible browser)
browse -i --headed https://example.com
```
## Claude Code Plugin (Recommended) ## Claude Code Plugin (Recommended)
Install as a Claude Code plugin for the best integration: Install as a Claude Code plugin for the best integration:
@@ -81,6 +50,39 @@ claude plugin marketplace update saiden && claude plugin update browse@saiden
| `@browse:browser://html/full` | Complete page HTML | | `@browse:browser://html/full` | Complete page HTML |
| `@browse:browser://screenshot` | Page screenshot as base64 PNG | | `@browse:browser://screenshot` | Page screenshot as base64 PNG |
---
## Installation (npm)
```bash
npm install @saiden/browse
npx playwright install webkit
```
## CLI Usage
```bash
# Take a screenshot
browse https://example.com
# Custom viewport and output
browse -o page.png -w 1920 -h 1080 https://example.com
# Query elements
browse -q "a[href]" https://example.com
browse -q "img" -j https://example.com # JSON output
# Click and interact
browse -c "button.submit" https://example.com
browse -t "input[name=q]=hello" -c "button[type=submit]" https://google.com
# Chain actions
browse -c ".cookie-accept" -c "a.nav-link" -q "h1" https://example.com
# Interactive mode (visible browser)
browse -i --headed https://example.com
```
## MCP Server (Standalone) ## MCP Server (Standalone)
Use with any MCP-compatible client: Use with any MCP-compatible client: