@zanbug/vue

Zanbug SDK for Vue 3 — plugin that reports component errors, console, network and Web Vitals.
418
Install
npm install @zanbug/vue
Latest Version:2.0.1
Vue:2 · 3
License:MIT
Last Updated:Oct 9, 2026
Links: GitHub  ·  npm
Maintainer: zanbug

Zanbug

@zanbug/vue

Zanbug error and performance monitoring for Vue 3 (and Vue 2.7+).

npm install @zanbug/vue

Why the adapter

Vue routes component errors through its own app.config.errorHandler instead of letting them reach window.onerror. Without this plugin a broken render is invisible to the SDK.

Setup

import { createApp } from 'vue';
import { zanbugVue } from '@zanbug/vue';
import App from './App.vue';

createApp(App)
  .use(zanbugVue, {
    apiKey: import.meta.env.VITE_ZANBUG_KEY,
    host: 'https://zanbug.com',
    release: import.meta.env.VITE_APP_VERSION,
    environment: import.meta.env.MODE,
  })
  .mount('#app');

The plugin chains onto any errorHandler you already set — yours still runs.

Each report includes the component name and Vue's own description of where it happened (render function, watcher callback, …), which is as close to a component stack as Vue provides.

Errors Vue does not route

Async event handlers throw outside Vue's error path, so report those yourself:

<script setup>
import { useZanbug } from '@zanbug/vue';

const report = useZanbug();

async function save() {
  try {
    await api.save();
  } catch (err) {
    report(err, { screen: 'settings' });
  }
}
</script>

In the Options API the same client is available as this.$zanbug.

Options

Everything @zanbug/js accepts, plus:

Option Default Description
captureWarnings false Record Vue's dev-mode warnings as breadcrumbs. Noisy, and development-only.
globalProperty true Expose this.$zanbug.

Uncaught errors, console.error, failed network calls, Core Web Vitals and the DOM snapshot are handled by the core and on by default — see its README for privacy and redaction details.

License

MIT

Related Packages

@sourav732/error-tracker-js

Lightweight, zero-dependency error, performance and crash tracking SDK for brows...

0 1
@m-tracker/vue-plugin

Vue 3 plugin for M-Tracker error monitoring

1,885
@errorgap/nuxt

Nuxt module for Errorgap error tracking (client and server).

988 0
nuxt-monitor

Local-first error monitoring for Nuxt. No DSN, no account, no sourcemap upload.

1,619 1

Version History

Version Released Vue License
2.0.1 >=3.0.0 || >=2.7.0 MIT
2.0.0 >=3.0.0 || >=2.7.0 MIT
Pre-releases (1)
Version Released License
0.0.0-stage