
Security News
The Nightmare Before Deployment
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.
@agent-infra/browser-ui
Advanced tools
@agent-infra/browser-ui is a CDP-based browser remote casting solution. It implements basic capability encapsulation based on @agent-infra/browser and can be directly referenced as a Web component by web pages.
Users only need to provide a CDP WebSocket URL with permissions, and @agent-infra/browser-ui can display the remote browser's page, and you can also manually intervene in browser operations, which is very useful in scenarios without VNC and headless browser.
npm install @agent-infra/browser-ui
Usage in FE projects:
import { BrowserUI } from '@agent-infra/browser-ui';
const container = document.getElementById('browserContainer');
if (!container) {
throw new Error('Browser container element not found');
}
BrowserUI.create({
root: container,
browserOptions: {
connect: {
browserWSEndpoint: 'https://example.com/ws/url',
},
},
});
Or use the unpkg CDN to use it on any webpage:
<!doctype html>
<html lang="en">
<body>
<div id="browserContainer"></div>
<script src="https://unpkg.com/@agent-infra/browser/dist/bundle/index.js"></script>
<script>
const BrowserUI = window.agent_infra_browser_ui.BrowserUI;
BrowserUI.create({
root: document.getElementById('browserContainer'),
browserOptions: {
connect: {
// @ts-ignore
browserWSEndpoint: 'https://example.com/ws/url',
},
},
});
</script>
</body>
</html>
A complete usable example, which can be run directly with npm run dev in the current directory or viewed in the /examples directory within the package.
For detailed documentation on all features, please refer to our complete documentation.
switchTab/createTab/closeTab functionsgoBack/goForward/reload/gotoAlert/Confirmmove/hover/click/drag operationsApache License 2.0.
Special thanks to the open source projects that inspired this toolkit:
FAQs
简体中文 | English
The npm package @agent-infra/browser-ui receives a total of 10 weekly downloads. As such, @agent-infra/browser-ui popularity was classified as not popular.
We found that @agent-infra/browser-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.

Research
/Security News
Impostor NuGet package Tracer.Fody.NLog typosquats Tracer.Fody and its author, using homoglyph tricks, and exfiltrates Stratis wallet JSON/passwords to a Russian IP address.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.