npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@seboran/vue-coverage-overlay

v0.1.1

Published

Vite plugin to visualize Vue component test coverage directly on the page

Readme

@seboran/vue-coverage-overlay

A Vite plugin that visualizes Vue component test coverage directly on your running application. No browser extension needed.

Features

  • 📊 Visual coverage overlay - See which components have test coverage at a glance
  • 🎨 Color-coded - Green (80%+), Yellow (60-79%), Orange (40-59%), Red (<40%)
  • 🔘 Toggle button - Floating button to enable/disable overlays
  • ⌨️ Keyboard shortcut - Ctrl+Shift+C to toggle (configurable)
  • 💾 Persistent state - Remembers your preference across reloads
  • 🚀 Works with SSR - Compatible with Nuxt and other SSR frameworks

Installation

npm install @seboran/vue-coverage-overlay --save-dev
# or
pnpm add -D @seboran/vue-coverage-overlay

Usage

Vite

// vite.config.js
import { vueCoverageOverlay } from '@seboran/vue-coverage-overlay'

export default {
  plugins: [
    vueCoverageOverlay()
  ]
}

Nuxt

// nuxt.config.ts
import { vueCoverageOverlay } from '@seboran/vue-coverage-overlay'

export default defineNuxtConfig({
  vite: {
    plugins: [
      vueCoverageOverlay()
    ]
  }
})

Configuration

vueCoverageOverlay({
  // Path to coverage file (relative to project root)
  coveragePath: 'coverage/coverage-final.json',
  
  // Endpoint to serve coverage data
  endpoint: '/__coverage',
  
  // Keyboard shortcut to toggle overlay
  shortcut: 'ctrl+shift+c',
  
  // Enable overlay by default on page load
  enabledByDefault: false
})

Vitest Configuration

Make sure Vitest outputs coverage in JSON format:

// vitest.config.js
export default {
  test: {
    coverage: {
      reporter: ['json', 'html'], // 'json' is required
      reportsDirectory: 'coverage'
    }
  }
}

How It Works

  1. Run tests with coverage: pnpm test:coverage
  2. Start dev server: pnpm dev
  3. Click the 📊 button (bottom-right) or press Ctrl+Shift+C
  4. See coverage overlays on your Vue components

The plugin:

  • Serves coverage data at /__coverage
  • Injects a client script that scans for Vue components
  • Applies colored outlines based on coverage percentage
  • Updates dynamically as you navigate

Color Legend

| Color | Coverage | |-------|----------| | 🟢 Green | 80%+ | | 🟡 Yellow | 60-79% | | 🟠 Orange | 40-59% | | 🔴 Red | < 40% |

License

MIT