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

ai-cdisk-clear

v10.1.1

Published

AI-powered C drive cleaner for Windows - Safely analyze and clean your C drive with AI assistance

Readme

CDisk AI助手 - 智能磁盘清理对话工具

🎯 项目简介

CDisk是一个智能的磁盘清理对话工具,通过AI分析帮助用户安全地清理磁盘空间。

✨ 核心特性

  • 对话式操作 - 纯AI对话交互,无复杂菜单
  • 按顺序扫描 - 逐个扫描文件夹内的每个文件
  • 智能分析 - AI根据文件类型和安全性给出清理建议
  • 实时统计 - 显示每次API调用的token消耗和成本
  • 斜杠命令 - 对话中使用命令快速切换配置

🚀 快速开始

安装和运行

npm install
cdisk

首次使用

  1. 选择AI服务提供商(OpenAI、DeepSeek、Zhipu AI等)
  2. 输入API BaseURL和API Key
  3. 开始对话式清理流程

🎮 使用方法

基本流程

cdisk → AI配置 → 开始扫描 → 逐个文件分析 → 用户确认 → 清理完成

斜杠命令

在对话过程中可随时使用:

| 命令 | 中文别名 | 功能 | |------|----------|------| | /help | - | 显示帮助信息 | | /model | /切换模型 | 切换AI模型 | | /cost | /查看消耗量 | 查看详细消耗统计 | | /provider | /查看更换api服务商 | 更换API服务商 | | /config | - | 查看当前配置 | | /reset | - | 重置会话统计 |

📊 功能演示

# 查看完整功能演示
node demo-slash-commands.js

# 查看文件扫描流程
node demo-file-scan.js

📁 项目结构

├── bin/cli.js                    # 程序入口
├── src/
│   ├── conversational-cleaner.js # 主对话控制器
│   ├── ai-assistant.js           # AI交互助手
│   ├── smart-scanner.js          # 智能文件扫描器
│   ├── cleaner-agent.js          # 文件清理代理
│   └── config.js                 # 配置管理器
├── demo-file-scan.js             # 文件扫描演示
├── demo-slash-commands.js        # 斜杠命令演示
└── FINAL-FEATURES.md             # 完整功能说明

🔧 配置说明

支持的AI服务商

  • OpenAI - GPT-3.5/GPT-4系列
  • DeepSeek - DeepSeek Chat/Coder
  • Zhipu AI - GLM-4系列
  • 自定义API - 兼容OpenAI格式的API

配置文件位置

~/.cdisk-config.json

🛡️ 安全特性

  • 多重安全检查 - 绝不删除系统关键文件
  • 用户确认 - 每个文件都需要用户确认
  • 安全等级 - AI评估文件安全级别(1-5级)
  • 回退机制 - 遇到问题时安全退出

💰 成本透明

实时显示每次AI调用的:

  • Token消耗数量
  • 实际费用
  • 累计统计
  • 平均成本

📈 使用示例

📄 文件 [1/3] 正在扫描: temp_file.tmp
   路径: C:\Users\Demo\Downloads\temp_file.tmp
   大小: 8.5 MB | 最后修改: 2024/12/20

AI分析完成 | 用时: 1.8s | API调用: 1 | 本次tokens: 156 | 本次消耗: ¥0.000234 | 总消耗: ¥0.0002

🤖 CDisk AI助手: 文件"temp_file.tmp"可以清理!
   清理原因: 临时文件
   安全级别: 5/5
   可释放空间: 8.5 MB

🤖 CDisk AI助手: 是否清理此文件?输入"y"确认,"n"跳过,"q"退出。

🤝 技术栈

  • Node.js - 运行环境
  • Inquirer.js - 交互式命令行
  • Chalk - 彩色输出
  • Axios - HTTP客户端
  • fs-extra - 文件系统操作

📄 开源协议

MIT License

🙏 致谢

感谢所有AI服务提供商和开源社区的支持!


CDisk AI助手 - 让磁盘清理变得智能而安全 🤖✨