chopchop

High-level browser automation library around Chrome DevTools Protocol

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version 0.1.0
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-09-05 07:27

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

API reference
Github Actions Github Actions

Key Features

  • High-level library based on ChromeDevToolsProtocol package
  • Browser automation - launch Chrome, navigate pages, extract content
  • DOM querying - querySelector / querySelectorAll with full element access
  • Mouse & keyboard - click, double-click, hover, drag & drop, type text, press keys
  • JavaScript evaluation - evaluate / evaluateHandle with return values
  • Navigation control - waitForNavigation, waitForSelector, multiple waitUntil modes (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 - setInputFiles on file inputs
  • Select/dropdown - select by value, label, or index
  • Screenshots - page screenshots as base64 data
  • Isolated sessions - BrowserContext with 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/browser package}

❤ Contributions & Support

OpenCode 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.