
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
@browser-echo/nuxt
Advanced tools
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.tspnpm 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'
}
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
}
}
});
/__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.
The npm package @browser-echo/nuxt receives a total of 18 weekly downloads. As such, @browser-echo/nuxt popularity was classified as not popular.
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.
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
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.