Socket
Book a DemoInstallSign in
Socket

react-component-taggers

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package version was removed
This package version has been unpublished, mostly likely due to security reasons

react-component-taggers

A Vite plugin that automatically injects metadata attributes into JSX/TSX elements for debugging and tooling

unpublished
Source
npmnpm
Version
0.1.9
Version published
Weekly downloads
299
-0.33%
Maintainers
1
Weekly downloads
 
Created
Source

Vite Plugin: JSX Component Tagger

A lightweight Vite plugin that automatically injects data-component-id attributes into your JSX/TSX components — making debugging, tracking, and testing effortless.

✨ Features

  • 🔍 Auto-tagging – Adds a unique data-component-id to every JSX/TSX component.
  • ⚛️ Framework-friendly – Works with React and other JSX-based frameworks.
  • 📊 Debug & Track – Useful for analytics, user interaction tracking, and E2E testing.
  • Zero runtime cost – Tags are injected at build-time only.
  • 🛠 Developer-friendly – No manual changes needed to your components.

📦 Installation

Using npm:

npm install --save-dev react-component-taggers

Using yarn:

yarn add -D react-component-taggers

Using pnpm:

pnpm add -D react-component-taggers

🚀 Usage

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import jsxTagger from "react-component-taggers";

export default defineConfig({
  plugins: [
    react(),
    jsxTagger(),
  ],
});

Keywords

vite

FAQs

Package last updated on 24 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts