@ap3x/browser
v0.1.0
Published
Chrome DevTools Protocol browser control primitives
Readme
@ap3x/browser
Primitives for driving Chromium over the Chrome DevTools Protocol: sessions, navigation, DOM extraction, input, screenshots, and recording.
Part of AP3X — a TypeScript multi-agent framework.
Install
npm install @ap3x/browserWhat's inside
openBrowserSession(config)— the entry point; resolves to a local launch or a remote CDP endpoint.- CDP transport — typed protocol access with a target registry and reconnect handling.
- DOM — extraction, serialization, clickability and paint-order analysis, and stable element hashing.
- Navigation — a navigation policy with domain allow-lists and IP-blocking rules.
- Input — human-like input dispatch with dialog resilience.
- Capture — screenshots, HAR recording, and screencast.
The agent that drives these lives in @ap3x/browser-agent.
Documentation
See the AP3X repository for architecture notes, the full package map, and examples.
License
MIT
