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

@gridkit/devtools

v0.1.0

Published

Browser DevTools extension for debugging GridKit Enhanced tables

Readme

@gridkit/devtools

Browser DevTools extension for debugging GridKit Enhanced tables.

Features

  • Table Inspector: View table state, columns, and rows
  • Event Timeline: Interactive event log with filtering
  • Performance Monitor: Real-time performance metrics
  • Time Travel: UI controls for time-travel debugging
  • State Diff Viewer: Visual state comparison
  • Memory Profiler: Memory usage and leak detection
  • Plugin Inspector: View loaded plugins and their state

Installation

Browser Extension

  1. Clone the GridKit repository
  2. Build the extension: pnpm build:extension
  3. Load the extension in your browser:
    • Chrome: Go to chrome://extensions/, enable Developer mode, and load the extension-dist directory
    • Firefox: Go to about:debugging, click "This Firefox", and load the temporary extension
    • Edge: Go to edge://extensions/, enable Developer mode, and load the extension-dist directory

    Note: The built extension is located in packages/devtools/extension-dist/ after running pnpm build:extension

Package Installation

npm install @gridkit/devtools

Usage

Automatic Integration

The DevTools extension automatically detects GridKit tables on the page.

Manual Integration

import { useGridEnhancedTable } from '@gridkit/core'
import { useDevToolsTable } from '@gridkit/devtools'

const table = useGridEnhancedTable({
  data,
  columns,
  debug: {
    devtools: true // Enable DevTools connection
  }
})

// Automatically register with DevTools
useDevToolsTable(table)

Manual Table Registration

import { devToolsBackend } from '@gridkit/devtools'

const table = createTable({ data, columns })

// Register table with DevTools
devToolsBackend.registerTable(table)

// Unregister when done
devToolsBackend.unregisterTable(table)

Browser Compatibility

| Browser | Version | Status | |---------|---------|--------| | Chrome | 90+ | ✅ Primary | | Firefox | 88+ | ✅ Supported | | Edge | 90+ | ✅ Supported | | Safari | 14+ | ⚠️ Limited (WebExtension API) |

Development

Build the Extension

cd packages/devtools
pnpm build:extension

Build the Package

cd packages/devtools
pnpm build

Run in Development Mode

cd packages/devtools
pnpm dev

API

devToolsBackend

Global instance of DevToolsBackend for table registration.

Methods

  • registerTable(table): Register a table with DevTools
  • unregisterTable(table): Unregister a table
  • getTables(): Get all registered tables
  • getTable(tableId): Get a specific table by ID

devToolsBridge

Communication bridge between backend and DevTools panel.

Methods

  • send(message): Send a message to DevTools
  • sendCommand(command): Send a command and wait for response
  • onCommand(type, handler): Register a command handler
  • onResponse(handler): Register a response handler
  • disconnect(): Disconnect from DevTools

Hooks

useDevToolsTable(table, enabled)

React hook to automatically register a table with DevTools.

  • table: The GridKit table instance
  • enabled: Whether DevTools integration is enabled (default: true)

useAutoDetectDevTools(enabled)

React hook to automatically detect and register GridKit tables.

  • enabled: Whether auto-detection is enabled (default: true)

Extension Structure

packages/devtools/
├── extension/
│   ├── manifest.json           # Browser extension manifest
│   ├── background.js           # Background script
│   ├── content.js              # Content script (injected)
│   ├── devtools.html          # DevTools panel HTML
│   ├── devtools.js            # DevTools panel script
│   ├── panel/                 # DevTools panel UI
│   │   ├── index.html
│   │   ├── index.tsx
│   │   ├── components/
│   │   │   ├── TableInspector.tsx
│   │   │   ├── EventTimeline.tsx
│   │   │   ├── PerformanceMonitor.tsx
│   │   │   ├── TimeTravelControls.tsx
│   │   │   ├── StateDiffViewer.tsx
│   │   │   ├── MemoryProfiler.tsx
│   │   │   └── PluginInspector.tsx
│   │   └── styles/
│   ├── icons/                 # Extension icons
│   └── assets/
├── bridge/                    # Communication bridge
│   ├── DevToolsBridge.ts      # Core bridge
│   ├── messages.ts            # Message types
│   └── protocol.ts            # Communication protocol
├── backend/                   # Table integration
│   ├── DevToolsBackend.ts     # Backend API
│   ├── detector.ts            # Table detection
│   └── hooks.ts              # Integration hooks
├── src/
│   └── index.ts              # Package entry point
├── package.json
├── tsconfig.json
└── webpack.config.js

Communication Protocol

The extension uses a message-based communication protocol between the content script, background script, and DevTools panel.

Message Types

  • BACKEND_READY: Backend is ready to accept connections
  • CONTENT_READY: Content script is ready
  • COMMAND: Command from DevTools panel
  • RESPONSE: Response to a command
  • TABLE_REGISTERED: New table registered
  • TABLE_UNREGISTERED: Table unregistered
  • STATE_UPDATE: State change
  • EVENT_LOGGED: Event logged
  • PERFORMANCE_UPDATE: Performance metrics update
  • MEMORY_UPDATE: Memory usage update

Security

  • All messages are validated before processing
  • No external network requests
  • No data collection or telemetry
  • Respects Content Security Policy

License

MIT