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

claude-code-config-cli

v1.6.3

Published

Claude Code 本地代理生命周期管理工具

Readme

ccc — Claude Code Config CLI

Claude Code 本地代理生命周期管理工具。

安装

npm install -g claude-code-config-cli

或从源码安装:

git clone [email protected]:adaex/claude-code-config-cli.git
cd claude-code-config-cli
npm link

使用

# 安装代理依赖(首次使用需执行)
ccc proxy install coco

# 启动代理
ccc proxy start coco

# 查看代理状态(已停止则自动重启)
ccc proxy status coco

# 停止代理
ccc proxy stop coco

# 显示帮助
ccc help

# 显示版本
ccc --version

代理名称可省略,默认为 coco

配置切换

配置切换通过 zsh shell 函数实现,每个函数导出对应的环境变量后启动 claude

cc-seed() {
  export ANTHROPIC_AUTH_TOKEN="..."
  export ANTHROPIC_BASE_URL="https://..."
  export ANTHROPIC_MODEL="doubao-seed-2.0-code"
  # ...
  command claude --permission-mode acceptEdits "$@"
}

cc-new() {
  export ANTHROPIC_BASE_URL="http://127.0.0.1:15432"
  # ...
  ccc proxy status coco  # 自动检查/重启代理
  command claude --model opus --permission-mode acceptEdits "$@"
}

claude() {
  [[ "$PWD" = "$HOME" ]] && cd ~/space || true
  cc-new "$@"
}

这种方式的优势:

  • Per-session 生效:环境变量只在当前 shell 生效,多个 claude 进程互不干扰
  • 不修改全局配置~/.claude/settings.json 保持最简,只含通用设置
  • 即时切换:不同终端窗口可同时使用不同配置

运行时目录

~/.ccc/proxies/coco/
  state.json       # 代理状态(PID、端口、启动时间)
  config.yaml      # LiteLLM 配置(install 时复制)
  .venv/           # Python 虚拟环境(install 时创建)
  logs/            # 代理日志

开发

npm run check     # typecheck + lint + test
npm run build     # 构建到 dist/
npm run dev       # 监听模式

License

MIT