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

@shuffleio/shuffle-core

v0.0.34

Published

Standalone React surfaces from the Shuffle Security app — Usecases explorer, form control, and more.

Downloads

3,906

Readme

Shuffle-Core

React surfaces extracted from the Shuffle Security app — the Usecases explorer, workflow editor entry points, dashboards, billing/tenant admin, and shared form controls.

Live demo: security.shuffler.io/shuffle-core-demo — every exported component rendered with its source snippet.

Install

npm install @shuffleio/shuffle-core

Peer deps: react >= 18, react-dom >= 18, @mui/material >= 5, lucide-react, react-router-dom, react-ga4, and @shuffleio/shuffle-mcps (used for the embedded app search drawer).

Quick start

import { Usecases } from '@shuffleio/shuffle-core';
import '@shuffleio/shuffle-core/shuffle-core.css';

export default function App() {
  return <Usecases />;
}

Mount inside your own router under whichever path you want — the component reads :flowId from useParams() and selected_object from useSearchParams() when running under react-router-dom.

Components

Every component below is rendered live (with source) on the demo page.

| Component | Description | Demo | |---|---|---| | Usecases (default) | Full Usecases explorer — card grid plus per-usecase detail view | #1 | | UsecaseAlluvialDiagram | Source-tools → Shuffle → destination-tools alluvial visualization | #2 | | OnboardingFlow | Shared Sources → Authenticate → Automate onboarding flow | #3 | | ProductChoiceStep | Standalone "Which Shuffle are you using?" picker step | #4 | | FormInput | Public-facing form runner for a workflow's form_control.input_questions | #5 | | RecentWorkflow | Sidebar / dashboard card for a recently edited workflow | #6 | | AutomationDashboard | Greeting plus workflow / app activity charts and filters | #7 | | DashboardOverview | SOC overview: incidents, vuln severity, monitors, sensors | #8 | | CombinedDashboard | AutomationDashboard + DashboardOverview composed together | — | | EditWorkflow | Create / edit workflow modal (name, tags, form questions, AI gen) | #9 | | Billing | License, subscription and app-run usage panel (cloud + on-prem) | #10 | | TenantManagement | Multi-tenant manager: current, parent, sub-tenants, all tenants | #11 |

Helpers and hooks

| Export | Description | |---|---| | ShuffleCoreThemeProvider | MUI theme provider used by every surface — pass mode="light" \| "dark" \| "auto" | | usePageMeta | Hook that sets <title>, OG tags, and JSON-LD for the current page | | useSyncHostBaseUrl | Keep the library's API base URL in sync with the host app | | toast / setToastImpl | Tiny toast facade — swap in your own impl via setToastImpl | | API_CONFIG, getApiUrl, getAuthHeader, shuffleFetch | Shared API helpers | | setRegionUrl, resetRegionUrl, setHostBaseUrl, getHostBaseUrl | Region / base URL controls | | installFetchBreaker, registerProtectedOrigin | Opt-in fetch circuit breaker for cross-origin protection |

Theming

Every exported component accepts a theme prop:

  • "light" / "dark" — pin the subtree to that scheme
  • "system" — follow the host page's .dark class on <html>

If omitted, components default to "dark" (Shuffle's primary surface).

Status

Published from the Shuffle Security host app verbatim. Some host-app peers (@/context/AuthContext, @/lib/utils, @/config/usecases) are still imported by a few surfaces and are being inlined / made injectable in ongoing passes.