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

opencode-business-flow-reviewer

v2.0.0

Published

OpenCode plugin that reviews business processes for completeness and closed-loop flow from a product manager's perspective.

Readme

opencode-business-flow-reviewer

English · 中文

一个 OpenCode 插件,从产品经理视角检查业务流程的完整性与可闭环性 (而非代码质量)。输出一组结构化发现(严重等级、维度、规则、位置、修复建议) 以及覆盖率评分。

无构建步骤。OpenCode 内置的 Bun 运行时直接 import 原始的 src/index.ts, 因此本包发布的是 TypeScript 源码,并要求 Bun(见 engines.bun)。

安装

本包包含两部分:工具(由插件注册)和技能(从文件系统发现)。npm 的 plugin 引用只会安装工具,技能需要复制到你的 OpenCode 配置目录。

  1. opencode.json 中引用插件:

    { "plugin": ["opencode-business-flow-reviewer"] }
  2. 安装技能(让 business-flow-review 可以自动触发):

    # 全局(~/.config/opencode);传入项目根目录则装到 <root>/.opencode
    node_modules/opencode-business-flow-reviewer/scripts/install.sh
    node_modules/opencode-business-flow-reviewer/scripts/install.sh doctor   # 校验

    或者不装技能,直接调用 business_flow_review 工具。

business_flow_review 工具

| 参数 | 类型 | 默认 | 说明 | | --- | --- | --- | --- | | input | string | — | 原始流程文本,或包含流程的文件路径。 | | mode | auto | prd | journey | code | auto | 审查模式。auto 根据内容自动判断。 | | directory | string | 会话目录 | 项目目录(用于解析文件路径)。 | | maxFindings | number | 50 | 最多展示的发现数(不影响评分)。 |

模式

  • prd — 需求文档 / 用户故事:角色、目标、场景、触发条件、分支、异常、成功标准。
  • journey — 用户 / 交互流程:端到端步骤、状态迁移、决策点、退出 / 回退路径。
  • code — TS/JS 实现:未覆盖分支、缺失补偿 / 幂等 / 超时、危险的状态写入顺序。
  • auto — 按扩展名和内容选择模式;空 / 无法识别的输入会返回"无可分析内容"的终态(不会编造发现)。

覆盖率评分基于全量发现(在 maxFindings 截断之前)相对于该模式实际评估的维度计算, 因此不会因为 maxFindings 调小而虚高。

开发

bun install            # 在仓库根目录执行(依赖会被提升)
bun run typecheck      # tsc --noEmit
bun test               # 单元 + 工具 + index 测试
bun run test:e2e       # 冒烟测试(加载真实插件)

许可证

MIT © 2026 lijiamin (李家民)。