@vd7/glider
v0.1.4
Published
Browser automation CLI with autonomous loop execution. Control Chrome via CDP, run YAML task files, execute in Ralph Wiggum loops.
Maintainers
Readme
Table of Contents
📝About
Control Chrome from terminal. Run YAML tasks. Loop until complete (Ralph Wiggum pattern).
- CDP-based - Direct Chrome DevTools Protocol control
- YAML tasks - Define automation steps declaratively
- Autonomous loops - Run until completion marker found
- Safety guards - Max iterations, timeout, exponential backoff
💻Install
npm i -g glidercliRequirements
- Node 18+
- Chrome with Glider extension
- bserve relay server
🚀Usage
glider status # check connection
glider goto "https://x.com" # navigate
glider eval "document.title" # run JS
glider run task.yaml # execute task file
glider loop task.yaml -n 50 # autonomous loop🔄The Loop
The loop command runs your task repeatedly until:
- Completion marker found (
LOOP_COMPLETEorDONE) - Max iterations reached
- Timeout hit
glider loop scrape-feed.yaml -n 100 -t 3600Safety: max iterations, timeout, exponential backoff on errors, state persistence.
📄Task Files
name: "Get timeline"
steps:
- goto: "https://x.com/home"
- wait: 3
- eval: "document.querySelectorAll('article').length"
- screenshot: "/tmp/timeline.png"⚡Commands
| Command | What |
|---------|------|
| glider status | Server/extension/tab status |
| glider start | Start relay server |
| glider goto <url> | Navigate |
| glider eval <js> | Execute JavaScript |
| glider click <sel> | Click element |
| glider type <sel> <text> | Type into input |
| glider screenshot | Capture page |
| glider run <file> | Run YAML task |
| glider loop <file> | Autonomous loop |
