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

react-hooks-global-states-debug

v16.0.7

Published

DevTools debug package for react-hooks-global-states (and react-global-state-hooks). Side-effect import that connects your global stores to the React Global States Hooks DevTools browser extension.

Downloads

776

Readme

react-hooks-global-states-debug 🌟

Johnny Quesada

See the state. Follow the action. Understand the result.

Connect your React Global State Hooks stores to the DevTools browser extension and bring your application's state into view. Inspect live values, compare changes, follow action lifecycles, and try updates while watching the application respond.

Built for the moments when you want to understand a feature, reproduce a bug, or verify a fix with evidence from the running app.

npm version Downloads License

Website · DevTools guide · Examples · Agentic DevTools

Created by Johnny Quesada, author of the React Global State Hooks family.

A clearer view of your application

  • Inspect stores and contexts. See current state and metadata in one place.
  • Follow actions from start to finish. Track state updates, results, and failures.
  • Compare state changes. Find the values an action changed without searching through console output.
  • Try changes in the running app. Edit state or execute store actions from the panel.
  • Revisit earlier state. Use time travel to explore a previous snapshot.
  • Bring the workflow to your terminal. Read state and invoke actions with rgsh, including from a coding agent.

See the DevTools walkthrough for the extension installation link, panel tour, and terminal setup.

Connect your app

The web package exposes a convenient debug entry point. Import it first in your development entry file, before React and any module that creates a store:

import 'react-global-state-hooks/debug';

import { createRoot } from 'react-dom/client';
import { App } from './App';

createRoot(document.getElementById('root')!).render(<App />);

This entry is available in react-global-state-hooks from version 16.0.4. Keep debug instrumentation in development builds only.

If you need to install the instrumentation package directly:

npm install --save-dev react-hooks-global-states-debug

Use this side-effect import at the top of your development entry instead of the web package's debug import:

import 'react-hooks-global-states-debug';

Then:

  1. Install the browser extension linked in the DevTools guide.
  2. Start your app and open the extension's panel in Chrome DevTools.
  3. Reload the page with the panel open to synchronize your stores.
  4. Select a store to inspect its state and follow its actions.

Give stores a name option so they are easy to find in the panel and terminal.

Debug from your terminal or coding agent

The web, universal, and mobile state packages each provide the rgsh command. With your browser app connected and its DevTools panel open, install the optional WebSocket dependency and discover your stores:

npm install --save-dev ws
npx rgsh --list
npx rgsh --help

For an app with a store named todos and an add action:

npx rgsh state todos
npx rgsh action todos add "Verify the new workflow"
npx rgsh --store todos

A coding agent can use the same commands to invoke an action and inspect the resulting state. That makes the runtime part of the development conversation. The Agentic DevTools tour walks through that inspect → act → verify loop. The terminal connection uses port 7787 by default; match it to the panel's Terminal connection setting.

Part of the React Global State Hooks family

| Package | Purpose | | --- | --- | | react-global-state-hooks | React web state with optional localStorage persistence. | | react-native-global-state-hooks | React Native state with optional asynchronous persistence. | | react-hooks-global-states | The shared state API without platform-specific persistence. | | react-hooks-global-states-debug | The development instrumentation described here. |

The workflow above connects a browser page to the Chrome extension. For package entry points and platform details, see the platform guide.

Built by Johnny Quesada

Explore the project website, meet Johnny, and help shape what comes next. If these tools help you solve a bug, share the project with another developer or give it a star.

Star on GitHub · Report an issue · Explore the source