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

@leeking001/lee-cli

v1.0.0

Published

Personal AI assistant CLI with weather jokes, news, work summary, learning resources, and todo management

Readme

lee-cli 🚀

个人AI助手命令行工具 - 你的智能工作助手

✨ 功能特性

  • 🌤️ 天气冷笑话 - 结合今天的天气讲一个有创意的冷笑话
  • 📰 新闻日报 - 获取今日热点并生成精炼的新闻摘要
  • 📝 工作总结 - 基于Claude Code活动自动生成工作总结
  • 🎓 AI学习 - 推荐高质量的AI学习资源和文章
  • 智能Todo - 结合日历和工作情况生成智能待办清单

🔧 安装

方式1: 一键安装脚本 (推荐)

curl -fsSL https://raw.githubusercontent.com/leeking001/lee-cli/main/install.sh | bash

方式2: npm 全局安装

# 从 npm 安装
npm install -g @leeking001/lee-cli

# 或从 GitHub 安装
npm install -g https://github.com/leeking001/lee-cli.git

方式3: 本地 tarball 安装

# 下载 tarball 后
npm install -g /path/to/leeking001-lee-cli-1.0.0.tgz

方式4: 手动安装 (开发者)

# 克隆项目
git clone https://github.com/leeking001/lee-cli.git
cd lee-cli

# 安装依赖
npm install

# 全局链接
npm link

配置 API 密钥

安装后需要设置 Anthropic API Key:

# 临时设置(当前会话)
export ANTHROPIC_API_KEY=your_api_key_here

# 永久设置(添加到 ~/.bashrc 或 ~/.zshrc)
echo 'export ANTHROPIC_API_KEY=your_api_key_here' >> ~/.bashrc
source ~/.bashrc

获取 API 密钥:https://console.anthropic.com/

现在你可以在任何地方使用 lee-cli 命令了!

📖 使用方法

基础命令

# 查看帮助
lee-cli --help

# 查看版本
lee-cli --version

功能1: 天气冷笑话 🌤️

# 默认北京天气
lee-cli joke

# 指定城市
lee-cli joke --city 上海
lee-cli joke -c 深圳

功能2: 新闻日报 📰

# 默认科技、财经、国际新闻
lee-cli news

# 自定义分类
lee-cli news --categories 科技,娱乐
lee-cli news -c 财经

功能3: 工作总结 📝

# 今日工作总结
lee-cli summary

# 指定日期
lee-cli summary --date 2026-03-31
lee-cli summary -d 2026-03-31

功能4: AI学习资源 🎓

# 默认LLM主题
lee-cli learn

# 指定主题
lee-cli learn --topic agent
lee-cli learn -t mcp

# 指定推荐数量
lee-cli learn --topic prompt --number 10
lee-cli learn -t llm -n 3

支持的主题:

  • llm - 大语言模型
  • agent - AI智能体
  • mcp - 模型上下文协议
  • prompt - 提示词工程

功能5: 智能Todo清单 ✅

# 未来3天的待办
lee-cli todo

# 自定义天数
lee-cli todo --days 7
lee-cli todo -d 5

一键执行所有功能 🎯

lee-cli all

这会依次执行所有5个功能,生成完整的日报。

📁 项目结构

lee-cli/
├── bin/
│   └── lee-cli.js          # CLI入口
├── src/
│   ├── commands/           # 命令实现
│   │   ├── weather-joke.js
│   │   ├── news-daily.js
│   │   ├── work-summary.js
│   │   ├── ai-learning.js
│   │   └── todo-list.js
│   └── utils/              # 工具函数
│       ├── claude-api.js   # Claude API调用
│       ├── weather.js      # 天气API
│       ├── news-search.js  # 新闻搜索
│       ├── claude-activity.js  # Claude活动分析
│       ├── ai-resources.js # AI资源库
│       └── calendar.js     # 日历集成
├── .env.example            # 环境变量示例
├── package.json
└── README.md

🔑 环境变量

.env 文件中配置:

# 必需
ANTHROPIC_API_KEY=sk-ant-xxxxx

# 可选
DEFAULT_CITY=北京
DEFAULT_NEWS_CATEGORIES=科技,财经,国际

🚀 开发

# 开发模式运行
npm start -- joke

# 链接到全局(开发时使用)
npm link

# 取消链接
npm unlink -g lee-cli

📝 示例输出

天气冷笑话

╭────────────────────────────────────────────────╮
│                                                │
│   🌤️  今日天气冷笑话                          │
│                                                │
│   📍 城市: 北京                                │
│   🌡️  温度: 15°C                               │
│   💧 湿度: 60%                                 │
│   ☁️  天气: 晴天                               │
│                                                │
│   ──────────────────────────────────────      │
│                                                │
│   今天北京天气这么好,我出门晒了一天太阳...   │
│   结果回家一看,只有影子晒黑了!               │
│                                                │
╰────────────────────────────────────────────────╯

🤝 集成

lee-cli 可以与以下工具集成:

  • lark-cli - 飞书日历集成
  • Claude Code - 自动读取工作记录
  • Web Search - 实时新闻搜索

🛠️ 技术栈

  • Node.js - 运行环境
  • Commander.js - CLI框架
  • Chalk - 终端样式
  • Boxen - 文本框美化
  • Anthropic SDK - Claude API调用
  • Axios - HTTP请求

📄 License

MIT

👤 作者

李池明


Made with ❤️ by Claude Code