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

cdelete

v0.1.3

Published

Local AI disk analyzer for Windows drives

Readme

CDelete

本地 AI 磁盘分析助手。
目标:让用户通过 npm 安装后,一键打开本地网页,扫描 C / D 盘并查看“用途解释 + 删除建议”报告。

功能

  • CLI 启动:cdelete
  • 本地服务:http://127.0.0.1:3456
  • 扫描目标:C 盘或 D 盘
  • 报告内容:
    • 路径与大小
    • 风险分级(建议删除 / 谨慎删除 / 禁止删除)
    • 规则解释
    • AI 中文解释(DeepSeek)

安装与运行

npm install
npm start

或本地全局测试:

npm link
cdelete

DeepSeek 配置

推荐在页面输入框直接填写 API Key(会存到浏览器 localStorage),也支持环境变量:

  • DEEPSEEK_API_KEY=你的key
  • DEEPSEEK_MODEL=deepseek-reasoner(可选)

当前版本会强制调用大模型生成用途解释:若未提供 key,扫描接口会直接报错。

可选配置

  • CDELETE_PORT:默认 3456
  • CDELETE_MAX_SCAN_ITEMS:默认 5000
  • CDELETE_MAX_FOLDERS:默认 120
  • CDELETE_MAX_FILES:默认 120
  • CDELETE_STAT_CONCURRENCY:目录内并发 stat 数,默认 24
  • CDELETE_AI_MAX_ITEMS:走 AI 解释的条目上限,默认 0(表示全部条目)
  • CDELETE_AI_BATCH_SIZE:AI 单批条目数,默认 8(质量优先,减少漏解释)
  • CDELETE_AI_BATCH_CONCURRENCY:AI 并发批次数,默认 2

目录结构

bin/cdelete.js        # CLI 入口
src/server.js         # Express 服务与 API
src/scanner.js        # 盘符扫描与统计
src/rules.js          # 删除建议规则
src/ai.js             # DeepSeek AI 解释
public/index.html     # 扫描启动页
public/report.html    # 报告展示页
public/styles.css     # UI 样式
public/app.js         # 前端交互