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

@arach/devbar

v0.3.2

Published

App-ops console kit for React — feature flags, personas, scenarios, env context, and safe actions (not a DevTools clone)

Readme

@arach/devbar

npm version Bundle Size

The app-ops console kit for React

Add a polished in-app developer toolbar for feature flags, personas, environment context, scenarios, and safe seed/reset actions -- without building a Chrome DevTools clone.

Think Vercel / LaunchDarkly-style toolbar your team owns: provider-neutral, domain-first, safe by default.

DevTools owns the browser (DOM, network, component tree).
Devbar owns product operations while you develop -- reproduce states, switch roles, toggle overrides, run safe actions.

Why teams install this

| Chrome / React DevTools | @arach/devbar | |---|---| | DOM, component tree, props | Product / app controls | | Console, network, profiler | Flags, personas, env, scenarios | | Runtime internals | Team-specific app operations | | Generic debugging | Reproducible product states |

What you get

  • Feature lab -- local flag overrides with reset, search, groups, persistence
  • Persona lab -- role, plan, locale, entitlements (you wire the values)
  • Env / context -- build, tenant, user summary + copy
  • Scenarios -- one-click presets ("Pro admin + checkout v2")
  • Action runner -- seed, reset, revalidate with confirm for danger
  • Kit primitives -- so custom domain panels look first-party

What you don't get (on purpose)

No console log stream, no network inspector, no component tree, no profiler.

Install

npm install @arach/devbar
# or
pnpm add @arach/devbar

Peer dependencies: react and react-dom only. Zero runtime icon library -- chrome icons are inline SVGs. Tab icons are optional React components (e.g. from lucide-react in your app).

Quick start

import {
  DevToolbar,
  DevToolbarFlags,
  useDevToolbarFlags,
  DevToolbarActions,
} from '@arach/devbar';

function App() {
  const defaults = { mockApi: true, newCheckout: false };
  const [flags, setFlags] = useDevToolbarFlags({
    defaults,
    persistKey: 'devbar:flags',
  });

  return (
    <>
      <YourApp flags={flags} />
      <DevToolbar
        title="Ops"
        tabs={[
          {
            id: 'flags',
            label: 'Flags',
            content: (
              <DevToolbarFlags
                flags={[
                  { key: 'mockApi', label: 'Mock API' },
                  { key: 'newCheckout', label: 'New checkout' },
                ]}
                values={flags}
                defaults={defaults}
                onChange={setFlags}
              />
            ),
          },
          {
            id: 'data',
            label: 'Data',
            content: (
              <DevToolbarActions
                actions={[
                  { id: 'seed', label: 'Seed demo data', onClick: seed },
                  { id: 'reset', label: 'Reset', variant: 'danger', onClick: reset },
                ]}
              />
            ),
          },
        ]}
      />
    </>
  );
}

Add personas, scenarios, and env panels the same way -- see the tables below.

Auto-hides outside local development unless hideInProduction={false}. No telemetry. No network calls by default.

Panels

| Panel | Job | |-------|-----| | DevToolbarPresets | One-click product scenarios | | DevToolbarFlags | Local flag overrides (search, groups, reset, persist) | | DevToolbarPersona | Role / plan / locale / entitlement fields | | DevToolbarEnv | Environment + app context + copy summary | | DevToolbarActions | Seed / reset / revalidate with confirm + status | | DevToolbarKV | App context rows (not a state-tree inspector) | | useDevToolbarFlags | Stateful flags + optional localStorage |

Primitives

Build domain panels that look native to the bar:

Section, Info, Button, Toggle, Select, Input, ActionRow, Stack, Empty, Badge, CopyButton

Positioning and chrome

<DevToolbar
  tabs={tabs}
  position="bottom-right" // corners or "pane"
  theme="auto"
  title="Ops"
  hideInProduction
/>

| Prop | Default | Notes | |------|---------|--------| | tabs | required | Your panels | | position | bottom-right | Corners + full-width pane | | theme | auto | dark / light / auto | | hideInProduction | true | Safe by default | | title | Ops | Header label | | width | 380px | Corner panel width | | maxHeight | 440px | Corner panel height | | defaultPaneHeight | 380px | Pane mode height |

Safety

  • Hidden outside local/dev hosts by default
  • You pass app data in -- nothing is scraped from the browser runtime
  • Danger actions confirm before running
  • Copy helpers are for non-secret summaries you choose

Not a DevTools replacement

If you need component trees, network waterfalls, or log streams -- use the browser.
If you need flags, personas, scenarios, and seed/reset -- use devbar.

License

MIT -- @arach