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

@nexus-state/devtools

v0.2.0

Published

> Developer tools for Nexus State — Redux DevTools integration with time-travel debugging > > [![npm version](https://img.shields.io/npm/v/@nexus-state/devtools)](https://www.npmjs.com/package/@nexus-state/devtools) > [![Coverage for devtools package](htt

Readme

@nexus-state/devtools

Developer tools for Nexus State — Redux DevTools integration with time-travel debugging

npm version Coverage for devtools package License

DocumentationRepository


📦 Installation

npm install @nexus-state/devtools @nexus-state/time-travel

🔗 See Also

Full ecosystem: Nexus State Packages


Features

  • State Inspection: View all atoms and their values
  • Action Tracking: Track all state changes with full history
  • Time-Travel Debugging: Move between different states
  • Atom Naming: Display meaningful atom names
  • Stack Traces: See where state changes originate
  • Batch Updates: Group related state changes
  • Performance: Lazy state serialization for large state trees

Quick Start

Basic Setup

import { atom, createStore } from '@nexus-state/core';
import { devTools } from '@nexus-state/devtools';
import { SimpleTimeTravel } from '@nexus-state/time-travel';

// Create atom
const countAtom = atom(0, 'counter');

// Create store
const store = createStore();

// Create time travel instance
const timeTravel = new SimpleTimeTravel(store);

// Apply devtools plugin
const devtoolsPlugin = devTools();
devtoolsPlugin.apply(store);
devtoolsPlugin.setTimeTravel(timeTravel);

With Configuration

import { devTools } from '@nexus-state/devtools';

const devtoolsPlugin = devTools({
  name: 'My App',           // App name for DevTools
  trace: true,              // Enable stack trace capture
  traceLimit: 5,            // Limit stack trace depth
  maxAge: 100,              // Maximum history depth
  showAtomNames: true,      // Show atom names
  latency: 50,              // Delay before sending updates (ms)
  actionNamingStrategy: 'auto', // or 'manual'
  stateSanitizer: (state) => state, // Custom state sanitization
>
> [![Coverage for devtools package](https://coveralls.io/repos/github/eustatos/nexus-state/badge.svg?branch=main&job_name=devtools)](https://coveralls.io/github/eustatos/nexus-state?branch=main)
});

devtoolsPlugin.apply(store);

Usage Examples

React Integration

import { atom, createStore } from '@nexus-state/core';
import { useAtom } from '@nexus-state/react';
import { devTools } from '@nexus-state/devtools';
import { SimpleTimeTravel } from '@nexus-state/time-travel';

const countAtom = atom(0, 'counter');
const firstNameAtom = atom('John', 'firstName');
const lastNameAtom = atom('Doe', 'lastName');

const store = createStore();
const timeTravel = new SimpleTimeTravel(store);
const devtoolsPlugin = devTools();
devtoolsPlugin.apply(store);
devtoolsPlugin.setTimeTravel(timeTravel);

function Counter() {
  const [count, setCount] = useAtom(countAtom, store);
  
  return (
    <div>
      <p>Count: {count}</p>
      <button onClick={() => setCount(count + 1)}>+</button>
    </div>
  );
}

function Profile() {
  const [firstName] = useAtom(firstNameAtom, store);
  const [lastName] = useAtom(lastNameAtom, store);
  
  return (
    <div>
      <p>Name: {firstName} {lastName}</p>
    </div>
  );
}

Time Travel

The DevTools plugin now uses @nexus-state/time-travel for state navigation. To enable time travel:

import { SimpleTimeTravel } from '@nexus-state/time-travel';

const timeTravel = new SimpleTimeTravel(store);
devtoolsPlugin.setTimeTravel(timeTravel);

Use the DevTools interface to:

  • Click "Jump to State" to revert to any previous state
  • Use "Undo" and "Redo" buttons to navigate history
  • Inspect the state at any point in time

Action Naming Strategies

// Auto-naming (default)
const devtoolsPlugin = devTools({
  actionNamingStrategy: 'auto'
});

// Manual naming
store.set(countAtom, 5, 'INCREMENT_COUNT');

// Custom action naming
const devtoolsPlugin = devTools({
  actionNamingStrategy: 'manual'
});

Stack Trace Capture

const devtoolsPlugin = devTools({
  trace: true,        // Enable stack trace capture
  traceLimit: 10      // Limit to 10 frames
});

devtoolsPlugin.apply(store);

State Sanitization

const devtoolsPlugin = devTools({
  stateSanitizer: (state) => {
    // Remove sensitive data
    return {
      ...state,
      password: '[REDACTED]',
      token: '[REDACTED]'
    };
  }
});

devtoolsPlugin.apply(store);

Batch Updates

// Group multiple updates into single DevTools action
store.startBatch('user-update');
store.set(firstNameAtom, 'Jane');
store.set(lastNameAtom, 'Smith');
store.set(ageAtom, 25);
store.endBatch('user-update');

Testing

npm test
npm run test:e2e

License

MIT