🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@feedthrough/playwright

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@feedthrough/playwright

latest
Source
npmnpm
Version
0.3.0
Version published
Weekly downloads
3
-25%
Maintainers
1
Weekly downloads
 
Created
Source

@feedthrough/playwright

feedthrough.dev · npm · GitHub

Playwright adapter for Feedthrough. Injects the bridge into every page before it loads, so console output and network requests are captured from the first line of page JavaScript.

While your tests run, an AI agent connected to the MCP server can observe what's happening in the browser in real time — useful for diagnosing test failures interactively.

Install

npm install --save-dev @feedthrough/playwright

Usage

Replace the @playwright/test import in your spec files with @feedthrough/playwright:

// tests/example.spec.ts
import { test, expect } from "@feedthrough/playwright";

test("my test", async ({ page }) => {
  await page.goto("/");
  // bridge is already injected — MCP server can observe this page
});

Or create a shared fixture file to avoid touching every spec:

// tests/fixtures.ts
export { test, expect } from "@feedthrough/playwright";

Options

If you need a non-default server URL, use setupFeedthrough instead of the pre-built test:

import { setupFeedthrough, expect } from "@feedthrough/playwright";

export const test = setupFeedthrough({ serverUrl: "ws://localhost:9000" });
export { expect };

Running alongside the MCP server

# Terminal 1 — MCP server
node node_modules/@feedthrough/mcp/dist/index.js

# Terminal 2 — tests
npx playwright test

An AI agent can connect to the MCP server while the tests are running and observe each page via get_console_logs, get_network_requests, and query_dom.

FAQs

Package last updated on 07 Jun 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