New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@devlens/vue

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devlens/vue

DevLens Vue integration - automatic error detection for Vue apps

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@devlens/vue

DevLens Vue 3 integration -- automatic runtime error detection for Vue applications.

Installation

npm install @devlens/core @devlens/vue

Peer dependencies: Vue >= 3.3.0

Quick Start

import { createApp } from 'vue';
import { createDevLensPlugin } from '@devlens/vue';

const app = createApp(App);

app.use(createDevLensPlugin({
  enabled: true,
  minSeverity: 'warn',
}));

app.mount('#app');

The plugin automatically installs app.config.errorHandler and app.config.warnHandler to capture Vue errors and warnings.

Guarded Ref

Reactive ref with null/undefined detection:

import { useGuardedRef } from '@devlens/vue';

const user = useGuardedRef(initialUser, 'UserProfile');

// Accessing null/undefined properties on user.value triggers detection

Watch Data

Monitor data for null/undefined values:

import { useGuardedWatch } from '@devlens/vue';

useGuardedWatch({ user, posts, settings }, 'Dashboard');

// [RENDER] DevLens [WARN] render-data: "posts" is undefined in Dashboard

API Reference

ExportDescription
createDevLensPlugin(options?)Vue 3 plugin with auto error/warn handlers
useDevLens()Inject the engine instance
useGuardedRef(initialValue, label?)Reactive ref with null/undefined detection
useGuardedWatch(data, label?)Watch data for null/undefined

Details

  • ~5KB ESM bundle
  • Auto error handler: app.config.errorHandler
  • Auto warn handler: app.config.warnHandler
  • Network interceptor and global catcher auto-installed
  • Dual ESM + CJS output
  • Full TypeScript declarations
  • Production-safe -- auto-disabled in production

License

MIT -- github.com/crashsense/devlens

Keywords

devlens

FAQs

Package last updated on 24 Feb 2026

Related posts