Skip to content

A handy Nuxt module that forwards browser console logs to your server terminal — perfect for AI debugging or just easier dev, no need to keep opening the browser console.

Notifications You must be signed in to change notification settings

moshetanzer/nuxt-browser-to-server-logs

Repository files navigation

Nuxt Browser-to-Server Logs

npm version npm downloads License Nuxt

A handy Nuxt module that forwards browser console logs to your server terminal — perfect for AI debugging or just easier dev, no need to keep opening the browser console.

Features

  • Captures browser logs and forwards to server terminal.
  • Filters out suspense, ssr logs automatically.
  • Uses websockets.
  • Allows you to just focus on server terminal (in VS Code) instead if having to keep on opening browser logs.
  • Prefixes all browser logs with [BROWSER].
  • Uses youch to beautify error logs in terminal.
  • Strips styling for clean log output in terminal.
  • Zero config just install and you good to go 🚀.

Quick Setup

Install the module to your Nuxt application with one command:

npx nuxi module add nuxt-browser-to-server-logs

You're all set — logs from the browser will now stream into your server terminal! 🎉

Contribution

Local development
# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev

# Build the playground
npm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch

# Release new version
npm run release

About

A handy Nuxt module that forwards browser console logs to your server terminal — perfect for AI debugging or just easier dev, no need to keep opening the browser console.

Resources

Stars

Watchers

Forks

Packages

No packages published