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

@presto1314w/vite-devtools-browser

v0.3.6

Published

Runtime diagnostics CLI for Vite apps with event-stream correlation, HMR diagnosis, framework inspection, and mapped errors

Downloads

1,001

Readme

vite-browser

Know why your Vite app broke — not just where.

Runtime diagnostics CLI for Vite applications. Connect to a running dev server, correlate errors with recent HMR activity, trace store-to-render propagation paths, and inspect framework state — all from the terminal, with zero project setup.

Built for developers and AI coding agents alike.

📖 Documentation · 📦 npm

Install

Agent Skill (recommended):

npx skills add MapleCity1314/vite-browser

CLI only:

npm install -g @presto1314w/vite-devtools-browser
npx playwright install chromium

The problem

You save a file. Vite hot-updates. The page breaks.

The error overlay tells you what failed — but not which update caused it, how the change propagated through your component tree, or whether the real problem is a stale store, a broken import, or a network regression.

What vite-browser does

# 1. See the current error with source context
$ vite-browser errors --mapped --inline-source

TypeError: Cannot read properties of undefined (reading 'items')
  → /src/components/CartSummary.tsx:14:12
    14 | total = cart.items.reduce(...)

# 2. Correlate with recent HMR activity
$ vite-browser correlate errors --mapped --window 5000

Confidence: high
HMR update observed within 5000ms of the current error
Matching modules: /src/store/cart.ts

# 3. Trace the propagation path
$ vite-browser diagnose propagation --window 5000

Status: fail | Confidence: high
Store → Render → Error path found:
  store: cart (changedKeys: items)
  render: AppShell > ShoppingCart > CartSummary

Four commands. You know the store update broke the render path. You know where to fix it.

Key features

  • Error correlation — Match errors against recent HMR-updated modules within a time window
  • Propagation diagnosis — Trace store → render → error paths with confidence levels
  • HMR diagnosis — Detect patterns like missing-module, circular-dependency, hmr-websocket-closed
  • Framework inspection — Vue trees, Pinia stores, Vue Router, React props/hooks/state, Svelte trees
  • Mapped errors — Source-mapped stack traces with inline source snippets
  • Zero config — No plugins, no project changes. Works with any running Vite dev server

Agent Skills

vite-browser is designed skill-first. The skill router automatically picks the right debugging workflow based on the symptom:

| Symptom | Routed to | |---|---| | Broad / unclear failure | core-debug | | Recent edit or HMR breakage | runtime-diagnostics | | Wrong data or failed requests | network-regression | | Pre-merge verification | release-smoke |

AI coding agents (Claude Code, Codex, Cursor) follow the structured workflow instead of guessing.

Agent Skills guide · AI IDE Setup

Quick reference

# Browser
vite-browser open <url>          # Launch and navigate
vite-browser close               # Close browser and daemon

# Diagnostics
vite-browser errors --mapped --inline-source
vite-browser correlate errors --mapped --window <ms>
vite-browser correlate renders --window <ms>
vite-browser diagnose hmr --limit <n>
vite-browser diagnose propagation --window <ms>

# Framework
vite-browser detect
vite-browser vue tree | vue pinia | vue router
vite-browser react tree
vite-browser svelte tree

# Vite runtime
vite-browser vite runtime
vite-browser vite hmr trace --limit <n>
vite-browser vite module-graph trace --limit <n>

# Utilities
vite-browser logs | network | screenshot | eval <script>

Full CLI reference

Current scope

v0.3.3 is reliable at surfacing runtime state, correlating errors with HMR activity, detecting common HMR failure patterns, and narrowing store → render → error paths in Vue + Pinia workflows.

correlate renders and diagnose propagation are high-confidence narrowing tools, not strict causal proof. They intentionally produce conservative output when evidence is incomplete.

React store inspection (Zustand, Redux) and deeper cross-framework propagation tracing are on the roadmap.

Development

pnpm install
pnpm build
pnpm test

Requirements: Node.js ≥ 20 · Chromium via Playwright · Running Vite dev server

License

MIT