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 🙏

© 2025 – Pkg Stats / Ryan Hefner

bailian-taskflow

v2.3.0

Published

Bailian TaskFlow - AI驱动的PRD解析与任务管理,使用AI将PRD完全解耦评估

Downloads

85

Readme

Bailian TaskFlow

Bailian TaskFlow Node.js TypeScript Ollama MCP

AI驱动的PRD解析与任务管理 - 使用AI将PRD完全解耦评估,专为开发团队设计的CLI工具。

✨ 核心特性

🤖 AI驱动的PRD解析

  • 完整解析: 使用AI完整解析PRD文档,提取所有章节和需求
  • 智能评估: AI自动评估复杂度、优先级和工时
  • 任务分解: AI驱动的任务分解,自动识别依赖关系
  • 需求解耦: 深度解耦需求,生成结构化任务列表

🔌 MCP集成

  • 编辑器支持: Cursor、VSCode、Windsurf等
  • 无缝集成: 在编辑器中直接使用AI解析PRD

🚀 快速开始

安装

npm install -g bailian-taskflow

初始化

btf init

解析PRD

btf parse your-prd.md

MCP服务器

btf mcp

📖 使用示例

1. 初始化配置

btf init

配置Ollama:

  • Endpoint: http://localhost:11434
  • Model: qwen2.5:latest

2. 解析PRD文档

btf parse example-prd.md

输出结果:

  • 完整的PRD结构(章节、需求)
  • AI生成的任务列表
  • 复杂度评估和工时估算

3. 在编辑器中使用

配置Cursor/VSCode的MCP设置:

{
  "mcpServers": {
    "bailian-taskflow": {
      "command": "npx",
      "args": ["-y", "bailian-taskflow@latest", "mcp"],
      "env": {
        "OLLAMA_ENDPOINT": "http://localhost:11434",
        "OLLAMA_MODEL": "qwen2.5:latest"
      }
    }
  }
}

🏗️ 项目架构

src/
├── cli/                    # CLI入口和命令
│   ├── index.ts           # 主入口
│   └── commands/          # 命令实现
│       ├── init.ts        # 初始化
│       ├── parse.ts       # PRD解析
│       └── mcp.ts         # MCP服务器
├── core/                  # 核心业务逻辑
│   ├── parser/            # PRD解析器(AI驱动)
│   ├── tasks/             # 任务生成器(AI驱动)
│   ├── ai/                # AI服务
│   └── config/            # 配置管理
├── utils/                 # 工具函数
├── types/                 # 类型定义
└── constants/             # 常量

mcp-server.mjs             # MCP服务器入口(ESM)

🔧 技术栈

  • 语言: TypeScript 5.0+
  • 运行时: Node.js 18+
  • AI: Ollama(本地部署)
  • MCP: @modelcontextprotocol/sdk
  • CLI: Commander.js

📝 许可证

MIT License

🤝 贡献

欢迎提交Issue和Pull Request!