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

@plyaz/devtools-extension

v1.0.3

Published

Devtools panel for Plyaz apps - debug services, API requests, state, streaming, and more.

Readme

@plyaz/devtools-extension

Comprehensive developer tools panel for debugging and monitoring Plyaz applications.

Installation

pnpm add @plyaz/devtools-extension

Quick Start

import { PlyazDevtools } from '@plyaz/devtools-extension';
import '@plyaz/devtools-extension/styles.css';

// In your app
<PlyazDevtools
  config={{
    enabled: process.env.NODE_ENV === 'development',
  }}
  plyaz={plyazInstance}  // from usePlyaz()
  intl={{ locale, messages }}  // optional: from next-intl
/>

Toggle with Ctrl+Shift+D or click the floating button.

Configuration

import type { DevtoolsConfig } from '@plyaz/devtools-extension';

const config: DevtoolsConfig = {
  enabled: true,
  position: 'bottom',           // 'bottom' | 'left' | 'right'
  defaultHeight: 400,
  defaultWidth: 400,
  theme: 'dark',                // 'dark' | 'light'

  tabs: {
    enabled: ['*'],             // Enable all, or specific: ['streaming', 'api']
    disabled: [],               // Disable specific tabs
    favorites: ['streaming'],   // Pinned tabs
    defaultTab: 'streaming',
  },

  storage: {
    adapter: 'indexeddb',       // 'indexeddb' | 'memory'
    retentionDays: 1,
    maxItems: 200,
  },

  shortcuts: {
    toggle: 'Ctrl+Shift+D',
    search: 'Ctrl+K',
    close: 'Escape',
  },

  security: {
    readOnly: false,
    sensitiveKeys: ['password', 'token', 'secret', 'key', 'auth'],
  },

  hooks: {
    onOpen: () => {},
    onClose: () => {},
    onTabChange: (tab) => {},
    onError: (error) => {},
  },
};

Keyboard Shortcuts

| Shortcut | Action | |----------|--------| | Ctrl+Shift+D | Toggle devtools panel | | Ctrl+K | Open tab search (command palette) | | Escape | Close panel or search | | 1-9 | Quick switch to tab by number | | [ / ] | Previous / Next tab |

Available Tabs

Data Flow

  • Streaming - Real-time SSE message monitoring with channel filtering
  • Stores - Zustand store state inspection with time-travel debugging
  • Actions - Track store actions/mutations with replay capability
  • API - HTTP request/response inspector with cURL export
  • Events - Core event system monitoring with re-emit
  • Errors - Error tracking with resolution workflow
  • Console - Intercepted console output viewer

Infrastructure

  • Services - Frontend/backend service status and controls
  • Uploads - File upload progress monitoring
  • Storage - Browser storage inspection (localStorage, sessionStorage, cookies, IndexedDB)
  • Config - Application configuration viewer

Quality

  • Security - Security best practices audit
  • Compliance - Regulatory compliance status (GDPR, CCPA, SOC2)
  • Accessibility - a11y audit with WCAG references

Observability

  • Observability - Metrics, traces, and spans viewer

Development

  • Playground - API endpoint testing sandbox
  • Feature Flags - Live feature flag management
  • Mocking - Request mocking and interception
  • Explorer - Package exports browser

Framework

  • SSR - Server-side rendering and hydration metrics
  • Routes - Next.js route inspection
  • I18n - Internationalization tools with missing translation detection
  • React - Component render tracking and props inspection

Help

  • Shortcuts - Keyboard shortcut reference

Programmatic Access

Hooks

import { useDevtools, useDevtoolsAppConfig } from '@plyaz/devtools-extension';

function MyComponent() {
  const {
    isOpen,
    activeTab,
    setActiveTab,
    apiRequests,
    events,
    errors,
    streamMessages,
  } = useDevtools();

  const { frontendConfig, packageExports } = useDevtoolsAppConfig();
}

Data Persistence

DevTools persists data to IndexedDB across page refreshes:

  • API requests
  • Events
  • Stream messages
  • Errors
  • Actions
  • Console logs
  • State snapshots

Auto-cleanup based on storage.retentionDays config.

Panel Positions

position: 'bottom' (default)
┌─────────────────────────────────────┐
│           Your App                  │
├─────────────────────────────────────┤
│  Tab Groups  │  Tab Content         │
└─────────────────────────────────────┘

position: 'left'
┌──────────┬──────────────────────────┐
│ Tabs     │       Your App           │
└──────────┴──────────────────────────┘

position: 'right'
┌──────────────────────────┬──────────┐
│       Your App           │    Tabs  │
└──────────────────────────┴──────────┘

Scripts

pnpm build          # Full build: clean + JS + CSS + types
pnpm dev            # Watch mode for development
pnpm lint           # Run ESLint
pnpm lint:fix       # Auto-fix lint issues
pnpm format         # Format with Prettier
pnpm type:check     # TypeScript type checking
pnpm test           # Run tests
pnpm test:watch     # Run tests in watch mode
pnpm example        # Run the example Next.js app

Troubleshooting

DevTools Not Appearing

  • Check config.enabled is true
  • Verify environment is development
  • Try Ctrl+Shift+D to toggle

No Data in Tabs

  • Ensure Plyaz Core is initialized
  • Check that services are configured and enabled
  • Verify streaming endpoint is accessible

Performance Issues

  • Reduce storage.maxItems
  • Set storage.retentionDays: 1
  • Clear old data periodically
  • Disable unused tabs in tabs.disabled