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

react-variant-explorer

v1.2.4

Published

A premium React component for visualizing process variants in process mining.

Readme

React Variant Explorer

A premium, high-performance React component for visualizing process mining variants with a modern, flat aesthetic.

Live Demo

Preview

Default Design (Light Mode)

Default Design Light

Circle Design

Circle Design

Minimal Design

Minimal Design

Default Design (Dark Mode)

Default Design Dark

Features

  • 🚀 Grouped Activities: Handle multiple activities in a single step with vertical stacking and smart truncation.
  • 🗸 Selection: Integrated checkboxes for individual and "select all" functionality.
  • 📊 Custom Columns: Add arbitrary data columns (e.g., duration, cost) with custom rendering and sorting.
  • 🔄 Dynamic Sorting: Built-in sorting for any column (Count, Rank, or Custom).
  • 🎨 Multiple Designs: Switch between default (chevrons), minimal (cubes), and circles (node-link) visualizations.
  • 🌓 Theming: Full support for Light, Dark, and System modes.
  • 🧩 TypeScript: Fully typed for a great developer experience.
  • 📦 Zero Config Styling: Styles are automatically injected into the bundle.

Installation

npm install react-variant-explorer

Quick Start

import { VariantExplorer } from 'react-variant-explorer';

const variants = [
  {
    id: 'v1',
    rank: 1,
    frequency: 450,
    duration: '2d 4h',
    cost: 1200,
    steps: [
      { id: 'a1', label: 'Order Received', color: '#10b981' },
      [
        { id: 'a2', label: 'Payment Confirmed', color: '#3b82f6' },
        { id: 'a3', label: 'Processing', color: '#f59e0b' },
      ],
      { id: 'a4', label: 'Shipped', color: '#6366f1' },
    ]
  }
];

const columns = [
  { key: 'duration', header: 'Duration', sortable: true },
  { 
    key: 'cost', 
    header: 'Cost', 
    sortable: true,
    render: (v) => `$${v.cost.toLocaleString()}`
  }
];

function App() {
  const [selected, setSelected] = useState([]);

  return (
    <VariantExplorer 
      variants={variants}
      columns={columns}
      design="circles"
      selectedIds={selected}
      onSelectionChange={setSelected}
      onActivityClick={(data, variant) => console.log(data)}
    />
  );
}

Props

| Prop | Type | Default | Description | | :--- | :--- | :--- | :--- | | variants | Variant[] | [] | Array of variant data to display. | | columns | Column[] | [] | Custom information columns to display. | | design | 'default' \| 'minimal' \| 'circles' | 'default' | The visualization style. | | selectedIds | string[] | [] | Array of currently selected variant IDs. | | onSelectionChange | (ids) => void | undefined | Callback when selection changes. | | theme | 'light' \| 'dark' \| 'system' | 'system' | The UI theme mode. | | onActivityClick | (data, variant) => void | undefined | Callback when a step is clicked. | | className | string | '' | Custom CSS class for the container. | | style | React.CSSProperties | {} | Custom styles for the container. |


📬 Contact

Feel free to reach out:

License

MIT © Sina Asghari