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

@boringos/workflow-ui

v0.1.8

Published

React components for visualizing and editing BoringOS workflows — DAG canvas, block palette, config forms, run diff view.

Readme

@boringos/workflow-ui

React components and hooks for visualizing, editing, and observing BoringOS workflows. Drop-in companion to @boringos/workflow — the engine ships the DAG runtime, this ships the canvas, palette, config forms, and run-diff view.

Install

npm install @boringos/workflow-ui @tanstack/react-query react react-dom

Peer deps: react@>=18, @tanstack/react-query@>=5. The package bundles @xyflow/react and @dagrejs/dagre.

The styling assumes Tailwind CSS in the consuming app (uses utility classes like text-text-primary, bg-surface-purple, etc.). If you don't use Tailwind, wrap the components in your own theme.

Quick start

import {
  useWorkflows,
  useWorkflow,
  useWorkflowRun,
  WorkflowCanvas,
  BlockPalette,
  BlockConfigForm,
  RunDiffView,
} from "@boringos/workflow-ui";

// List view
function Workflows() {
  const { data } = useWorkflows();
  return <ul>{data?.workflows.map((w) => <li key={w.id}>{w.name}</li>)}</ul>;
}

// Live run detail with SSE-driven canvas
function RunDetail({ runId }: { runId: string }) {
  const { data } = useWorkflowRun(runId);  // subscribes to /workflow-runs/:id/events
  if (!data) return null;
  return <WorkflowCanvas blocks={...} edges={...} blockRuns={data.blocks} height={400} />;
}

What's in the box

Components

  • WorkflowCanvas@xyflow/react DAG renderer with auto-layout via dagre. Two modes:
    • mode="view" — read-only, used on run detail pages with live block statuses.
    • mode="edit" — drag/connect/delete, fires onGraphChange(blocks, edges).
  • BlockPalette — categorized list of all 14 block types with one-click add.
  • BlockConfigForm — per-block-type config editor. Dispatches to specialized forms (TriggerForm, ConditionForm, …) and falls back to a JSON editor for unknown types.
  • RunDiffView — side-by-side diff of two runs, aligned by blockId, highlights status / error / output differences.

Hooks

All hooks call /api/admin/workflow* endpoints and read token + tenantId from localStorage.

| Hook | What | |---|---| | useWorkflows() | List workflows | | useWorkflow(id) | Get one workflow | | useWorkflowRuns(workflowId) | Recent runs for a workflow | | useWorkflowRun(runId) | One run + block runs, subscribes to SSE | | useCreateWorkflow() | Mutation: create | | useUpdateWorkflow() | Mutation: patch name/blocks/edges/status | | useUpdateWorkflowStatus() | Mutation: just status | | useExecuteWorkflow() | Mutation: run now (background) | | useReplayRun() | Mutation: replay a past run | | useAgentsForWorkflow() | Lookup agents for the wake-agent dropdown |

License

MIT