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

linkweaver

v1.4.6

Published

Linkweaver MCP Server

Readme

Linkweaver

智能需求与业务架构协同流图系统

Linkweaver 是一个融合了需求梳理、拓扑业务流设计、微服务架构可视化、动态业务流演示以及 MCP 协议 AI 联动的新一代可视化架构设计工具。

✨ 核心特性

🗺️ 可视化画布

  • 实体节点(数据表/服务/角色)拖拽布局,支持字段定义
  • 区域分组(Region),按服务领域划分,支持折叠/展开
  • 连接线,支持正向/反向/双向数据流
  • 画布缩放与视图重置

🔥 业务流(Business Flow)

  • 创建并管理多个业务流程(如"用户登录到购买全链路")
  • 选中业务流后,相关节点和线段单独高亮,其余元素虚化降噪
  • 粒子流向动画:一枚发光能量球从起始节点出发,沿业务流路径飞越各节点和连接线
    • 节点被"触碰"时会产生霓虹脉冲闪光特效
    • 支持播放速度实时调节(200ms - 2000ms)

🤖 MCP 协议集成

通过 Model Context Protocol(MCP)暴露完整 API,大模型可直接操作项目:

  • list_projects / get_project
  • create_node / update_node / delete_node
  • create_edge / update_edge
  • list_business_flows / create_business_flow / update_business_flow / delete_business_flow

📊 项目管理

  • 多项目切换,需求文档管理
  • 画布自动布局(Format)
  • PNG / GIF 导出

🚀 快速开始

前置要求

  • Node.js 18+
  • Go 1.21+

启动开发环境

# 1. 启动前端和后端(MCP Server 内置前端伺服)
cd server-ts
npm install
npm run build
npm start

浏览器访问 http://localhost:8081

MCP 接入配置

在 AI 工具(如 Claude Desktop、Cursor)的 MCP 配置中添加:

方式一:使用 NPM 直接运行(推荐)

{
  "mcpServers": {
    "linkweaver": {
      "command": "npx",
      "args": ["-y", "linkweaver"],
      "env": {
        "REQFLOW_DATA_DIR": "你的本地数据存储路径(例如:D:\\LinkweaverData)"
      }
    }
  }
}

方式二:本地源码运行

{
  "mcpServers": {
    "linkweaver": {
      "command": "node",
      "args": ["D:\\project\\Workbench\\server-ts\\dist\\index.js"],
      "env": {
        "REQFLOW_DATA_DIR": "D:\\project\\Workbench\\data"
      }
    }
  }
}

🏗️ 技术栈

| 层级 | 技术 | |------|------| | 前端 | React 18 + TypeScript + Vite + Tailwind CSS | | 状态管理 | Zustand | | 后端 / MCP | Node.js + TypeScript + @modelcontextprotocol/sdk | | 数据存储 | JSON 文件持久化 (带文件锁机制) | | 协议 | REST API + MCP stdio |

📁 项目结构

Linkweaver/
├── web/          # React 前端
│   ├── src/
│   │   ├── components/
│   │   │   ├── Canvas/       # 主画布
│   │   │   ├── Toolbar/      # 工具栏
│   │   │   ├── Sidebar/      # 项目侧边栏
│   │   │   └── CanvasSidePanel/  # 业务流面板
│   │   ├── store/            # Zustand 状态
│   │   └── types/            # TypeScript 类型
└── server-ts/    # Node.js 后端 / MCP Server
    ├── src/
    │   ├── index.ts   # 主入口,端口侦测与服务挂载
    │   ├── api.ts     # REST API 路由
    │   ├── mcp.ts     # MCP 工具注册
    │   ├── store.ts   # JSON 读写与文件锁
    │   └── models.ts  # 数据模型

📝 许可证

MIT License