{"id":51128580,"url":"https://github.com/alienzhou/in-my-mind","last_synced_at":"2026-06-25T10:01:58.268Z","repository":{"id":351309726,"uuid":"1209192531","full_name":"alienzhou/in-my-mind","owner":"alienzhou","description":"Your external brain 🧠 for skimmed knowledge—collect bookmarks from GitHub Stars, Twitter, and more into a searchable vector index for AI agents. Stop losing track of what you saved.","archived":false,"fork":false,"pushed_at":"2026-04-22T14:07:29.000Z","size":1770,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-22T16:12:37.285Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/alienzhou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-13T07:23:35.000Z","updated_at":"2026-04-22T14:08:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/alienzhou/in-my-mind","commit_stats":null,"previous_names":["alienzhou/in-my-mind"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alienzhou/in-my-mind","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alienzhou%2Fin-my-mind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alienzhou%2Fin-my-mind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alienzhou%2Fin-my-mind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alienzhou%2Fin-my-mind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alienzhou","download_url":"https://codeload.github.com/alienzhou/in-my-mind/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alienzhou%2Fin-my-mind/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34769611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-06-25T10:01:57.336Z","updated_at":"2026-06-25T10:01:58.256Z","avatar_url":"https://github.com/alienzhou.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🧠 In My Mind (imm)\n\n\u003e 你的收藏夹不是知识库，是信息坟场。\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./docs/assets/hero-banner.jpg\" alt=\"In My Mind - Your External Brain for Distilled Knowledge\" width=\"100%\"\u003e\n\u003c/p\u003e\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[🇺🇸 English](./README_EN.md)\n\n## 问题\n\n我们都有这个毛病：刷到好东西就 Star、收藏、点赞——然后再也不看。\n\n三年下来，我的 GitHub Stars 有 2000 多个，Twitter 收藏几千条，小红书点赞无数。这些东西理论上都「在」，但实际上等于不存在。需要的时候根本想不起来，想起来也搜不到。\n\n更痛的是：**把这些「浅看」的内容塞进 Obsidian，会把真正重要的笔记淹没**。核心知识库应该是高密度的，不是垃圾场。\n\n## 我的解法\n\n把个人知识分成两个库：\n\n| 类型             | 定位                   | 例子                             |\n| ---------------- | ---------------------- | -------------------------------- |\n| **核心库** | 深度研究、个人思考沉淀 | Obsidian 笔记、读书批注          |\n| **外置库** | 浅看则止、有印象就行   | GitHub Star、Twitter、小红书收藏 |\n\n**in-my-mind** 就是这个「外置库」的实现。\n\n它做的事很简单：把你散落在各平台的收藏统一采集、建向量索引、让 Agent 能搜到。不求精读，只求**需要的时候找得到**。\n\n## 它采集什么\n\n| 来源 | 状态 | 采集方式 | 说明 |\n|------|------|----------|------|\n| 🌟 GitHub Stars | ✅ 已实现 | CLI (`imm sync github-stars`) | 同步所有 Star 的项目 |\n| 🐦 Twitter/X | ✅ 已实现 | 浏览器插件 | 监听 Like/Bookmark 自动采集 |\n| 🌐 任意网页 | ✅ 已实现 | 浏览器插件 | 点击右下角按钮一键采集 |\n| 📖 知乎 | 📋 规划中 | — | 收藏内容 |\n| 🔖 浏览器书签 | 📋 规划中 | — | 批量导入 |\n\n### 浏览器插件\n\n位于 `tools/browser/` 目录，提供：\n\n| 功能 | 说明 |\n|------|------|\n| X 增强 | 自动监听 Like/Bookmark 操作，实时采集推文内容 |\n| 通用采集 | 右下角常驻按钮，一键采集任意网页到 `raw/bookmarks/` |\n\n详见：[浏览器插件采集器技术规格](./docs/specs/browser-extension-collector.md)\n\n## 架构\n\n```\n           ┌─────────────────────┐\n           │     采集触发源       │\n           │  浏览器插件 │ Cron   │\n           │  CLI 命令  │ Agent  │\n           └──────────┬──────────┘\n                      │\n                      ▼\n┌─────────────────────────────────────────────────────────────┐\n│                    Gateway (TypeScript)                     │\n│  normalize → dedup → cleaner → storage → indexer (debounce) │\n│                      :3020                                  │\n└─────────────────────────────────────────────────────────────┘\n                      │\n                      ▼\n              raw/{source}/{date}/\n              └── *.md (Markdown)\n                      │\n                      ▼\n               QMD 向量索引\n```\n\n设计原则：\n\n- **统一入口**：所有数据源走 Gateway，一处规范化、一处去重\n- **URL 去重**：同一内容不同链接形式能被识别（`github.com/x` 和 `www.github.com/x` 是同一个）\n- **增量同步**：每次只采新增内容，不重复拉取\n\n## 快速开始\n\n```bash\n# 克隆\ngit clone git@github.com:alienzhou/in-my-mind.git\ncd in-my-mind\n./install.sh\n\n# 启动 Gateway\nimm gateway\n\n# 同步 GitHub Stars\nimm sync github-stars\n\n# 搜索\nqmd --index in-my-mind query \"Agent Prompt 优化\"\n```\n\n环境变量配置见 `.env.example`。\n\n## 目录结构\n\n```\nin-my-mind/\n├── raw/                    # 采集的原始内容（按来源和日期组织）\n├── gateway/                # 数据入口服务 (TypeScript + Hono)\n├── collector/              # Python 采集脚本\n├── skills/                 # Agent 搜索 Skill\n├── data/dedup.sqlite       # 去重数据库\n└── bin/imm                 # CLI 入口\n```\n\n## Agent 集成\n\n项目自带一个 Agent Skill，让你的 Agent 能检索这个外置知识库：\n\n```\nskills/in-my-mind-search/\n└── SKILL.md\n```\n\n配置到 Agent 后，它回答问题时就能调用你的个人知识库。\n\n## 远期想法\n\n- **Compiled Truth**：LLM 预处理生成知识摘要，让浅看的东西也能长出复利\n- **Dream Cycle**：夜间自动清理孤立页面、修复死链、重新嵌入向量\n- **Recipes 模式**：结构化配置指南，让 Agent 能自动修复采集环境\n\n## 相关文档\n\n- [ARCHITECTURE.md](./ARCHITECTURE.md) - 架构设计\n- [docs/INSTALL.md](./docs/INSTALL.md) - 安装指南\n- [docs/OPERATION.md](./docs/OPERATION.md) - 运维手册\n- [docs/CONFIG.md](./docs/CONFIG.md) - 配置说明\n\n## 灵感来源\n\n- [GBrain by Garry Tan](https://www.youtube.com/watch?v=example) - Compiled Truth 理念\n- [LLM Wiki 2.0](https://www.xiaohongshu.com/discovery/item/69dcd4d5000000001a03066a) - 对抗 FOMO 与资讯过载\n- [保姆级教程搭建你的 LLM Wiki](https://www.xiaohongshu.com/discovery/item/69d392f70000000023017421)\n\n---\n\n收藏的东西不用精读，但需要的时候找得到。这是 in-my-mind 想解决的全部问题。\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falienzhou%2Fin-my-mind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falienzhou%2Fin-my-mind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falienzhou%2Fin-my-mind/lists"}