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

@particle-academy/fancy-flow

v0.2.2

Published

Workflow editor + runner built on React Flow. Six built-in node kits (trigger / action / decision / output / note / subgraph), tokenized theme, topological execution with per-node status.

Readme

@particle-academy/fancy-flow

Workflow editor + runner built on React Flow. Six built-in node kits, tokenized theme, topological execution with per-node status events.

Install

npm install @particle-academy/fancy-flow @xyflow/react
import "@xyflow/react/dist/style.css";
import "@particle-academy/fancy-flow/styles.css";

Quick start

import { FlowCanvas, useFlowState, useFlowRun, applyStatusesToNodes, FlowRunControls, FlowRunFeed } from "@particle-academy/fancy-flow";
import type { ExecutorRegistry, FlowGraph } from "@particle-academy/fancy-flow";

const initial: FlowGraph = {
  nodes: [
    { id: "t",  type: "trigger",  position: { x: 0, y: 0 },   data: { kind: "trigger", label: "Manual" } },
    { id: "a",  type: "action",   position: { x: 240, y: 0 }, data: { kind: "action",  label: "Fetch user" } },
    { id: "d",  type: "decision", position: { x: 480, y: 0 }, data: { kind: "decision", label: "Active?" } },
    { id: "ok", type: "output",   position: { x: 720, y: -60 }, data: { kind: "output", label: "Allow" } },
    { id: "no", type: "output",   position: { x: 720, y: 80 },  data: { kind: "output", label: "Deny" } },
  ],
  edges: [
    { id: "e1", source: "t", target: "a" },
    { id: "e2", source: "a", target: "d" },
    { id: "e3", source: "d", sourceHandle: "true",  target: "ok" },
    { id: "e4", source: "d", sourceHandle: "false", target: "no" },
  ],
};

const executors: ExecutorRegistry = {
  trigger: () => ({ now: Date.now() }),
  action:  async () => ({ id: 1, active: true }),
  decision: ({ inputs }) => ({ branch: (inputs.in as any)?.active ? "true" : "false" }),
  output:  ({ inputs }) => inputs.in,
};

function MyEditor() {
  const flow = useFlowState(initial);
  const runner = useFlowRun();
  const renderedNodes = applyStatusesToNodes(flow.nodes, runner.statuses, runner.statusText);

  return (
    <div style={{ display: "grid", gridTemplateColumns: "1fr 360px", gap: 16 }}>
      <FlowCanvas
        nodes={renderedNodes}
        edges={flow.edges}
        onNodesChange={flow.onNodesChange}
        onEdgesChange={flow.onEdgesChange}
        onConnect={flow.onConnect}
        toolbar={<FlowRunControls running={runner.running} onRun={() => runner.run(flow.toGraph(), executors)} onCancel={runner.cancel} onReset={runner.reset} />}
      />
      <FlowRunFeed entries={runner.feed} />
    </div>
  );
}

Node kit (v0.1)

| Kind | Purpose | Default ports | |---|---|---| | trigger | Entry point | outputs only (out) | | action | Work-doing node | inout | | decision | Branching | intrue / false (configurable) | | output | Terminal | in only | | note | Annotation | none | | subgraph | Collapse a group | facade ports |

Custom nodes plug in via xyflow's standard nodeTypes prop:

<FlowCanvas nodeTypes={{ ...defaultNodeTypes, myNode: MyCustomNode }} ... />

Runtime

runFlow(graph, executors, onEvent?, options?) does a topological walk:

  • Each node fires once when all upstream connected ports have produced values.
  • Decision-style nodes can return { branch: "true" } or { __port: "out", value } to activate specific output ports — only edges leaving an active port propagate.
  • Cycles abort the run.
  • onEvent receives RunEvents for status, output, log, run-start/end.

useFlowRun wraps runFlow with React state for statuses, status text, and a feed log.

Status

v0.1 — editor + runner + node kit. Roadmap:

  • Subgraph expand/collapse interactions
  • Edge labels (config metadata)
  • Auto-layout (dagre integration)
  • Persistence helpers (zod schema)
  • Agent bridge (in @particle-academy/agent-integrations — coming next)

License

MIT