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

@liteforge/devtools

v3.0.0

Published

DevTools panel for debugging signals, stores, router, and components with time-travel debugging.

Readme

@liteforge/devtools

Debug panel for LiteForge applications with signal inspection, store time-travel, and performance monitoring.

Installation

npm install @liteforge/devtools @liteforge/core

Peer dependency: @liteforge/core >= 0.1.0

Setup

import { createApp } from '@liteforge/runtime'
import { devtoolsPlugin } from '@liteforge/devtools'

createApp({
  plugins: [
    devtoolsPlugin({
      shortcut: 'ctrl+shift+d',  // Toggle shortcut
      position: 'bottom',         // 'bottom' | 'right' | 'left'
      height: 300,                // Panel height in pixels
      defaultTab: 'signals'       // Initial tab
    })
  ]
}).mount(App)

Features

The devtools panel has five tabs:

Signals Tab

  • View all active signals and their current values
  • See update counts for each signal
  • Track dependency relationships
  • Filter by signal name

Stores Tab

  • Inspect all registered stores
  • View current state tree
  • Time-travel debugging — restore any previous state
  • Track state changes over time

Router Tab

  • View navigation history
  • See guard execution results
  • Monitor route timing
  • Inspect current route params and query

Components Tab

  • Component tree visualization
  • Mount/unmount tracking
  • Component instance counts
  • Lifecycle timing

Performance Tab

  • Signal updates per second
  • Effect executions
  • Component mount/unmount rate
  • Memory usage indicators

API

devtoolsPlugin

Creates the devtools plugin for createApp.

import { devtoolsPlugin } from '@liteforge/devtools'

devtoolsPlugin({
  // Keyboard shortcut to toggle panel
  shortcut: 'ctrl+shift+d',
  
  // Panel position
  position: 'bottom',  // 'bottom' | 'right' | 'left'
  
  // Panel size
  height: 300,         // For bottom position
  width: 400,          // For left/right position
  
  // Initial tab
  defaultTab: 'signals',
  
  // Enable in production (default: false)
  enableInProduction: false,
  
  // Buffer size for events
  bufferSize: 1000
})

createDevTools

For standalone usage without createApp:

import { createDevTools } from '@liteforge/devtools'
import { storeRegistry } from '@liteforge/store'

const devtools = createDevTools({
  stores: storeRegistry,
  shortcut: 'ctrl+shift+d'
})

// Manual control
devtools.show()
devtools.hide()
devtools.toggle()
devtools.destroy()

Keyboard Shortcuts

| Shortcut | Action | |----------|--------| | Ctrl+Shift+D | Toggle panel (default) | | Escape | Close panel | | 1-5 | Switch tabs (when panel focused) |

Time-Travel Debugging

The Stores tab supports time-travel debugging:

  1. Make changes to store state
  2. Open the Stores tab
  3. See state history with timestamps
  4. Click any history entry to restore that state
// State changes are automatically recorded
userStore.actions.login(user)
userStore.actions.updateProfile(profile)

// In devtools, you can:
// - See each state change
// - Click to restore any previous state
// - Continue from that point

Conditional Loading

Only load devtools in development:

import { createApp } from '@liteforge/runtime'

const plugins = []

if (import.meta.env.DEV) {
  const { devtoolsPlugin } = await import('@liteforge/devtools')
  plugins.push(devtoolsPlugin())
}

createApp({ plugins }).mount(App)

Custom Panels

Extend devtools with custom panels (advanced):

import { createDevTools } from '@liteforge/devtools'

const devtools = createDevTools({
  stores: storeRegistry,
  customPanels: [
    {
      id: 'network',
      label: 'Network',
      render: () => {
        // Return DOM element
        const div = document.createElement('div')
        div.innerHTML = '<h3>Network Requests</h3>'
        return div
      }
    }
  ]
})

Types

import type {
  DevToolsConfig,
  DevToolsInstance,
  PanelPosition,
  TabId,
  PanelState,
  SignalInfo,
  StoreInfo,
  StoreHistoryEntry,
  NavigationInfo,
  ComponentInfo,
  PerformanceCounters
} from '@liteforge/devtools'

License

MIT