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

@makur6371/drd-cli

v1.0.0

Published

DRD 对话精炼开发法 - 5 分钟把想法变成方案

Readme

DRD CLI - 对话精炼开发法

通过 5 个阶段的深度对话,将模糊愿景转化为可执行方案。

安装

cd drd-cli
npm install

使用

交互式菜单

npm start
# 或
node src/index.js

CLI 命令

# 创建新项目
node src/index.js new "我的项目"

# 继续最近的会话
node src/index.js continue

# 继续指定会话
node src/index.js continue session_1234567890

# 列出所有会话
node src/index.js list

# 导出会话
node src/index.js export
node src/index.js export session_1234567890

# 删除会话
node src/index.js delete session_1234567890

# 配置 API
node src/index.js config

# 显示帮助
node src/index.js help

对话中的快捷命令

| 命令 | 说明 | |------|------| | done | 完成当前阶段 | | exit | 退出当前阶段 | | status | 查看当前进度 | | help | 显示帮助 |

功能

  • 流式输出 — AI 回复实时显示,无需等待
  • 自动重试 — 网络异常时自动重试 3 次(指数退避)
  • 上下文管理 — 自动压缩对话历史,避免 token 超限
  • 会话持久化 — 中断后可继续,不丢失进度
  • 会话管理 — 支持导出、删除历史会话
  • CLI 参数 — 支持命令行直接操作,无需交互菜单
  • 彩色终端 — 美观的 CLI 界面
  • Markdown 渲染 — AI 回复中的格式直接在终端显示
  • 自动文档生成 — 对话完成后一键生成项目方案

5 个阶段

  1. 🎯 愿景澄清 — 明确项目定位和核心价值
  2. 🔍 基础调研 — 了解现有技术和竞品
  3. 🏗️ 深度设计 — 设计核心解决方案
  4. 📊 需求精炼 — 将抽象需求转化为可执行指标
  5. 📄 方案固化 — 形成完整的可执行方案

文件位置

  • 配置文件: ~/.drd/config.json
  • 会话存储: ~/.drd/sessions/
  • 输出文档: ~/.drd/output/

支持的 API

  • 硅基流动
  • OpenAI
  • DeepSeek
  • 其他兼容 OpenAI 格式的 API