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.0.4

Published

A beautiful, minimal dev toolbar for React applications

Readme

@arach/devbar

A beautiful, minimal, and highly customizable development toolbar for React applications. Perfect for adding debug panels, state inspection, and development utilities to your projects.

Features

  • 🎨 Beautiful, minimal design
  • 🌓 Dark/Light theme support
  • 📍 Configurable positioning
  • 🔧 Fully customizable tabs
  • 🚀 Zero dependencies (except lucide-react for icons)
  • 📦 Tiny bundle size
  • 🎯 TypeScript support
  • 🏭 Production-safe (auto-hides in production)

Installation

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

Quick Start

import { DevToolbar } from '@arach/devbar';
import { Activity, Database, Settings } from 'lucide-react';

function App() {
  const tabs = [
    {
      id: 'state',
      label: 'State',
      icon: Database,
      content: (
        <div className="space-y-2 text-xs">
          <div>User: {user.name}</div>
          <div>Status: {status}</div>
        </div>
      )
    },
    {
      id: 'activity',
      label: 'Activity',
      icon: Activity,
      content: <ActivityMonitor />
    },
    {
      id: 'settings',
      label: 'Settings',
      icon: Settings,
      content: <SettingsPanel />
    }
  ];

  return (
    <>
      <YourApp />
      <DevToolbar tabs={tabs} />
    </>
  );
}

Advanced Usage

Custom Positioning

<DevToolbar 
  tabs={tabs}
  position="top-left" // 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left'
/>

Custom Theme

<DevToolbar 
  tabs={tabs}
  theme="light" // 'dark' | 'light' | 'auto'
/>

Custom Icon and Title

<DevToolbar 
  tabs={tabs}
  title="Debug"
  customIcon={<Wrench className="w-4 h-4" />}
/>

Using Helper Components

import { 
  DevToolbar, 
  DevToolbarSection,
  DevToolbarButton,
  DevToolbarInfo 
} from '@arach/devbar';

const tabs = [
  {
    id: 'debug',
    label: 'Debug',
    icon: Bug,
    content: (
      <DevToolbarSection title="State Info">
        <DevToolbarInfo label="Version" value="1.0.0" />
        <DevToolbarInfo label="Environment" value={process.env.NODE_ENV} />
        
        <div className="flex gap-1 mt-2">
          <DevToolbarButton 
            variant="success"
            onClick={() => console.log('Success!')}
          >
            Test Success
          </DevToolbarButton>
          
          <DevToolbarButton 
            variant="danger"
            onClick={() => console.error('Error!')}
          >
            Test Error
          </DevToolbarButton>
        </div>
      </DevToolbarSection>
    )
  }
];

Dynamic Content

const tabs = [
  {
    id: 'metrics',
    label: 'Metrics',
    icon: Activity,
    content: () => {
      // This function is called on each render
      const metrics = calculateMetrics();
      return (
        <div>
          <div>FPS: {metrics.fps}</div>
          <div>Memory: {metrics.memory}MB</div>
        </div>
      );
    }
  }
];

Example: Timer/Pomodoro App Integration

import { DevToolbar } from '@arach/devbar';
import { Timer, Play, Pause, RotateCcw } from 'lucide-react';

function PomodoroApp() {
  const { time, isRunning, start, pause, reset } = useTimer();
  
  const tabs = [
    {
      id: 'timer',
      label: 'Timer',
      icon: Timer,
      content: (
        <div className="space-y-2">
          <div className="text-sm font-mono">
            Time: {formatTime(time)}
          </div>
          <div className="text-xs text-gray-400">
            Status: {isRunning ? 'Running' : 'Paused'}
          </div>
          <div className="flex gap-1">
            <button onClick={start} className="p-1 bg-green-600 rounded">
              <Play className="w-3 h-3" />
            </button>
            <button onClick={pause} className="p-1 bg-yellow-600 rounded">
              <Pause className="w-3 h-3" />
            </button>
            <button onClick={reset} className="p-1 bg-red-600 rounded">
              <RotateCcw className="w-3 h-3" />
            </button>
          </div>
        </div>
      )
    }
  ];
  
  return (
    <>
      <TimerDisplay />
      <DevToolbar tabs={tabs} />
    </>
  );
}

API Reference

DevToolbar Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | tabs | DevToolbarTab[] | Required | Array of tab configurations | | position | 'bottom-right' \| 'bottom-left' \| 'top-right' \| 'top-left' | 'bottom-right' | Position of the toolbar | | defaultTab | string | First tab | ID of the initially active tab | | theme | 'dark' \| 'light' \| 'auto' | 'auto' | Color theme | | hideInProduction | boolean | true | Auto-hide in production builds | | title | string | 'Dev' | Toolbar title | | customIcon | ReactNode | <Bug /> | Custom icon for the toggle button | | width | string | '280px' | Width of the expanded toolbar | | maxHeight | string | '240px' | Maximum height of the expanded toolbar | | className | string | '' | Additional CSS classes |

DevToolbarTab Interface

interface DevToolbarTab {
  id: string;
  label: string;
  icon: LucideIcon;
  content: ReactNode | (() => ReactNode);
}

License

MIT

Author

Created by @arach


Built with ❤️ for developers who love beautiful tools.