{"id":36439830,"url":"https://github.com/optima-chat/cc-chat","last_synced_at":"2026-01-18T14:00:48.550Z","repository":{"id":319088783,"uuid":"1077539758","full_name":"Optima-Chat/cc-chat","owner":"Optima-Chat","description":"Claude Code 用户的中文聊天社区 - 通过 CLI 直接发帖交流","archived":false,"fork":false,"pushed_at":"2025-11-15T18:15:13.000Z","size":360,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-15T20:26:45.227Z","etag":null,"topics":["ai-tools","chinese-community","claude","claude-code","cli-tool","community-platform","developer-tools","fastify","nextjs","postgresql","reddit-bot","typescript"],"latest_commit_sha":null,"homepage":"https://cc-chat.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Optima-Chat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-16T11:46:40.000Z","updated_at":"2025-11-15T18:15:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Optima-Chat/cc-chat","commit_stats":null,"previous_names":["optima-chat/cc-chat"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Optima-Chat/cc-chat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optima-Chat%2Fcc-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optima-Chat%2Fcc-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optima-Chat%2Fcc-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optima-Chat%2Fcc-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Optima-Chat","download_url":"https://codeload.github.com/Optima-Chat/cc-chat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optima-Chat%2Fcc-chat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28537483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T13:04:05.990Z","status":"ssl_error","status_checked_at":"2026-01-18T13:01:44.092Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-tools","chinese-community","claude","claude-code","cli-tool","community-platform","developer-tools","fastify","nextjs","postgresql","reddit-bot","typescript"],"created_at":"2026-01-11T21:00:23.147Z","updated_at":"2026-01-18T14:00:48.520Z","avatar_url":"https://github.com/Optima-Chat.png","language":"TypeScript","funding_links":[],"categories":["社区"],"sub_categories":["API 性能优化"],"readme":"\u003cdiv align=\"center\"\u003e\n\n# 🤖 CC Chat\n\n**Claude Code 用户的中文聊天社区**\n\n让 Claude 帮你发帖交流，无需离开终端\n\n[![npm version](https://img.shields.io/npm/v/@optima-chat/cc-chat.svg)](https://www.npmjs.com/package/@optima-chat/cc-chat)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![GitHub stars](https://img.shields.io/github/stars/Optima-Chat/cc-chat.svg)](https://github.com/Optima-Chat/cc-chat/stargazers)\n\n[网站](https://www.cc-chat.dev) · [安装](#快速开始) · [文档](#完整命令列表) · [贡献](#贡献指南)\n\n\u003c/div\u003e\n\n---\n\n## ✨ 亮点特性\n\n- 🎯 **零配置集成** - 一行命令安装，Claude 自动识别\n- 💬 **自然语言交互** - 用人话发帖，不用记命令\n- 🚀 **全功能 CLI** - 浏览、搜索、评论、投票、收藏、通知\n- 🌐 **Web + CLI 双端** - 终端和浏览器都能用\n- 🔄 **自动内容同步** - 从 Reddit 自动抓取翻译优质内容\n- 🏷️ **智能标签系统** - MCP、技巧、项目、问题等分类\n- 🔔 **实时通知** - @提及、回复通知\n- ⭐ **收藏功能** - 保存喜欢的帖子\n- 📊 **用户主页** - 查看用户的帖子、评论、统计数据\n- 🎨 **代码高亮** - Markdown 渲染，语法高亮\n\n## 🎬 演示\n\n\u003c!-- TODO: 添加演示 GIF --\u003e\n\n```bash\n# 自然语言发帖\n$ \"帮我发个帖子分享我的 MCP 配置\"\n\n# Claude 自动执行\n✓ 已发布帖子\n  ID: 42\n  标题: 我的 MCP 配置分享\n  查看: https://www.cc-chat.dev/posts/42\n```\n\n## 🚀 快速开始\n\n### 安装\n\n```bash\nnpm install -g @optima-chat/cc-chat@latest\n```\n\n### 使用\n\n**方式一：自然语言（推荐）**\n\n直接对 Claude 说：\n- \"帮我登录 CC Chat，用户名是 yourname\"\n- \"帮我发个帖子分享我的 MCP 配置\"\n- \"看看论坛有什么新帖子\"\n- \"搜索关于 MCP 的帖子\"\n- \"查看用户 xxx 的主页\"\n\nClaude 会自动调用命令完成操作 ✨\n\n**方式二：直接使用命令**\n\n```bash\n# 登录\ncc-chat login --username \"你的用户名\"\n\n# 发帖\ncc-chat post --title \"标题\" --content \"内容\" --tags \"技巧,MCP\"\n\n# 浏览帖子（支持热度排序）\ncc-chat browse --sort hot --limit 20\n\n# 搜索\ncc-chat search \"MCP\" --limit 10\n\n# 查看用户主页\ncc-chat user \u003cusername\u003e --comments\n\n# 评论和回复\ncc-chat comment \u003cpost-id\u003e --text \"评论内容\"\ncc-chat reply \u003ccomment-id\u003e --post-id \u003cpost-id\u003e --text \"回复内容\"\n\n# 投票\ncc-chat upvote \u003cpost-id\u003e\ncc-chat downvote \u003cpost-id\u003e\n\n# 收藏\ncc-chat save \u003cpost-id\u003e\ncc-chat saved\n\n# 通知\ncc-chat notifications --unread\ncc-chat mark-read \u003cnotification-id\u003e\n```\n\n## 📋 完整命令列表\n\n| 命令 | 说明 | 示例 |\n|------|------|------|\n| `login` | 登录（GitHub OAuth） | `cc-chat login --username \"用户名\"` |\n| `post` | 发帖 | `cc-chat post --title \"标题\" --content \"内容\" --tags \"技巧,MCP\"` |\n| `browse` | 浏览帖子 | `cc-chat browse --sort hot --tag MCP --limit 20` |\n| `search` | 搜索帖子 | `cc-chat search \"关键词\" --limit 10` |\n| `tags` | 查看所有标签 | `cc-chat tags` |\n| `user` | 查看用户主页 | `cc-chat user \u003cusername\u003e --comments` |\n| `comment` | 评论帖子 | `cc-chat comment \u003cpost-id\u003e --text \"评论\"` |\n| `reply` | 回复评论 | `cc-chat reply \u003ccomment-id\u003e --post-id \u003cpost-id\u003e --text \"回复\"` |\n| `upvote` | 点赞帖子 | `cc-chat upvote \u003cpost-id\u003e` |\n| `downvote` | 踩帖子 | `cc-chat downvote \u003cpost-id\u003e` |\n| `upvote-comment` | 点赞评论 | `cc-chat upvote-comment \u003ccomment-id\u003e` |\n| `downvote-comment` | 踩评论 | `cc-chat downvote-comment \u003ccomment-id\u003e` |\n| `save` | 收藏帖子 | `cc-chat save \u003cpost-id\u003e` |\n| `unsave` | 取消收藏 | `cc-chat unsave \u003cpost-id\u003e` |\n| `saved` | 查看收藏列表 | `cc-chat saved --limit 20` |\n| `notifications` | 查看通知 | `cc-chat notifications --unread` |\n| `mark-read` | 标记已读 | `cc-chat mark-read \u003cnotification-id\u003e` |\n| `mark-read-all` | 全部标记已读 | `cc-chat mark-read-all` |\n| `delete-post` | 删除帖子 | `cc-chat delete-post \u003cpost-id\u003e` |\n| `delete-comment` | 删除评论 | `cc-chat delete-comment \u003ccomment-id\u003e` |\n\n## 💡 适合分享什么？\n\n- 💡 **使用技巧** - Claude Code 的使用心得和技巧\n- 🔧 **MCP 配置** - Model Context Protocol 插件和配置\n- 🎉 **项目展示** - 用 Claude Code 做的有趣项目\n- ❓ **问题求助** - 遇到的问题和 bug\n- 📖 **教程文章** - 深度教程和最佳实践\n- 🐛 **Bug 报告** - Claude Code 的问题反馈\n- 💭 **想法建议** - 功能建议和讨论\n\n## 🏗️ 技术架构\n\n```mermaid\ngraph TB\n    subgraph Client[\"🖥️ 客户端\"]\n        Claude[\"🤖 Claude\u003cbr/\u003e(自然语言)\"]\n        Web[\"🌐 Web\u003cbr/\u003e(Next.js 15)\"]\n        CLI[\"💻 CLI\u003cbr/\u003e(Commander.js)\"]\n    end\n\n    subgraph Backend[\"⚡ 后端服务\"]\n        API[\"Fastify API\u003cbr/\u003e(TypeScript)\"]\n        DB[(PostgreSQL\u003cbr/\u003e数据存储)]\n    end\n\n    subgraph Automation[\"🤖 内容同步 (GitHub Actions)\"]\n        Sync[\"Python 脚本\u003cbr/\u003e(每 6 小时)\"]\n        Reddit[Reddit API\u003cbr/\u003e内容抓取]\n        OpenAI[OpenAI API\u003cbr/\u003e智能翻译]\n    end\n\n    subgraph Auth[\"🔐 认证\"]\n        GitHub[GitHub OAuth]\n    end\n\n    subgraph Deploy[\"☁️ 部署平台\"]\n        Railway[Railway\u003cbr/\u003eAPI 托管]\n        Vercel[Vercel\u003cbr/\u003eWeb 托管]\n    end\n\n    Claude --\u003e CLI\n    CLI --\u003e API\n    Web --\u003e API\n\n    API --\u003e DB\n    API --\u003e GitHub\n\n    Sync --\u003e Reddit\n    Reddit --\u003e OpenAI\n    OpenAI --\u003e Sync\n    Sync --\u003e API\n\n    API --\u003e Railway\n    Web --\u003e Vercel\n\n    style Claude fill:#8b5cf6,stroke:#7c3aed,color:#fff\n    style Web fill:#3b82f6,stroke:#2563eb,color:#fff\n    style CLI fill:#10b981,stroke:#059669,color:#fff\n    style API fill:#f59e0b,stroke:#d97706,color:#fff\n    style DB fill:#ef4444,stroke:#dc2626,color:#fff\n    style Sync fill:#ec4899,stroke:#db2777,color:#fff\n    style Reddit fill:#f97316,stroke:#ea580c,color:#fff\n    style OpenAI fill:#06b6d4,stroke:#0891b2,color:#fff\n    style GitHub fill:#6366f1,stroke:#4f46e5,color:#fff\n    style Railway fill:#0f172a,stroke:#1e293b,color:#fff\n    style Vercel fill:#000000,stroke:#171717,color:#fff\n```\n\n**技术栈：**\n- **CLI**: TypeScript + Commander.js + Chalk\n- **Web**: Next.js 15 + React 19 + TailwindCSS\n- **API**: Fastify + PostgreSQL + Redis\n- **认证**: GitHub OAuth\n- **部署**: Railway (API) + Vercel (Web)\n- **自动化**: GitHub Actions\n\n## 🌐 在线访问\n\n- 🌐 **网站**: https://www.cc-chat.dev\n- 🚀 **API**: https://api.cc-chat.dev\n- 📦 **npm**: https://www.npmjs.com/package/@optima-chat/cc-chat\n\n## 🛠️ 本地开发\n\n### 克隆仓库\n\n```bash\ngit clone https://github.com/Optima-Chat/cc-chat.git\ncd cc-chat\n```\n\n### 启动后端（Docker Compose）\n\n```bash\ndocker compose up -d\n```\n\n### 开发 CLI\n\n```bash\ncd cli\nnpm install\nnpm run dev\n```\n\n### 开发 Web\n\n```bash\ncd web\nnpm install\nnpm run dev\n```\n\n详见：\n- [API 开发文档](./api/README.md)\n- [CLI 开发文档](./cli/README.md)\n- [Web 开发文档](./web/README.md)\n- [技术方案](./docs/tech-spec.md)\n\n## 📦 部署\n\n### 后端 API\n- ✅ **Railway**（推荐）- 一键部署，$5/月免费额度\n- ✅ **Render** - 免费部署\n- ✅ **VPS** - 自托管部署\n\n详见 [部署指南](./docs/deployment.md)\n\n### Web 前端\n- ✅ **Vercel**（推荐）- Next.js 官方平台，自动部署\n- 推送到 main 分支即可自动部署\n\n详见 [Web 部署文档](./web/README.md)\n\n## 🗺️ 开发路线图\n\n- [x] **Phase 1: 核心功能**\n  - [x] CLI 工具\n  - [x] 发帖、评论、回复\n  - [x] 投票系统\n  - [x] 热度排序（Hot/New/Top/Comments）\n  - [x] 标签系统\n  - [x] 搜索功能\n\n- [x] **Phase 2: 社区功能**\n  - [x] 用户主页\n  - [x] 收藏功能\n  - [x] 通知系统（@提及、回复）\n  - [x] 嵌套评论\n  - [x] 代码高亮\n\n- [x] **Phase 3: 内容生态**\n  - [x] Reddit 自动同步\n  - [x] 智能翻译（OpenAI API）\n  - [x] 去重机制\n\n- [ ] **Phase 4: 增强功能**（规划中）\n  - [ ] 用户设置（头像、简介）\n  - [ ] 举报机制\n  - [ ] 管理后台\n  - [ ] 邮件通知\n  - [ ] RSS 订阅\n\n详见 [产品路线图](./docs/product-roadmap.md)\n\n## 🤝 贡献指南\n\n我们欢迎所有形式的贡献！\n\n### 参与方式\n\n- 🐛 **报告 Bug** - [提交 Issue](https://github.com/Optima-Chat/cc-chat/issues/new)\n- 💡 **功能建议** - [发起讨论](https://github.com/Optima-Chat/cc-chat/discussions)\n- 📝 **改进文档** - 完善 README 和文档\n- 💻 **贡献代码** - 提交 Pull Request\n\n### 开发流程\n\n1. Fork 本仓库\n2. 创建功能分支 (`git checkout -b feature/AmazingFeature`)\n3. 提交代码 (`git commit -m 'Add some AmazingFeature'`)\n4. 推送到分支 (`git push origin feature/AmazingFeature`)\n5. 开启 Pull Request\n\n详见 [贡献指南](./CONTRIBUTING.md)\n\n## 📄 开源协议\n\n[MIT License](./LICENSE)\n\n## 🙏 致谢\n\n- [Claude Code](https://claude.ai/code) - 强大的 AI 编程助手\n- [Anthropic](https://www.anthropic.com/) - Claude 背后的公司\n- 所有贡献者和社区成员\n\n## 📮 联系我们\n\n- 网站：https://www.cc-chat.dev\n- GitHub：https://github.com/Optima-Chat/cc-chat\n- Issue：https://github.com/Optima-Chat/cc-chat/issues\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n**🌟 如果觉得有用，欢迎 Star！**\n\nMade with ❤️ by the CC Chat community\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptima-chat%2Fcc-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foptima-chat%2Fcc-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptima-chat%2Fcc-chat/lists"}