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.
- 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 🚀.
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! 🎉
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