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

@hungpvq/react-map-devtools

v1.1.0

Published

React debug panel for `@hungpvq/react-map-core` (store, logs, errors, dataset inspect/menus).

Readme

@hungpvq/react-map-devtools

React debug panel for @hungpvq/react-map-core (store, logs, errors, dataset inspect/menus).

Install

npm install @hungpvq/react-map-devtools

Peers: @hungpvq/map-core, @hungpvq/react-map-core, @hungpvq/react-draggable, @hungpvq/shared-log, @hungpvq/shared-store, React 18+. Optional peer @hungpvq/map-dataset enables the Dataset tab via @hungpvq/map-debug/dataset.

Styles

import '@hungpvq/react-map-devtools/style.css';

Styles re-export shared chrome from @hungpvq/map-debug (Dataset Inspect/Menus layout included).

Usage

Call installDevtools() once at bootstrap (wires @hungpvq/shared-log into the panel, captures map errors, and installs the dataset debug bridge when available). Mount <Devtools /> where you want the panel:

import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import { Devtools, installDevtools } from '@hungpvq/react-map-devtools';
import '@hungpvq/react-map-devtools/style.css';
import App from './App';

installDevtools();

createRoot(document.getElementById('root')!).render(
  <StrictMode>
    <App />
    <Devtools />
    {/* Map control popup (inside <Map>): <Devtools mode="control" position="bottom-right" /> */}
    {/* <Devtools containerId="map-draggable-my-map" /> */}
  </StrictMode>,
);

On mobile (≤640px), overlay mode uses DraggableItemBottom when a map drag container exists. Use mode="control" for a map corner button + DraggableItemPopup.

Tear down global error capture with uninstallDevtools() when the host app unmounts (tests / HMR).

Dataset tab

Roots → Inspect → Menus. Anonymous menus get debug-only anon:… ids (idGenerated). Details: map-debug README.

Stable API

| Export | Role | |--------|------| | installDevtools | Bootstrap log adapter + global error capture | | uninstallDevtools | Remove global error capture | | Devtools | Panel UI (mode?: 'overlay' \| 'control') | | DevtoolsControl | Map control + popup (same as mode="control") | | DEVTOOLS_CONTROL | { id: 'mapDevtools' } |

Experimental root exports (store helpers / hooks such as useDevtoolState, getDevtoolState, …) may change in a minor — see Stable API and public-api.spec.ts.

Demo

apps/react/demo-mapinstallDevtools() in src/main.tsx, <Devtools /> in the app shell.

Docs hub: Map Devtools.