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

@yamparala27/agentux

v0.1.0

Published

Interactive App Map visualization for React — see all screens, routes, and navigation flows in a drag-and-drop canvas. Export as structured Markdown for AI agents.

Readme

AgentUX

An agent-agnostic visual feedback tool. Map all screens of your app, correct flows, and copy structured output that helps AI coding agents find the exact code you're referring to.

npm license

Installation

npm install agentux -D

Usage

Add the <AppMap /> component to your application. A floating button appears in the bottom-right corner. Click it to open an interactive map of your entire app.

import { AppMap } from 'agentux';

function App() {
  return (
    <>
      <YourApp />
      <AppMap />
    </>
  );
}

The map becomes active on click. Drag nodes to rearrange, zoom in and out, and copy structured Markdown for your AI agent.

Features

  • Route Auto-Detection — Automatically scans your file structure to discover every screen. Supports Next.js App Router (app/), Next.js Pages Router (pages/), and React Router v6 (createBrowserRouter).

  • Navigation Flow Mapping — Detects <Link>, <NavLink>, useNavigate(), and router.push() calls across your codebase to map how screens connect to each other.

  • Runtime Tracking — Tracks live navigation events as you use your app. Discovers routes and flows that static analysis alone might miss.

  • Interactive Canvas — Drag-and-drop node graph powered by React Flow. Rearrange screens, zoom, pan, and auto-layout to get the view you need.

  • Structured Export — One-click copy to clipboard. Generates Markdown with screen names, route paths, component file paths, and navigation flows — optimized for AI coding agents.

  • Static Analysis — Parses your source files using Babel AST to find route definitions and navigation links. No guessing, no regex — accurate detection across TypeScript and JSX.

  • Zero Config — Drop <AppMap /> into your app and it works. No config files, no build plugins, no setup scripts.

How It Works

Instead of telling an AI agent "fix the button on the settings page", AgentUX gives the agent a complete map of your app — every screen, every route path, every component file, and how they connect.

The agent gets structured output like:

## Screens
### Dashboard
- **Path**: `/dashboard`
- **Component**: `app/dashboard/page.tsx`

### User Detail
- **Path**: `/users/:id`
- **Component**: `app/users/[id]/page.tsx`

## Navigation Flows
- Home → Dashboard (`<Link>` in `app/page.tsx:7`)
- Dashboard → Users (`useNavigate` in `app/dashboard/page.tsx:12`)
- Users → User Detail (`<Link>` in `app/users/page.tsx:9`)

This lets the agent search your codebase for the exact file and line number, rather than guessing which component you mean.

Static Analysis (Recommended)

For a complete map without needing to visit every page, run static analysis first:

import { analyzeProject } from 'agentux/analysis';
import { writeFileSync } from 'fs';

const data = await analyzeProject('./');
writeFileSync('agentux.json', JSON.stringify(data, null, 2));

Then pass the result to the component:

import { AppMap } from 'agentux';
import mapData from '../agentux.json';

function App() {
  return (
    <>
      <YourApp />
      <AppMap data={mapData} />
    </>
  );
}

Configuration

<AppMap
  data={mapData}                // Pre-computed data from static analysis
  position="bottom-right"       // Floating button position
  runtimeDetection={true}       // Track live navigation events
  devOnly={true}                // Hide in production (default: true)
/>

Supported Frameworks

| Framework | Route Detection | Link Detection | |---|---|---| | Next.js App Router | app/ directory scanning | <Link href> | | Next.js Pages Router | pages/ directory scanning | <Link href> | | React Router v6 | createBrowserRouter config | <Link to>, useNavigate |

Requirements

  • React 18 or newer
  • Desktop browsers (development tool)

Development

npm install
npm test          # Run tests
npm run build     # Build package
npm run dev       # Watch mode

License

MIT