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

@xihe-lab/tapd-core

v2.1.0

Published

Shared kernel for TAPD tools: tool definitions, TapdClient and registry, shared by CLI and MCP entries

Readme

@xihe-lab/tapd-core

TAPD 研发协作工具的共享内核:沉淀 TAPD 全部工具定义、HTTP 客户端与工具注册表,供 @xihe-lab/tapd-cli 与 @xihe-lab/tapd-mcp-server 复用。单独安装本包通常没有直接用途。

安装

npm install @xihe-lab/tapd-core

能力概览

  • 工具定义:src/tools/ 按 TAPD 领域组织——需求(story)、缺陷(bug)、任务(task)、迭代(iteration)、Wiki、附件、评论、用户、工作区、发布、看板、工时、报表等,统一收敛为 allTools
  • HTTP 客户端:TapdClient,支持 Bearer Token(fromAccessToken)与 Basic Auth(fromBasicAuth)两种认证
  • 只读缓存:workitem_types / workflow / 成员 / 自定义字段配置 / settings 系 / 分类 / 角色等低频 GET 内置 TTL 缓存(LRU + 并发去重 + 深拷贝返回);TAPD_CACHE=off 关闭(默认开)、TAPD_CACHE_TTL 全局倍率、TAPD_CACHE_DEBUG=1 命中日志,invalidateCache(workspaceId?) 显式失效
  • 工具注册表:ToolRegistry,负责工具注册、执行、审计(AuditEvent)与写策略裁决(resolveWrite)
  • 配置:config.ts 提供配置加载/保存与注入环境变量
  • 富文本:richtext/ 语义库,md ↔ html 双向转换与 @/附件锚点处理
  • Schema 导出:exportSchemas 导出工具 JSON Schema

仓库与镜像

License

Apache-2.0