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

@visual-agentic-dev/react-devtools

v1.2.1

Published

React DevTools SDK for Visual Agentic Dev - element source locating and highlight overlay

Readme

@visual-agentic-dev/react-devtools

The React runtime SDK for Visual Agentic Dev. This package provides the connection between your React application and the Visual Dev browser extension.

Integration

1. Install

npm install @visual-agentic-dev/react-devtools
# or
pnpm add @visual-agentic-dev/react-devtools
# or
yarn add @visual-agentic-dev/react-devtools

2. Runtime Setup (Required)

Wrap your root application with DevToolsProvider:

// App.tsx or main.tsx
import { DevToolsProvider } from '@visual-agentic-dev/react-devtools';

export default function App() {
  return (
    <DevToolsProvider enabled={process.env.NODE_ENV === 'development'}>
      <YourApp />
    </DevToolsProvider>
  );
}

React 19 Support & Source Location

For React 16, 17, and 18, the runtime SDK can usually detect source location (file path, line number) automatically using React's internal fiber information.

For React 19+, due to internal changes in React Fiber (removal of _debugSource), runtime detection may be unreliable or fail completely.

We strongly recommend configuring the build plugin to ensure 100% accurate source location detection across all React versions and build tools.

Build Tool Configuration

We provide an Universal Plugin (unplugin) that supports Vite, Webpack, Rspack, Rollup, and esbuild.

Vite

// vite.config.ts
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { vitePlugin as visualDev } from '@visual-agentic-dev/react-devtools/unplugin';

export default defineConfig({
  plugins: [
    visualDev(), // ⚠️ Must be placed BEFORE react()
    react(),
  ],
});

⚠️ Plugin Ordering: visualDev() must be placed before react() in the plugins array. This ensures source location attributes are injected before React processes the JSX.

Webpack

// webpack.config.js
const { webpackPlugin: visualDev } = require('@visual-agentic-dev/react-devtools/unplugin');

module.exports = {
  // ...
  plugins: [
    visualDev(),
  ],
};

Rspack

// rspack.config.js
const { rspackPlugin: visualDev } = require('@visual-agentic-dev/react-devtools/unplugin');

module.exports = {
  // ...
  plugins: [
    visualDev(),
  ],
};

Next.js (Webpack)

// next.config.js
const { webpackPlugin: visualDev } = require('@visual-agentic-dev/react-devtools/unplugin');

/** @type {import('next').NextConfig} */
const nextConfig = {
  webpack: (config) => {
    config.plugins.push(visualDev());
    return config;
  },
};

module.exports = nextConfig;

Rollup

// rollup.config.js
import { rollupPlugin as visualDev } from '@visual-agentic-dev/react-devtools/unplugin';

export default {
  // ...
  plugins: [
    visualDev(),
  ],
};

Options

The plugin accepts an options object:

visualDev({
  // Filter files to transform
  include: [/\.[jt]sx$/], // default
  exclude: [/node_modules/], // default
  
  // Customize the data attribute prefix
  // default: 'vdev' -> data-vdev-file, data-vdev-line
  prefix: 'vdev', 
})