
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
@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:
<!doctype html>
<html lang="en">
<body>
<div id="browserContainer"></div>
<script src="https://unpkg.com/@agent-infra/browser-ui/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
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
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.