JavaScript / Node.js
Zero external runtime dependencies on modern Node.js with built-in fetch.
Download JavaScript helper →Browser API
Use small wrappers around discovery and CDP rather than hiding runtime target identity. JavaScript and Python examples should rediscover targets after reconnects.
Generated helpers
The helpers are generated from the Browser API contract and intentionally stay small: they discover the running browser, list targets, resolve the current target and return its CDP WebSocket URL. They do not hide runtime target identity.
Zero external runtime dependencies on modern Node.js with built-in fetch.
Download JavaScript helper →Standard-library discovery helper using urllib. Add your preferred CDP/WebSocket library for protocol control.
Download Python helper →const { SocialBrowserAPI } = require('./social-browser-api.js'); const api = new SocialBrowserAPI('http://127.0.0.1:60101'); const target = await api.resolveTarget({ type: 'page' }); console.log(target.webSocketDebuggerUrl);Identity
Related
Choose the right integration path.
Overview →Set up the API/CDP client and discovery flow.
Setup →Use practical examples and target-selection patterns.
Examples →