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

@huangqz/tapd-cli

v0.2.6

Published

Manage TAPD stories from local Markdown files.

Readme

@huangqz/tapd-cli

通过本地 Markdown 文件管理 TAPD 需求的命令行工具。

安装

npm install -g @huangqz/tapd-cli

快速开始

1. 认证

# 使用个人令牌认证
tapd login --mode personal --token YOUR_TOKEN --workspace-id YOUR_WORKSPACE_ID

# 或使用开放应用凭证认证
tapd login --mode app --client-id YOUR_CLIENT_ID --client-secret YOUR_CLIENT_SECRET

2. 初始化项目

tapd init

3. 创建需求

创建一个 Markdown 文件,例如 需求.md

---
workspace_id: '58491787'
iteration_id: '1158491787001000001'
---

# 需求标题

需求描述内容...

## 功能点

- 功能 1
- 功能 2

然后执行:

tapd story create ./需求.md

4. 更新需求

修改 Markdown 文件后:

tapd story update ./需求.md

主要功能

  • ✅ 支持 Markdown 格式编写需求
  • ✅ 自动转换 Markdown 为 TAPD HTML 格式
  • ✅ 支持 Mermaid 图表(自动渲染为图片)
  • ✅ 支持本地图片上传
  • ✅ 双向同步:从 TAPD 拉取需求到本地
  • ✅ 查看需求下的排期任务
  • ✅ 查看迭代信息和迭代任务情况
  • ✅ 评论管理

命令列表

认证相关

  • tapd login - 登录 TAPD 并保存本地凭证
  • tapd logout - 清除本地认证文件

工作空间

  • tapd init - 初始化项目配置
  • tapd workspace list - 列出所有工作空间
  • tapd workspace use - 切换默认工作空间

迭代

  • tapd iteration list - 查看当前空间迭代列表
  • tapd iteration get <iteration-id> - 查看迭代基础信息
  • tapd iteration tasks <iteration-id> - 查看迭代下的任务情况

需求管理

  • tapd story create <file> - 从 Markdown 创建需求
  • tapd story update <file> - 更新需求
  • tapd story get <story-id> - 获取需求内容摘要
  • tapd story pull <story-id> [output-file] - 拉取需求到本地 Markdown,默认文件名为需求标题;若同名已存在则自动追加 -<story-id>
  • tapd story list - 列出需求
  • tapd story tasks <story-id> - 查看需求下的任务排期

评论

  • tapd comment add <file> - 添加评论
  • tapd comment list <file> - 查看评论列表

Markdown Frontmatter 字段

---
tapd_id: '1158491787001631079'           # TAPD 需求 ID(更新时必需)
workspace_id: '58491787'                 # 工作空间 ID
iteration_id: '1158491787001000001'      # 迭代 ID
creator: 'username'                       # 创建人
owner: 'username'                         # 处理人
label: 'feature'                          # 标签
status: 'developing'                      # 状态
---

许可证

MIT

问题反馈

https://github.com/qizhi2design-svg/tapd-cli/issues