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

rellx-devtools

v2.0.1

Published

DevTools for Rellx State Manager

Readme

Rellx DevTools

DevTools for Rellx State Manager - powerful tools for debugging and monitoring application state.

Features

  • Time Travel Debugging - navigate through state history
  • Action History - complete history of actions with timestamps
  • Real-time State Monitoring - real-time state monitoring
  • WebSocket Communication - fast communication with application
  • Modern UI - modern DevTools-style interface

Project Structure

rellx-devtools/
├── devtools-ui/              # React DevTools UI
├── extension/                # Browser Extension for Chrome/Edge
├── examples/                 # Usage examples
├── scripts/                  # Server scripts and utilities
└── package.json             # Project configuration

Installation and Setup

Install Dependencies

npm install

Run DevTools UI

npm run dev

DevTools UI will be available at: http://localhost:3000

Run Demo Server

# Simple test server
npm run start-simple

# Full demo with realistic data
npm run start-server

Browser Extension

Rellx DevTools is available as a Chrome/Edge extension that integrates into browser DevTools.

Installing the Extension

  1. Build the extension:
# Generate icons (first time only)
npm run generate-icons

# Build extension
npm run build:extension
  1. Load into Chrome/Edge:

    • Open browser and navigate to chrome://extensions/ (or edge://extensions/)
    • Enable "Developer mode" in the top right corner
    • Click "Load unpacked"
    • Select the extension folder in the rellx-devtools directory
  2. Use the extension:

    • Open any web page
    • Open DevTools (F12)
    • You will see a new "Rellx" tab
    • Click on it to open DevTools UI

Updating the Extension

After code changes:

npm run build:extension

Then in chrome://extensions/ click the refresh button (↻) on the Rellx DevTools extension.

Usage

1. Start DevTools Server

node scripts/start-devtools-server.cjs

2. Open DevTools UI

Option A: Via Web Interface

cd devtools-ui
npm start

Open browser: http://localhost:3000

Option B: Via Browser Extension (recommended)

The extension is already installed (see Browser Extension section above). Simply open browser DevTools (F12) and go to the "Rellx" tab.

3. Integration with Your Application

// In your application
import { createStore } from "rellx";

const store = createStore({
  // your configuration
});

// Connect to DevTools (optional)
if (process.env.NODE_ENV === "development") {
  store.connectToDevTools("ws://localhost:8097");
}

Key Features

Time Travel

  • Navigate through state history
  • Replay actions
  • Compare states

Action History

  • Complete history of all actions
  • Timestamps
  • Action details

State Monitoring

  • Current state in real-time
  • JSON viewer
  • Statistics

WebSocket Protocol

DevTools uses a simple WebSocket protocol:

Messages from server:

// Initialization
{
  type: "INIT",
  payload: { state: {...} },
  timestamp: 1234567890,
  id: "init_1234567890"
}

// State update
{
  type: "UPDATE",
  payload: {
    state: {...},
    action: {
      type: "ACTION_TYPE",
      id: "action_123",
      timestamp: 1234567890
    }
  },
  timestamp: 1234567890,
  id: "update_1234567890"
}

Testing

npm test

License

MIT