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

@autotracer/dashboard

v1.0.0-alpha.50

Published

Runtime dashboard widget for AutoTracer with hotkey controls

Readme

@autotracer/dashboard

Runtime dashboard widget for controlling AutoTracer with hotkey support.

Elevator Pitch

Provides a floating corner widget and keyboard shortcuts for starting/stopping React18 and Flow tracers in large applications where console access is impractical.

Unique Selling Point

  • Smart Visibility: Hidden by default in TEST/QA, auto-shows when tracer starts, persists preference
  • Framework-Agnostic: Vanilla JS/TS widget works with any React version
  • Zero Configuration: Works out-of-box with sensible defaults
  • Keyboard-First: Global hotkeys for instant control without UI interaction

Installation

pnpm add -D @autotracer/dashboard

Configuration

Via Vite Plugin (Recommended)

// vite.config.ts
import { reactTracer } from "@autotracer/plugin-vite-react18";

export default defineConfig({
  plugins: [
    reactTracer({
      dashboardConfig: {
        enabled: true, // Enable dashboard (default: true)
        hideByDefault: true, // Hide in TEST/QA (default: false)
        position: "bottom-right", // Widget position (default: "bottom-right")
        hotkeys: {
          toggleTracing: "Alt+Shift+T", // Start/stop tracer
          toggleDashboard: "Alt+Shift+D", // Show/hide widget
        },
      },
    }),
  ],
});

Manual Mount

import { mountDashboard } from "@autotracer/dashboard";

// Mount with defaults
mountDashboard();

// Or with custom config
mountDashboard({
  hideByDefault: true,
  position: "bottom-left",
});

Usage

Default Hotkeys

  • Alt+Shift+T: Toggle tracing (start/stop)
  • Alt+Shift+D: Toggle dashboard visibility

Programmatic Control

// Access via globalThis
globalThis.autoTracer.widget.show();
globalThis.autoTracer.widget.hide();
globalThis.autoTracer.widget.toggle();
globalThis.autoTracer.widget.isVisible();
globalThis.autoTracer.widget.unregisterHotkeys();

Widget UI States

Collapsed (Default)

Small pill in corner showing tracer status:

  • 🟢 Green = Tracer running
  • ⚫ Gray = Tracer stopped

Click to expand.

Expanded

Panel showing:

  • Available tracers (React18, Flow)
  • Start/Stop buttons for each
  • Current status

Click close (×) to collapse.

Smart Visibility Logic

// First load with hideByDefault: true
// → Widget hidden (TEST/QA environment)

// User presses Alt+Shift+T to start tracer
// → Widget auto-shows + saves preference to localStorage

// Next page reload
// → Widget shows automatically (ignores hideByDefault)

Rationale: Hidden in TEST/QA by default, but once developer uses the tracer, stays visible for convenience.

Position Options

type DashboardPosition =
  | "bottom-right" // Default
  | "bottom-left"
  | "top-right"
  | "top-left";

Theming

Widget auto-detects system color scheme via prefers-color-scheme media query:

  • Light theme in light mode
  • Dark theme in dark mode

No manual configuration required.

Mobile Support

  • Widget works via touch (tap to expand/collapse)
  • Hotkeys automatically disabled on mobile
  • Responsive design for smaller screens

Islands Architecture Support

The dashboard safely handles multiple mountDashboard() calls, making it ideal for islands architecture:

// Island 1, Island 2, Island 3 all call mountDashboard()
mountDashboard({ /* config */ });

// Result: Only ONE widget mounts (first call wins)
// Subsequent calls are ignored

How it works:

  • First island to load → mounts widget and registers hotkeys
  • Subsequent islands → detect existing globalThis.autoTracer.widget, skip mounting
  • All islands share the same tracer instance (globalThis.autoTracer.flowTracer)
  • Single widget controls single tracer, no duplicates

Recommended pattern:

  • Configure dashboardConfig in each island's Vite plugin
  • Let the first-to-load island mount the dashboard
  • All islands get tracer injection, but only one dashboard

API

mountDashboard(config?)

Mount dashboard widget to DOM and register hotkeys.

mountDashboard({
  enabled?: boolean;
  hideByDefault?: boolean;
  position?: DashboardPosition;
  hotkeys?: {
    toggleTracing?: string;
    toggleDashboard?: string;
  };
});

Note: Calling multiple times is safe (duplicate calls are ignored).

WidgetControls

Exposed via globalThis.autoTracer.widget:

interface WidgetControls {
  show(): void;
  hide(): void;
  toggle(): void;
  isVisible(): boolean;
  unregisterHotkeys(): void;
}

Browser Support

  • Chrome/Edge 90+
  • Firefox 88+
  • Safari 14+
  • Modern browsers with ES2022 support

License

MIT © Carl Ribbegårdh