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

vpcr

v1.1.1

Published

A powerful Vite plugin that automatically tags React components with source reference attributes, enabling features like 'Alt + Click' to open source files in your IDE.

Readme

vpcr

A powerful Vite plugin that automatically tags React components with source reference attributes. This enables a seamless "Alt + Click" experience to jump from your browser directly to the corresponding line in your IDE.

Documentation: https://vpcr.vercel.app
Changelog: https://vpcr.vercel.app/changelog

Features

  • Automatic Tagging: Injects ref-id, ref-component, ref-line, etc., into your JSX elements.
  • Click-to-Open: Press Alt + Click in the browser to instantly open the source file in your editor at the exact line.
  • Smart Editor Defaults: Built-in support for VS Code and its many forks (e.g., cursor, windsurf, codium, coder, kiro, antigravity, qoder) (no manual configuration needed).
  • Flexible Configuration: Full control over what attributes to inject and which files to include/exclude.
  • Team Friendly: Environment variable overrides allow each developer to use their preferred editor.
  • Production Safe: Automatically disables itself in production builds to keep your bundle clean.

Installation

npm install vpcr --save-dev
# or
yarn add vpcr --dev

Quick Start

Add the plugin to your vite.config.ts:

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { vpcrTagger } from 'vpcr';

export default defineConfig({
  plugins: [
    vpcrTagger({
      editor: 'antigravity', // Automatically handles line-positioning flags
    }),
    react(),
  ],
});

Configuration Options

| Option | Type | Default | Description | | :--- | :--- | :--- | :--- | | prefix | string | "data-ref" | Prefix for the injected attributes (e.g., ref-id). | | attributes | string[] | ['id', 'name', 'path', 'line', 'file', 'component'] | Which attributes to inject. | | basePath | string | "src" | The base directory for calculating relative paths. | | include | (string \| RegExp)[] | ['.tsx', '.jsx'] | Files to process. | | exclude | (string \| RegExp)[] | ['node_modules', 'main.tsx'] | Files to ignore. | | enabled | boolean | true | Enable or disable the plugin. | | editor | string | "code" | Your preferred editor (e.g., antigravity, cursor, code). | | shouldTag | (comp, path) => boolean| () => true | Custom filter for specific components or files. | | openInEditor| (path, line) => void | undefined | Custom callback for manual editor integration. | | enableHighlighter| boolean | true | Show the bounding box overlay on hover. | | enableAudioFeedback| boolean | true | Play a subtle "pop" sound when a component is clicked. |

Advanced Usage

Custom Editor Command

If your editor needs a specific format, use {file} and {line} placeholders:

vpcrTagger({
  editor: 'my-editor --goto {file}:{line}'
})

Team Collaboration (Environment Overrides)

Developers can override the project-wide editor setting by adding a variable to their .env.local or .env:

# .env.local or .env
VPCR_EDITOR=cursor

The plugin will automatically detect it's Cursor and use the correct positioning flags!

Selective Tagging

Only tag components starting with "User":

vpcrTagger({
  shouldTag: (name) => name.startsWith('User')
})

License

MIT © SIRILMP