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

@netpad/workflow-renderer

v1.0.0

Published

React component library for rendering NetPad workflow definitions as interactive, read-only visualizations

Readme

@netpad/workflow-renderer

React component library for rendering NetPad workflow definitions as interactive, read-only visualizations. Built on ReactFlow (xyflow).

Features

  • Visual parity - Identical rendering across all NetPad surfaces
  • Read-only focus - Optimized for display, not editing
  • 25+ node types - Full coverage of NetPad workflow nodes
  • Auto-layout - Render workflows without position data using Dagre
  • Themeable - Built-in dark/light themes + custom theme support
  • Lightweight - Minimal bundle size for what it does

Installation

npm install @netpad/workflow-renderer
# or
yarn add @netpad/workflow-renderer
# or
pnpm add @netpad/workflow-renderer

Basic Usage

import { WorkflowRenderer } from '@netpad/workflow-renderer';
import '@netpad/workflow-renderer/styles.css';

const workflow = {
  nodes: [
    { id: '1', type: 'form_trigger', position: { x: 0, y: 0 }, data: { label: 'Form Submit' } },
    { id: '2', type: 'email_send', position: { x: 200, y: 0 }, data: { label: 'Send Email' } },
  ],
  edges: [
    { id: 'e1', source: '1', target: '2' },
  ],
};

function App() {
  return (
    <WorkflowRenderer
      workflow={workflow}
      height={400}
    />
  );
}

With Auto-Layout

If your workflow nodes don't have position data, enable auto-layout:

import { WorkflowRenderer } from '@netpad/workflow-renderer';

const workflow = {
  nodes: [
    { id: '1', type: 'form_trigger', data: { label: 'Form Submit' } },
    { id: '2', type: 'filter', data: { label: 'Priority Check' } },
    { id: '3', type: 'email_send', data: { label: 'Send to IT' } },
    { id: '4', type: 'slack_send', data: { label: 'Post to #general' } },
  ],
  edges: [
    { id: 'e1', source: '1', target: '2' },
    { id: 'e2', source: '2', target: '3', data: { label: 'High' } },
    { id: 'e3', source: '2', target: '4', data: { label: 'Normal' } },
  ],
};

function App() {
  return (
    <WorkflowRenderer
      workflow={workflow}
      autoLayout={true}
      layoutDirection="TB"
      height={400}
    />
  );
}

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | workflow | WorkflowDefinition | Required | Workflow definition to render | | height | number \| string | Required | Height of the renderer | | width | number \| string | '100%' | Width of the renderer | | autoLayout | boolean | false | Enable auto-layout for workflows without position data | | layoutDirection | 'TB' \| 'BT' \| 'LR' \| 'RL' | 'TB' | Direction for auto-layout | | theme | 'light' \| 'dark' \| RendererTheme | 'dark' | Theme preset or custom theme | | showMinimap | boolean | false | Show minimap | | showControls | boolean | true | Show zoom controls | | showBackground | boolean | true | Show background pattern | | pannable | boolean | true | Allow panning | | zoomable | boolean | true | Allow zooming | | fitView | boolean | true | Fit view to show all nodes on load | | onNodeClick | (node) => void | - | Called when a node is clicked | | onEdgeClick | (edge) => void | - | Called when an edge is clicked |

Themes

Built-in Themes

<WorkflowRenderer workflow={workflow} theme="dark" height={400} />
<WorkflowRenderer workflow={workflow} theme="light" height={400} />

Custom Theme

import { WorkflowRenderer, createTheme, darkTheme } from '@netpad/workflow-renderer';

const customTheme = createTheme({
  nodeCategories: {
    trigger: '#00FF00', // Custom trigger color
  },
});

<WorkflowRenderer workflow={workflow} theme={customTheme} height={400} />

Node Types

| Category | Types | |----------|-------| | Triggers | form_trigger, webhook_trigger, schedule_trigger, manual_trigger | | Logic | filter, switch, delay, loop, parallel, merge | | Data | mongodb_query, mongodb_insert, mongodb_update, mongodb_delete, transform | | Actions | email_send, slack_send, webhook_call, http_request, sms_send, push_notification, function | | AI | llm_generate, llm_classify, llm_extract, llm_summarize | | Utility | note, variable_set, variable_get |

Layout Utilities

For manual layout control:

import { autoLayout } from '@netpad/workflow-renderer/layout';

const layoutedWorkflow = autoLayout(workflow, {
  direction: 'LR',
  nodeSpacing: 80,
  rankSpacing: 120,
});

Individual Components

Import individual node or edge components for advanced usage:

import { FormTriggerNode, EmailSendNode } from '@netpad/workflow-renderer/nodes';
import { ConditionalEdge } from '@netpad/workflow-renderer/edges';

Peer Dependencies

  • React >= 18.0.0
  • React DOM >= 18.0.0

License

Apache-2.0