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

causal-inspector

v0.2.1

Published

React UI for inspecting causal-rs event streams, workflows, and reactor logs.

Readme

causal-inspector

React UI for inspecting causal-rs event streams, workflows, and reactor logs.

Install

npm install causal-inspector

Peer deps (provide the ones you use): react, react-dom, and — for the flow / layout panes — @xyflow/react, @dagrejs/dagre, flexlayout-react.

Embedding

The inspector ships self-contained, isolated styles — it does not require Tailwind (or anything else) in the host app. Two imports:

import { CausalInspector } from "causal-inspector";
import "causal-inspector/styles.css"; // utilities + tokens + flow/layout CSS, all scoped

That's it. Render it anywhere:

<CausalInspector transport={transport} />

Style isolation

All shipped CSS is confined to the .causal-inspector root the component renders:

  • Nothing leaks out — every selector in dist/causal-inspector.css is namespaced under .causal-inspector, so the inspector can't restyle the host app. The third-party flow/layout CSS (@xyflow/react, flexlayout-react) is bundled and scoped too, instead of polluting the global stylesheet.
  • The host doesn't leak in — the bundle carries its own preflight reset and design tokens (defined on .causal-inspector), and is emitted without cascade layers so its scoped rules win on specificity over a host's global resets, element styles, and body/reset CSS.

Known limit: scope-based isolation can't override a host rule that targets the same Tailwind class name with !important (only possible if the host also runs Tailwind), nor a pathological * { font-family }. If you embed inside a Tailwind host, build with a class prefix (see below) to eliminate name collisions entirely.

Re-theming

Override the design tokens on the root from the host:

.causal-inspector {
  --color-background: #101014;
  --color-foreground: #e7e7ef;
  /* …any of the --color-* / --radius tokens… */
}

Build

npm run build       # tsc → dist, copy scoped overrides, compile the CSS bundle
npm run build:css   # just recompile dist/causal-inspector.css

The CSS bundle is produced by postcss.config.mjs: Tailwind v4 compiles src/styles.css (scanning src/**/*.{ts,tsx} for the utilities actually used), then every selector is scoped under .causal-inspector and the cascade layers are flattened. To harden for a Tailwind host, add a Tailwind prefix(...) in src/styles.css and the matching prefix to component class names.