vibium
v26.11.16
Published
Browser automation for AI agents and humans
Maintainers
Readme
Vibium
Browser automation for AI agents and humans.
Installation
npm install vibiumChrome for Testing downloads on first launch if it isn't installed. To fetch it
ahead of time (CI images, offline machines): npx vibium setup browser.
Quick Start
Async API
import { browser } from 'vibium'
import { writeFile } from 'fs/promises'
const bro = await browser.start()
const vibe = await bro.page()
await vibe.go('https://example.com')
const link = await vibe.find({ css: 'a' })
console.log(await link.text())
await link.click()
const screenshot = await vibe.screenshot()
await writeFile('screenshot.png', screenshot)
await bro.stop()Sync API
const { browser } = require('vibium/sync')
const { writeFileSync } = require('fs')
const bro = browser.start()
const vibe = bro.page()
vibe.go('https://example.com')
const link = vibe.find({ css: 'a' })
console.log(link.text())
link.click()
const screenshot = vibe.screenshot()
writeFileSync('screenshot.png', screenshot)
bro.stop()CLI
The same package ships a vibium command-line tool. It is a native binary, so
once installed it drives the browser from a shell or a non-Node harness (Make,
Python, bash) with no Node runtime involved.
npm 12 and later do not run install scripts. There the vibium command starts
through a small Node launcher until you run vibium setup, which links the
binary in its place.
npx vibium go https://example.com # or node_modules/.bin/vibium
npx vibium map # list interactive elements as @refs
npx vibium find css "a" # find an element
npx vibium click "a"
npx vibium screenshot -o shot.png
npx vibium --help # full command listGive it a plain-language goal (needs AI configured), or use the explicit commands above:
npx vibium "open example.com and screenshot the pricing page"Environment Variables
| Variable | Description |
|----------|-------------|
| VIBIUM_SKIP_BROWSER_DOWNLOAD | Set to 1 to skip the automatic Chrome download |
Requirements
- Node.js 18+ for the JavaScript API. The
vibiumCLI is a native binary and needs no Node runtime to run once it is linked (see CLI).
Links
License
Apache-2.0
