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

@wysdshg/agent-flow-mcp

v0.1.0

Published

A living flowchart for AI-coded projects: MCP server that lets your agent maintain a 7-state project flowchart (14 tools, auto-layout, zero-dependency HTML viewer)

Readme

agent-flow

让 AI agent 在开发时顺手维护一张项目流程图 —— 你再也不用读几万字的进度文档。

License: MIT MCP Node

🎮 在线演示 · English


解决什么问题

用 AI agent(Trae / Cursor / Claude Code…)做项目的人都懂:

  • agent 写的几万字 Markdown 进度文档,根本看不下去
  • 一堆专业术语看不懂,越来越不放心
  • 项目做大后早偏离了最初规划,做到哪了、哪里有坑、哪里在等你拍板,全靠猜

agent-flow 反过来:agent 在开发过程中用 14 个 MCP 工具维护一张流程图(flow.json),你随时浏览器打开一张 HTML 看:

  • 项目拆成了哪几块、谁连着谁
  • 每个功能做到哪一步了 —— 7 种颜色状态
  • 哪里有 bug、哪里在等你决策

不读文档,看图。

三步上手

npm i -g @wysdshg/agent-flow-mcp   # 全局安装(CLI + MCP 服务)
agent-flow init              # 在"你的项目"里执行:生成 .flow/ 并打印 MCP 配置
git clone https://github.com/wysdshg/agent-flow.git
cd agent-flow && npm install && npm run build && npm link

把 MCP 服务加进你的 AI 工具(Trae / Claude Desktop / Cursor 等):

{ "mcpServers": { "agent-flow": { "command": "agent-flow", "args": ["mcp"] } } }

Claude Code 也可以直接:claude mcp add agent-flow -- agent-flow mcp

之后照常和 agent 聊天即可:「整理一下这个项目的进度和流程」、「这个功能做完了,更新到流程图」。

查看器(零依赖单文件 HTML)

  • 滚轮缩放、拖拽平移、点节点看详情(含代码定位)
  • 双击模块进子图,面包屑返回
  • 模块颜色聚合:子模块全完成 → 绿;一种未完成状态 → 该色;多种 → 分色块(已废弃节点不计入,死代码不亮红灯)
  • 拖动节点自动保存在浏览器(不污染 AI 读的 JSON);右键框选整组平移
  • 网页上改状态/删节点会生成一段指令 JSON,粘回给 agent 即同步

7 态与 22 种节点

| 状态 | 颜色 | 含义 | |---|---|---| | completed | 🟢 绿 | 写完且测试通过 | | in_progress | 🔵 浅蓝 | 正在写 | | planned | 🔷 深蓝 | 方案已定,还没动手 | | broken | 🔴 红 | 有 bug | | to_plan | ⚪ 灰 | 待规划的想法 | | pending_decision | 🟡 黄 | 需要你拍板 | | deprecated | 🟤 棕 | 已废弃(保留历史) |

  • 流程:start end process judge module
  • 数据:database table file sql(表自动挂到所属库下)
  • AI 应用:llm tool_call retrieval rerank assemble api embedding cache queue prompt agent human_loop checkpoint

布局全自动(dagre 从左到右),agent 只管拓扑,不管坐标。

CLI 降级通道(无 MCP 环境时)

agent-flow init                 # 初始化 + 打印 MCP 配置
agent-flow batch spec.json      # 一次性建图(整理旧项目利器),自动渲染
agent-flow apply ops.json       # 依次执行 [{"tool":"add_node","args":{...}},...]
agent-flow render               # 重新布局并刷新 flow.html
agent-flow status               # 进度总览(JSON)
agent-flow validate             # 校验图合法性
agent-flow mcp                  # 启动 MCP stdio 服务

开发

npm run build   # tsc 构建
npm test        # 冒烟测试(tsx)

如果 agent-flow 帮你逃离了文档地狱,点个 ⭐ 让更多做项目的人看到它。