
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
@browser-echo/core
Advanced tools
Core client-side functionality for streaming browser console logs to your dev terminal.
Core client-side functionality for streaming browser console logs to your dev terminal.
This package provides the initBrowserEcho function that patches console.* methods and forwards logs to a development server endpoint. It's designed to be used as a dependency by framework-specific providers.
console.log/info/warn/error/debugsendBeacon when available)(file:line:col) + stack tracespnpm add -D @browser-echo/core
import { initBrowserEcho } from '@browser-echo/core';
// Initialize with default options
initBrowserEcho();
// Or customize the behavior
initBrowserEcho({
route: '/__client-logs',
include: ['warn', 'error'],
preserveConsole: true,
tag: '[browser]',
batch: { size: 20, interval: 300 },
stackMode: 'condensed'
});
interface InitBrowserEchoOptions {
route?: `/${string}`; // default: '/__client-logs'
include?: BrowserLogLevel[]; // default: ['log','info','warn','error','debug']
preserveConsole?: boolean; // default: true (also keep logging in browser)
tag?: string; // default: '[browser]'
batch?: { size?: number; interval?: number }; // default: 20 / 300ms
stackMode?: 'full' | 'condensed' | 'none'; // default: 'condensed'
}
This core package is typically used through framework-specific providers:
See the main repository for complete setup guides.
MIT
FAQs
Core client-side functionality for streaming browser console logs to your dev terminal.
The npm package @browser-echo/core receives a total of 544 weekly downloads. As such, @browser-echo/core popularity was classified as not popular.
We found that @browser-echo/core 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.

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.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.