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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@wendystraite/zedux-logger

v2.2.0

Published

Logging utility for Zedux

Readme

Zedux Logger

npm license

Logging utility for Zedux.

⚠️ This library is a work in progress and has performance issues, use only in development ⚠️

See https://github.com/Omnistac/zedux/discussions/194.

Features

  • 🚀 Compatible with Zedux v2
  • 🎨 Fully customizable, can show, hide, reorder or configure anything displayed in the logs
  • 📊 Can either use grouped logs (console.group) or one line logs (console.log)
  • 😄 Emojis
  • 🌈 Colors, with colorblind friendly templates
  • 🔍 Diffing old/new state of objects/arrays
  • 📈 Flat / Top Down / Bottom up default graphs and a custom graph grouped by namespaces
  • 📸 Snapshot of the entire ecosystem
  • 🔮 Deobfuscate the scary single letters in zedux's internals
  • ⏳ Showing atoms promise's state and dependent atoms that are waiting for it
  • ⏱️ Tracking of nodes execution time, warns if anything is slow
  • ⚙️ Can change the logger's options in runtime
  • 🖥️ Can change the console used
  • 📡 Can show any zedux events
  • 🎯 Apply custom options based on nodes ids, types, template or tags
  • 📝 Templates (of options) support, can create custom templates or use built in ones

Install

npm install --dev @wendystraite/zedux-logger
yarn add -D @wendystraite/zedux-logger
pnpm install --dev @wendystraite/zedux-logger

How to use

Basic logger (vanilla js) :

const ecosystem = createEcosystem();
addZeduxLogger(ecosystem);

Basic logger (react) :

export function ZeduxProvider({ children }: PropsWithChildren) {
  // Create an ecosystem with the logger attached
  const ecosystem = useMemo(() => {
    const ecosystem = createEcosystem();
    addZeduxLogger(ecosystem);
    return ecosystem;
  }, []);

  // Provides it
  return (
    <EcosystemProvider ecosystem={ecosystem}>{children}</EcosystemProvider>
  );
}

With options :

addZeduxLogger(ecosystem, {
  templates: [
    // Use color blind colors
    'colors-color-blind-okabe-ito',
    // Use `console.log` instead of `console.group`
    'one-line-logs'
  ],
  filters: [
    {
      exclude: [
        // Don't log any @memo or @signals atoms
        { type: ['@memo', '@signal'] },
        // Don't log any atoms with the tag 'no-log'
        { tag: 'disable-log' },
      ],
    },
  ],
  options: {
    // Only enabled in DEV mode (on Vite)
    enabled: import.meta.env.DEV,
  }
});

Playground

A playground project can be found in the playground folder.

Tests

90% tests coverage.

Benchmarks

bench-results

Planned

Optimizing the logger

  • Stabilize the incremental graph generation
  • Applying other optimizations