{"id":28177908,"url":"https://github.com/hanlinlibham/ablebutton-panel","last_synced_at":"2025-05-16T01:11:39.356Z","repository":{"id":286051973,"uuid":"960204954","full_name":"hanlinlibham/ablebutton-panel","owner":"hanlinlibham","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-04T03:19:53.000Z","size":2730,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T04:23:09.641Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hanlinlibham.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2025-04-04T03:15:14.000Z","updated_at":"2025-04-04T03:19:55.000Z","dependencies_parsed_at":"2025-04-04T04:23:11.017Z","dependency_job_id":"b45a27f6-76d8-4602-adb0-9054ed28ad30","html_url":"https://github.com/hanlinlibham/ablebutton-panel","commit_stats":null,"previous_names":["hanlinlibham/ablebutton-panel"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanlinlibham%2Fablebutton-panel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanlinlibham%2Fablebutton-panel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanlinlibham%2Fablebutton-panel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanlinlibham%2Fablebutton-panel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hanlinlibham","download_url":"https://codeload.github.com/hanlinlibham/ablebutton-panel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254448614,"owners_count":22072765,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-05-16T01:11:11.138Z","updated_at":"2025-05-16T01:11:39.341Z","avatar_url":"https://github.com/hanlinlibham.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AbleButton\n\n\u003cdiv align=\"center\"\u003e\n\n![AbleButton Logo](icons/icon128.png)\n\n一个智能的 Chrome 扩展，基于 DeepSeek API 提供强大的网页内容分析和智能对话功能。\n\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)\n[![Version](https://img.shields.io/badge/version-v1.0-green.svg)](https://github.com/hanlinlibham/ablebutton-panel/releases)\n\n\u003c/div\u003e\n\n## 🌟 功能特点\n\n- 🤖 完整支持 DeepSeek AI 模型系列\n  - deepseek-chat：适用于日常对话和内容生成\n  - deepseek-reasoner：专注于逻辑推理和复杂问题解决（实验性功能）\n- 📊 智能网页内容分析\n  - 自动提取关键信息\n  - 支持多语言内容处理\n  - 智能总结和重点提取\n- 🔍 强大的上下文感知能力\n  - 支持选中文本智能分析\n  - 自动关联页面上下文\n  - 支持多轮对话记忆\n- 📈 完整的使用统计\n  - Token 使用量实时统计\n  - 会话历史记录\n  - 使用成本追踪\n- ⚙️ 高度可定制\n  - 灵活的 API 设置\n  - 可调节的模型参数\n  - 自定义提示词模板\n\n## 📦 安装\n\n### 方式一：从源码安装\n\n1. 克隆仓库：\n```bash\ngit clone https://github.com/hanlinlibham/ablebutton-panel.git\ncd ablebutton-panel\n```\n\n2. 在 Chrome 浏览器中安装：\n   - 访问 `chrome://extensions/`\n   - 开启右上角的\"开发者模式\"\n   - 点击\"加载已解压的扩展程序\"\n   - 选择项目根目录\n\n### 方式二：从 Chrome 商店安装（即将上线）\n\n- 访问 Chrome 网上应用店\n- 搜索 \"AbleButton\"\n- 点击\"添加到 Chrome\"\n\n## ⚙️ 配置说明\n\n### 1. API 配置\n\n1. 获取 DeepSeek API Key：\n   - 访问 [DeepSeek Platform](https://platform.deepseek.com/)\n   - 注册并登录您的账号\n   - 在控制台中生成 API Key\n\n2. 配置扩展：\n   - 点击扩展图标\n   - 选择\"设置\"\n   - 在 API 设置中填入您的 API Key\n   - 保存设置\n\n### 2. 模型参数配置\n\n- **Temperature**：控制输出的随机性（0.0-2.0）\n- **Max Tokens**：单次响应的最大 token 数\n- **Top P**：控制输出的多样性\n- **Presence Penalty**：控制话题重复度\n\n## 🚀 使用指南\n\n### 基础功能\n\n1. **快速访问**：\n   - 点击浏览器工具栏中的扩展图标\n   - 使用快捷键 `Alt+B` 打开侧边栏（可自定义）\n\n2. **文本分析**：\n   - 选中网页文本\n   - 右键选择 \"使用 AbleButton 分析\"\n   - 或直接在侧边栏中输入问题\n\n3. **上下文对话**：\n   - 支持多轮对话\n   - 自动保持对话上下文\n   - 支持对话历史回溯\n\n### 高级功能\n\n1. **模型切换**：\n   - deepseek-chat：日常对话和内容生成\n   - deepseek-reasoner：复杂推理和专业分析\n\n2. **使用统计**：\n   - 在设置页面查看详细使用统计\n   - 支持按时间段筛选\n   - 导出统计数据\n\n## 🔧 开发指南\n\n```bash\n# 安装依赖\nnpm install\n\n# 开发模式\nnpm run dev\n\n# 构建生产版本\nnpm run build\n\n# 运行测试\nnpm test\n```\n\n### 项目结构\n\n```\nablebutton-panel/\n├── manifest.json      # 扩展配置文件\n├── background.js     # 后台服务\n├── sidepanel.html    # 侧边栏界面\n├── sidepanel.js      # 侧边栏逻辑\n├── options.html      # 设置页面\n├── options.js        # 设置逻辑\n├── utils/            # 工具函数\n├── lib/              # 第三方库\n├── icons/            # 图标资源\n└── test/            # 测试文件\n```\n\n## 🤝 贡献指南\n\n我们欢迎所有形式的贡献，包括但不限于：\n\n- 提交 bug 报告\n- 新功能建议\n- 代码贡献\n- 文档改进\n\n请查看我们的[贡献指南](CONTRIBUTING.md)了解更多详情。\n\n## 📄 许可证\n\n本项目采用 [Apache License 2.0](LICENSE) 许可证。\n\n## 📮 联系我们\n\n- 提交 Issue：[GitHub Issues](https://github.com/hanlinlibham/ablebutton-panel/issues)\n- 邮件联系：[your-email@example.com](mailto:your-email@example.com)\n\n## 🙏 致谢\n\n- [DeepSeek](https://platform.deepseek.com/) - 提供强大的 AI 模型支持\n- 所有贡献者和用户的支持 ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanlinlibham%2Fablebutton-panel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanlinlibham%2Fablebutton-panel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanlinlibham%2Fablebutton-panel/lists"}