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

@next-locator/cli

v1.0.16

Published

Alt/Ctrl+Click any element in the browser to jump straight to its source file and line in your favorite IDE (VS Code, Antigravity IDE, Cursor, WebStorm, etc.) — for Next.js and React.

Readme

⚡ Next Locator

Alt/Ctrl+Click any React or Next.js element in your browser to jump straight to its source code in your favorite IDE — VS Code, Antigravity IDE, Cursor, WebStorm, and more.

Next Locator is a lightweight, ultra-fast developer productivity tool and React DevTools alternative. Inspect components on your page and navigate directly to the exact file, component, and line number in your code editor with a single click.

npm version npm downloads License: MIT


✨ Features

  • 🎯 Click-to-Component Navigation: Click any element on your page to reveal its source file and exact line.
  • ⚡ Multi-IDE & Editor Support: Open files in VS Code, Antigravity IDE, Cursor, VS Code Insiders, WebStorm, IntelliJ IDEA, or Sublime Text.
  • ⌨️ Configurable Trigger Key: Choose between Alt + Click, Ctrl + Click, or Shift + Click to prevent hotkey conflicts with other browser extensions or React devtools.
  • 🚀 Zero-Config Setup: One CLI command automatically configures your Next.js project.
  • ⚡ Lightning Fast (SWC & Turbopack): Non-intrusive dev-only injection that keeps Turbopack and SWC compilers running at full speed.
  • 🔒 Zero Production Overhead: Dev dependencies and source attributes are stripped in production builds.

✨ How It Works

Alt / Ctrl + Click any UI element in browser
                    ↓
Chrome Extension reads component source metadata
                    ↓
Opens your selected IDE (VS Code, Antigravity, Cursor, etc.) at the exact file & line

🚀 Quick Start (2 Steps)

Step 1 — Install the Chrome Extension

  1. Install Next Locator from the Chrome Web Store:
    👉 Install Next Locator Extension
  2. Open the extension popup to pick your favorite code editor (VS Code, Antigravity IDE, Cursor, etc.) and preferred trigger key.

Step 2 — Initialize Your Next.js Project (10 Seconds)

Run this once in the root of your Next.js project:

npx @next-locator/cli init

The CLI automatically:

  • ✅ Detects your project configuration (next.config.js, next.config.mjs, or next.config.ts)
  • ✅ Installs @next-locator/babel-plugin as a dev dependency
  • ✅ Safely wraps your Next.js config in-place
  • ✅ Preserves Turbopack & SWC compiler speed!

🎯 Usage

  1. Run your dev server: npm run dev
  2. Open your web app in Chrome (http://localhost:3000)
  3. Hold your trigger key (Alt / Ctrl / Shift) — hover over any component to see the overlay
  4. Click any element to jump directly to its source code in your configured editor! ✨

🛠️ Supported Editors

| Editor | Protocol Handler | Status | |--------|------------------|--------| | VS Code | vscode:// | ✅ Supported | | Antigravity IDE | antigravity-ide:// | ✅ Supported | | Cursor | cursor:// | ✅ Supported | | VS Code Insiders | vscode-insiders:// | ✅ Supported | | WebStorm | webstorm:// | ✅ Supported | | IntelliJ IDEA | idea:// | ✅ Supported | | Sublime Text | subl:// | ✅ Supported |


🔧 Compatibility

| Framework | Support | |-----------|---------| | Next.js 14 / 15 / 16 (App Router) | ✅ Full support | | Next.js 14 / 15 / 16 (Pages Router) | ✅ Full support | | React 18 / 19 | ✅ Full support | | TypeScript / JavaScript | ✅ Full support |

| Browser | Support | |---------|---------| | Google Chrome | ✅ | | Microsoft Edge | ✅ | | Brave | ✅ | | Arc | ✅ |


📄 License

MIT © Next Locator