Skip to content
PluginStats

@metagptx/vite-plugin-source-locator weekly downloads statistics

By metagptx · npm · Vite plugins

A Vite plugin for source code location tracking

View on npm Fresh · Oct 18, 2026

@metagptx/vite-plugin-source-locator has 4,009 recorded weekly downloads on npm, a decrease of 29.2% over the past 30 days, ranking #1188 of 2,322 tracked listings.

Weekly downloads
4,009
Official API · Oct 18, 2026
7-day growth
-47.0%
-3.6K weekly downloads
30-day growth
-29.2%
-1.7K weekly downloads
90-day growth
-61.9%
-6.5K weekly downloads
Rank
#1188
Among tracked npm listings

About @metagptx/vite-plugin-source-locator

vite-plugin-source-locator

A Vite plugin for DOM element source location tracking. This plugin helps you locate DOM elements in your source code during development.

Features

  • Support for Vue 3 components
  • Support for React components (JSX/TSX)
  • Automatic source location tracking
  • Customizable configuration

Installation

npm install @metagptx/vite-plugin-source-locator
# or
yarn add @metagptx/vite-plugin-source-locator
# or
pnpm add @metagptx/vite-plugin-source-locator

Usage

Vite
// vite.config.ts
import { defineConfig } from "vite";
import { viteSourceLocator } from "@metagptx/vite-plugin-source-locator/vite";
import vue from "@vitejs/plugin-vue"; // for Vue projects
import react from "@vitejs/plugin-react"; // for React projects

export default defineConfig({
  plugins: [
    // For Vue projects, use after vue() plugin
    vue(),
    viteSourceLocator({
      // options
    }),

    // For React projects, use before react() plugin
    viteSourceLocator({
      // options
    }),
    react(),
  ],
});
Expo / React Native Web
// babel.config.js
const { rnSourceLocator } = require("@metagptx/vite-plugin-source-locator/rn");

module.exports = function (api) {
  api.cache(true);

  return {
    presets: [["babel-preset-expo", { jsxImportSource: "nativewind" }], "nativewind/babel"],
    plugins: [rnSourceLocator()],
  };
};

rnSourceLocator injects dataSet on JSX host elements, and react-native-web turns those values into the same final DOM attributes as the Vite adapter, e.g. data-locator-path, data-locator-line, data-locator-start-column.

Use rnSourceLocator only for react-native-web / Expo Web builds. Native iOS and Android builds do not expose the same DOM data-* surface.

Backward compatibility
// vite.config.js
import { defineConfig } from "vite";
import { viteSourceLocator } from "@metagptx/vite-plugin-source-locator";
import vue from "@vitejs/plugin-vue"; // for Vue projects
import react from "@vitejs/plugin-react"; // for React projects

export default defineConfig({
  plugins: [
    // For Vue projects, use after vue() plugin
    vue(),
    viteSourceLocator({
      // options
    }),

    // For React projects, use before react() plugin
    viteSourceLocator({
      // options
    }),
    react(),
  ],
});

Important: Plugin ordering matters:

  • For Vue projects: Use viteSourceLocator after vue() plugin
  • For React projects: Use viteSourceLocator before react() plugin

Options

interface PluginOptions {
  // Directories to include (default: ['src'])
  include?: string[];

  // Prefix for data attributes (default: 'locator')
  prefix?: string;

  // Enable/disable the plugin (default: true)
  enable?: boolean;
}

Example

Input:

<template>
  <div>Hello World</div>
</template>

Output:

<template>
  <div data-locator-path="src/components/Hello.vue" data-locator-line="2">Hello World</div>
</template>

Upgrade Notes

  • v0.0.5
    • fix issure:
      • Page crash when dom content has “"” character.

Description from the npm listing.

  • vite
  • vite-plugin
  • dom
  • debug
  • source
  • locator

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@metagptx/vite-plugin-source-locator weekly downloads on npm, last 90 days: 4,009 weekly downloads as of Oct 18, 2026, -61.9% over 90 days.@metagptx/vite-plugin-source-locatorWeekly downloads on npm · Last 90 days4,009downloads / week-61.9% over 90 days02K4K6K8K10K12KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
@metagptx/vite-plugin-source-locator weekly downloads on npm, last 90 days: 4,009 weekly downloads as of Oct 18, 2026, -61.9% over 90 days.

7/30/90-day growth

@metagptx/vite-plugin-source-locator weekly downloads growth on npm: -47.0% over 7 days, -29.2% over 30 days, -61.9% over 90 days.@metagptx/vite-plugin-source-locatorWeekly downloads growth on npm4,009downloads / week now7-day growth-3,555 weekly downloads-47.0%30-day growth-1,652 weekly downloads-29.2%90-day growth-6,517 weekly downloads-61.9%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
@metagptx/vite-plugin-source-locator weekly downloads growth on npm: -47.0% over 7 days, -29.2% over 30 days, -61.9% over 90 days.

Ranking history

@metagptx/vite-plugin-source-locator npm ranking history: currently #1188 (by weekly downloads).@metagptx/vite-plugin-source-locatornpm ranking · by weekly downloads · Last 90 days#1188current rank#1155#1160#1165#1170#1175#1180#1185#1190Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
@metagptx/vite-plugin-source-locator npm ranking history: currently #1188 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,161 shown · page 60, #11 (overall #1,191)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins253 listings · 13 pages · page 11, #15 (overall #215)
Vite plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (122)
Recent weekly downloads observations for @metagptx/vite-plugin-source-locator
Date (UTC)Weekly downloadsChange vs. previous
4,009+429
3,580-1.1K
4,655-411
5,066-1.3K
6,373-1.9K
8,2900
8,290+726
7,564-419
7,983+362
7,621+265
7,356+278
7,078+701
6,377-1.1K
7,427—

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@metagptx/vite-plugin-source-locator. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.