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

galaxycode-manager-cli

v1.0.0

Published

GalaxyCode - Claude API Configuration Manager

Readme

GalaxyCode - Claude API 配置管理工具

License Node

一个简洁高效的 Claude API 配置管理工具,支持多端点切换、延迟测试、配置管理等功能。

✨ 功能特点

  • 🚀 快速切换 - 在预设的 API 端点之间快速切换
  • 🔍 延迟测试 - 自动测试所有端点的网络延迟,帮助选择最佳节点
  • 🔑 安全管理 - 安全地存储和管理 API Key
  • 📋 配置导出 - 一键导出配置到 Claude Code
  • 💻 友好界面 - 美观的命令行交互界面

📦 安装

🚀 一键安装(三种方式)

方式 1: NPM 全局安装(推荐)

npm install -g @galaxy/galaxycode

方式 2: 使用安装脚本

# 使用 curl
curl -fsSL https://raw.githubusercontent.com/galaxy/galaxycode/main/install.sh | bash

# 或使用 wget
wget -qO- https://raw.githubusercontent.com/galaxy/galaxycode/main/install.sh | bash

方式 3: 使用 NPX(无需安装)

npx @galaxy/galaxycode

从源码安装

git clone https://github.com/galaxy/galaxycode.git
cd galaxycode
npm install
npm link

🚀 使用方法

启动工具

galaxycode
# 或使用简写
gc

首次使用

首次运行时,工具会引导您:

  1. 输入您的 Claude API Key
  2. 选择默认的 API 端点(会自动测试延迟)

主要功能

🔄 切换 API 端点

  • 自动测试所有可用端点的延迟
  • 显示当前使用的端点
  • 一键切换到最优节点

🔑 修改 API Key

  • 安全地更新您的 API Key
  • 自动同步到 Claude Code 配置

📋 导出配置

  • 导出当前配置为 JSON 格式
  • 可直接复制到 Claude Code 的 settings.json

🔍 测试所有端点

  • 批量测试所有预设端点
  • 按延迟排序显示结果
  • 推荐最优端点

🔧 配置说明

配置文件位置

  • 主配置: ~/.galaxycode/config.json
  • Claude Code 配置: ~/.claude/settings.json

配置结构

{
  "apiKey": "your-api-key",
  "currentUrl": "https://relay02.yhlxj.com",
  "lastUpdated": "2024-01-01T00:00:00.000Z"
}

🌐 预设端点

工具内置了三个优化的 API 端点:

  1. https://relay02.yhlxj.com - 中继节点 02
  2. https://relay.nf.video - 视频优化节点
  3. https://relay01.yhlxj.com - 中继节点 01

🎨 界面预览

   ___       _                  ___          _
  / __|__ _ | | __ _ __ __ _   / __|___   __| | ___
 | (_ / _` || |/ _` |\ \ /| | | (__/ _ \ / _` |/ -_)
  \___\__,_||_|\__,_|/_\_\ \_|  \___\___/ \__,_|\___|

    Claude API 配置管理工具
    版本: v1.0.0
    作者: Galaxy
    ═══════════════════════════════════════

✓ 当前配置:
  URL: https://relay02.yhlxj.com
  API Key: sk-a...1234

请选择操作:
❯ 🔄 切换 API 端点
  🔑 修改 API Key
  📋 导出配置
  🔍 测试所有端点
  退出

🛠 开发

本地开发

# 克隆项目
git clone https://github.com/galaxy/galaxycode.git
cd galaxycode

# 安装依赖
npm install

# 运行开发版本
npm start

项目结构

galaxycode/
├── bin/
│   └── galaxycode.js      # CLI 入口
├── src/
│   ├── index.js           # 主程序
│   ├── configManager.js   # 配置管理
│   └── pingManager.js     # 网络测试
├── package.json
└── README.md

📄 许可证

MIT License - Copyright (c) 2024 Galaxy

🤝 贡献

欢迎提交 Issue 和 Pull Request!

📞 联系


Made with ❤️ by Galaxy