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

@yh-ui/flow

v1.0.26

Published

YH-UI High-performance Flow Chart Component

Downloads

2,571

Readme

@yh-ui/flow

YH-UI 的流程图和节点编辑包,适合搭建工作流编排、审批流、AI Agent 流程、BPMN 草图、数据处理链路和可视化配置平台。

Documentation | GitHub

Highlights

  • 可视化流程画布:节点、连线、缩放、拖拽、选择、视口适配和画布交互由核心组件统一管理。
  • 内置节点类型:基础节点、输入节点、输出节点、分组节点、菱形节点、数据库节点,以及 BPMN 和 AI Workflow 节点库。
  • 多种连线:基础线、平滑线、阶梯线、贝塞尔线和数据流连线,适合表达不同业务语义。
  • 编辑器辅助组件:节点编辑面板、连线编辑面板、AI 节点编辑面板、MiniMap、Controls、Background 可按需组合。
  • 可扩展架构:导出 types、core、utils、plugins,方便封装自己的节点库、连线策略和编辑侧栏。
  • Vue 和 TypeScript 原生体验:节点可使用 Vue 组件表达,流程数据有类型约束。

Install

pnpm add @yh-ui/flow

Basic Usage

<script setup lang="ts">
import { Flow, Controls, FlowBackground, Minimap } from '@yh-ui/flow'
import type { FlowEdge, FlowNode } from '@yh-ui/flow'

const nodes: FlowNode[] = [
  { id: 'start', type: 'input', label: 'Start', position: { x: 80, y: 80 } },
  { id: 'task', label: 'Process order', position: { x: 280, y: 80 } },
  { id: 'done', type: 'output', label: 'Done', position: { x: 500, y: 80 } }
]

const edges: FlowEdge[] = [
  { id: 'e-start-task', source: 'start', target: 'task' },
  { id: 'e-task-done', source: 'task', target: 'done' }
]
</script>

<template>
  <Flow :nodes="nodes" :edges="edges" fit-view style="height: 560px">
    <Minimap />
    <Controls />
    <FlowBackground />
  </Flow>
</template>

Built-In Exports

| Area | Exports | | ------- | ----------------------------------------------------------------------------------------------- | | Canvas | Flow, Minimap, Controls, FlowBackground | | Nodes | BaseNode, InputNode, OutputNode, GroupNode, CustomNode, DiamondNode, DatabaseNode | | Edges | BaseEdge, SmoothEdge, StepEdge, BezierEdge, DataFlowEdge | | Editing | NodeEditPanel, EdgeEditPanel, AiNodeEditPanel, NodeToolbar, NodeResizer | | Presets | BPMN nodes, AI workflow nodes, registration helpers |

Tips

  • Give the canvas an explicit height; otherwise the editor cannot calculate the viewport.
  • In Nuxt or SSR pages, render browser-only editing surfaces inside <ClientOnly> when they depend on pointer or canvas APIs.
  • Keep node data serializable if you plan to persist workflows or send them to a backend.

License

MIT