gstack-browser
v0.1.0
Published
Lightweight local browser automation CLI for agent-driven QA.
Downloads
137
Maintainers
Readme
gstack-browser
This directory contains gstack-browser, a standalone Node + Playwright browser automation CLI used by gl-browse, gl-qa, gl-qa-only, and visual review skills.
Install dependencies for local development:
cd browse
npm install
npx playwright install chromiumRun it from this checkout:
./dist/browse help
./dist/browse goto http://localhost:3000
./dist/browse screenshot /tmp/page.pngOr install the published package globally:
npm i -g gstack-browserChoosing Local vs Published
The resolver supports three knobs:
GSTACK_BROWSER_BIN=/absolute/path/to/browser: hard override.GSTACK_BROWSER_PROVIDER=global: usegstack-browserorgstack-browsefromPATH.GSTACK_BROWSER_PROVIDER=local: use the checkout/state-localbrowse/dist/browse.
Default auto behavior prefers PATH first, then the local/state wrapper. This makes the published package the normal provider when installed globally.
For local package development, use npm's global link:
cd browse
npm install
npx playwright install chromium
npm linkAfter that, gstack-browser on PATH points at this checkout, so GSTACK_BROWSER_PROVIDER=global and the default auto mode both use the local linked package. To go back to the published package, unlink/reinstall with npm:
npm unlink -g gstack-browser
npm i -g gstack-browserTo bypass npm link entirely while working in this repo:
GSTACK_BROWSER_PROVIDER=local ./browse/bin/find-browseThe lite skill resolver checks, in order:
GSTACK_BROWSER_BIN, if set.gstack-browser/gstack-browseonPATH, unlessGSTACK_BROWSER_PROVIDER=local.$PROJECT/.gstack-lite/browse/dist/browse$GSTACK_LITE_HOME/browse/dist/browse
This first Node port focuses on headless local browser QA. It intentionally skips cookie import from installed browsers, Chrome side panel/extension workflows, headed handoff, and ngrok/pairing.
