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

dt-cr

v0.1.9

Published

AI 代码审查工具

Readme

AI 辅助代码审查工具

基于 OpenRouter API 的代码审查工具,帮助开发者在提交代码前进行自动审查。

功能特点

  • 支持 Git 和 SVN 版本控制系统
  • 提取代码中的 TODO、FIXME、BUG 等特殊注释
  • 检查环境相关问题(调试代码、测试端点等)
  • 利用 AI 进行代码变更分析和智能总结
  • 非阻塞式反馈,不影响正常提交流程

使用方法

设置 API Key

首次使用前,需要设置 OpenRouter API Key:

# 不安装的情况
npx dt-cr --set-key YOUR_API_KEY

# 全局安装的情况
dt-cr --set-key YOUR_API_KEY

API Key 将安全保存在用户主目录下的 .dt-cr-config.json 文件中,无需重复设置。

全局使用

# 不安装的情况,直接运行
npx dt-cr

# 全局安装的情况
npm install -g dt-cr

dt-cr

# 或添加到 package.json 脚本
# "scripts": {
#   "review": "dt-cr"
# }

显示帮助信息

dt-cr --help

工具配置

配置文件位于 src/review.config.js,可以自定义以下内容:

  • 需要提取的注释标记(如 TODO、FIXME 等)
  • 环境问题检测规则(调试代码、测试配置等)
  • 忽略检查的路径
  • OpenRouter API 设置model

发布 npm

  1. 确保已经登录 npm 账户
npm login
  1. 更新版本
# 升级补丁版本(修复 bug)
npm version patch

# 升级小版本(新增功能)
npm version minor

# 升级主版本(不兼容变更)
npm version major
  1. 执行发布命令
# 组织的话需要加 npm publish --access public
npm publish