
Product
Socket for ClickUp Is Now Available
Create ClickUp tasks from Socket alerts, automate ticketing with custom rules, and keep alert and task status synchronized.
@browser-echo/nuxt
Advanced tools
Nuxt 3/4 module for streaming browser console logs to your dev terminal.
Nuxt 3/4 module for streaming browser console logs to your dev terminal.
This Nuxt module registers a Nitro server route and a client plugin (dev-only) with zero manual wiring beyond adding the module to your configuration.
nuxt.config.tsnpm install -D @browser-echo/nuxt
# or
pnpm add -D @browser-echo/nuxt
Add the module to your Nuxt configuration:
// nuxt.config.ts
export default defineNuxtConfig({
modules: ['@browser-echo/nuxt'],
// Optional configuration
browserEcho: {
route: '/__client-logs',
include: ['warn', 'error'],
tag: '[web]',
batch: { size: 20, interval: 300 },
preserveConsole: true,
stackMode: 'condensed', // 'full' | 'condensed' | 'none'
}
});
That's it! Run nuxi dev and open your app—your server terminal will show browser logs.
interface BrowserEchoNuxtOptions {
enabled?: boolean; // default: true (dev only)
route?: `/${string}`; // default: '/__client-logs'
include?: BrowserLogLevel[]; // default: ['log','info','warn','error','debug']
preserveConsole?: boolean; // default: true
tag?: string; // default: '[browser]'
batch?: { size?: number; interval?: number }; // default: 20 / 300ms
stackMode?: 'full' | 'condensed' | 'none'; // default: 'condensed'
// Opt-in network capture (fetch/XHR/WS)
networkLogs?: {
enabled?: boolean;
captureFull?: boolean;
bodies?: {
request?: boolean;
response?: boolean;
maxBytes?: number; // default 2048 bytes
allowContentTypes?: string[]; // default ['application/json','text/','application/x-www-form-urlencoded']
prettyJson?: boolean; // default true
};
};
}
full: Send complete filtered stack tracecondensed (default): Send only the top application framenone: Do not send any stack frames// nuxt.config.ts
export default defineNuxtConfig({
modules: ['@browser-echo/nuxt'],
browserEcho: {
// Only forward warnings and errors
include: ['warn', 'error'],
// Custom tag for terminal output
tag: '[frontend]',
// Reduce noise with condensed stacks
stackMode: 'condensed',
// Batch settings for performance
batch: {
size: 10, // Send after 10 logs
interval: 500 // Or after 500ms
},
// Enable network body snippets (opt-in)
networkLogs: {
enabled: true,
bodies: { request: true, response: true, maxBytes: 2048 }
}
}
});
Nuxt automatically discovers and forwards logs to MCP servers. No configuration needed in most cases!
📖 First, set up the MCP server for your AI assistant, then configure framework options below.
The Nuxt server handler automatically detects MCP servers and forwards logs when available. When MCP is detected, terminal output is suppressed by default.
Discovery order:
BROWSER_ECHO_MCP_URL (normalized, trailing /mcp is stripped)http://127.0.0.1:5179 then http://localhost:5179.browser-echo-mcp.json (walks up parent directories)BROWSER_ECHO_MCP_URL=http://127.0.0.1:5179/mcp — Set MCP server URL (base URL is derived automatically). When set, the handler forwards; terminal printing is suppressed unless explicitly disabled.BROWSER_ECHO_SUPPRESS_TERMINAL=1 — Force suppress terminal outputBROWSER_ECHO_SUPPRESS_TERMINAL=0 — Force show terminal output even when MCP is activeSet BROWSER_ECHO_MCP_URL empty and avoid discovery by removing the module, or customize the handler if you need full control.
/__client-logs (configurable)The module registers the route directly with Nitro to avoid issues with Nuxt's dev proxy setup. This ensures reliable log forwarding even in complex development environments.
This package depends on @browser-echo/core for the client-side functionality.
browserEcho options, restart the Nuxt dev server to regenerate the client pluginmodules[] and you're in dev moderoute option if /__client-logs conflicts with your appinclude: ['warn', 'error'] and stackMode: 'condensed'MIT
FAQs
Nuxt 3/4 module for streaming browser console logs to your dev terminal.
We found that @browser-echo/nuxt demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Create ClickUp tasks from Socket alerts, automate ticketing with custom rules, and keep alert and task status synchronized.

Product
Create and manage Asana tasks directly from Socket alerts, with manual task creation, automated ticketing rules, and two-way sync.

Security News
Open VSX has removed three extension IDs from its malicious-extension list as the legitimate publishers they impersonated move to claim the names for themselves.