Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@harnessa-fe/runtime

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harnessa-fe/runtime

Browser-side SDK injected into the dev page. Connects to the MCP server via WebSocket and executes commands.

latest
Source
npmnpm
Version
3.0.0
Version published
Weekly downloads
2.6K
Maintainers
1
Weekly downloads
 
Created
Source

Harnessa-FE

@harnessa-fe/runtime

Browser runtime client for Harnessa-FE. Captures DOM/console/network events and executes commands from the MCP server in the user's real browser tab.

Auto-injected by the Vite plugin / Webpack plugin — you typically install it as a peer of the plugin.

Install

pnpm add -D @harnessa-fe/runtime

What it does

  • Connects to the MCP server via WebSocket on dev page load
  • Streams console.*, fetch/XHR, window.error, unhandledrejection events
  • Captures rrweb session recordings for replay
  • Executes commands (page.click, page.type, page.dom_query, etc.)
  • Renders the annotation overlay (point-and-task)

Disabled automatically in production builds.

Manual usage (advanced)

For non-Vite/Webpack setups:

import { RuntimeClient } from '@harnessa-fe/runtime';

const client = new RuntimeClient({
    projectId: 'my-app',
    wsUrl: 'ws://localhost:47729',
});
client.start();

Docs

License

MIT

FAQs

Package last updated on 22 May 2026

Did you know?

Socket

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.

Install

Related posts