chopchop
High-level browser automation library around Chrome DevTools Protocol
Summary
| Latest Version | 0.1.0 |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-09-05 07:27 |
Tags
Authors
- George Lemon
Installation
nimble install chopchop
choosenim install chopchop
git clone https://github.com/georgelemon/chopchop
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| chopchop | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Dependencies
| Package | Version | Optional |
|---|---|---|
| nim >= | 2.2.0 | No |
| powpow >= | 0.1.9 | No |
| openparser >= | 0.1.9 | No |
Source
| Repository | https://github.com/georgelemon/chopchop |
|---|---|
| Homepage | https://github.com/georgelemon/chopchop |
| Registry Source | nimble_official |
README
ChopChop — A browser automation library around
Chrome DevTools Protocol
nimble install chopchop
Key Features
- High-level library based on ChromeDevToolsProtocol package
- Browser automation - launch Chrome, navigate pages, extract content
- DOM querying -
querySelector/querySelectorAllwith full element access - Mouse & keyboard - click, double-click, hover, drag & drop, type text, press keys
- JavaScript evaluation -
evaluate/evaluateHandlewith return values - Navigation control -
waitForNavigation,waitForSelector, multiplewaitUntilmodes (Load, DOMContentLoaded, NetworkIdle) - Device emulation - viewport, user agent, geolocation
- Cookie management - get, set, delete, clear cookies
- Local & session storage - read/write via CDP
- Dialog handling - alert/confirm/prompt auto-accept or custom handlers
- Console capture - listen to browser console messages
- Network interception - route, fulfill, abort requests with glob patterns
- File uploads -
setInputFileson file inputs - Select/dropdown - select by value, label, or index
- Screenshots - page screenshots as base64 data
- Isolated sessions -
BrowserContextwith separate cookies/storage per context - Init scripts - inject JavaScript before page scripts run
Examples
...
Projects using ChopChop
- https://github.com/dfkup/dfkup - A VM + JIT compiled scripting language written in Nim {planned as a
std/browserpackage}
❤ Contributions & Support
- 🐛 Found a bug? Create a new Issue
- 👋 Wanna help? Fork it!
![]() |
Switch to Open-Source LLMs via OpenCode GO, choosing from a variety of powerful models such as DeepSeek, Qwen, Kimi, GLM-5, MiniMax, MiMo. 🍕 Use our referral link to get started! |
🎩 License
MIT license. Made by Humans from OpenPeeps.
Copyright OpenPeeps & Contributors — All rights reserved.
