{"id":51451447,"url":"https://github.com/haveniceda/my-notion-go","last_synced_at":"2026-07-05T21:01:34.881Z","repository":{"id":356883136,"uuid":"1234440575","full_name":"HaveNiceDa/My-Notion-Go","owner":"HaveNiceDa","description":"go版本的My-Notion","archived":false,"fork":false,"pushed_at":"2026-06-10T00:47:44.000Z","size":1257,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-05T20:26:53.674Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/HaveNiceDa.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":null,"dco":null,"cla":null}},"created_at":"2026-05-10T07:29:27.000Z","updated_at":"2026-06-10T00:49:25.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/HaveNiceDa/My-Notion-Go","commit_stats":null,"previous_names":["haveniceda/my-notion-go"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HaveNiceDa/My-Notion-Go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaveNiceDa%2FMy-Notion-Go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaveNiceDa%2FMy-Notion-Go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaveNiceDa%2FMy-Notion-Go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaveNiceDa%2FMy-Notion-Go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HaveNiceDa","download_url":"https://codeload.github.com/HaveNiceDa/My-Notion-Go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaveNiceDa%2FMy-Notion-Go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35168795,"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-07-05T02:00:06.290Z","response_time":100,"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-07-05T21:01:33.263Z","updated_at":"2026-07-05T21:01:34.866Z","avatar_url":"https://github.com/HaveNiceDa.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My-Notion Go Edition\n\n一个独立的 React + Go 全栈学习项目，用于从零实现 My-Notion Web 端核心能力。\n\n原版 My-Notion 项目：\n\n- GitHub: [HaveNiceDa/My-Notion](https://github.com/HaveNiceDa/My-Notion)\n\n## 项目定位\n\n`My-Notion Go Edition` 是对原版 My-Notion 的一次全栈重实现实验。\n\n原版 My-Notion 使用 Next.js、Expo、Convex、Qdrant 和 Vercel Edge Function 构建，重点在于快速实现跨端 Notion 类产品和 AI 原生能力。\n\n本项目则从工程学习和后端能力建设出发，使用 React + Go 重新实现同类功能，目标是沉淀一套更传统、更完整、也更容易展示后端能力的全栈架构。\n\n## 技术栈\n\n- Web: React + Vite + TypeScript\n- API: Go + Gin + GORM\n- Database: PostgreSQL\n- Monorepo: pnpm workspace + go work\n\n## 版本优势\n\n相比原版 My-Notion，Go Edition 的重点不是快速堆功能，而是完整掌握和展示一个自研后端系统的工程能力。\n\n主要优势：\n\n- **后端自主可控**：使用 Go + Gin 构建独立 API 层，不依赖 BaaS 承接核心业务逻辑。\n- **数据库建模完整**：使用 PostgreSQL + GORM 设计用户、文档、内容、AI 会话、RAG 状态等业务表。\n- **工程边界清晰**：前端、后端、共享 SDK、部署配置和文档统一放在独立 monorepo 中。\n- **更适合学习 Go**：覆盖路由、中间件、鉴权、ORM、事务、迁移、异步任务、实时通信和部署。\n- **可扩展空间更大**：后续可自然接入 RabbitMQ、Qdrant、WebSocket、OpenAPI、Worker 和监控体系。\n- **方便和原项目对比**：可以横向比较 Convex/BaaS 架构与 Go 自研服务层架构的差异。\n\n## 未来规划\n\nGo Edition 会逐步对齐原版 My-Notion 的核心能力，并在此基础上扩展 Go 后端工程实践。\n\n规划方向：\n\n- **Web 端完整复刻**：实现文档树、富文本编辑器、回收站、收藏、搜索、设置等核心能力。\n- **AI 原生能力**：支持 AI Chat、流式输出、模型切换、Thinking Steps、Tool Call 和知识库问答。\n- **RAG 知识库**：基于 PostgreSQL + Qdrant 实现文档向量化、语义检索和增量索引。\n- **移动端对齐**：未来加入 Mobile 端，实现 Web / Mobile 共用 Go API 和统一业务模型。\n- **实时能力**：先使用 SSE 支持 AI 流和任务状态，后续加入 WebSocket 支持多端状态同步。\n- **异步任务系统**：引入 RabbitMQ 和 Worker，用于文档索引、AI 摘要、批量重建和失败重试。\n- **工程化完善**：补充 OpenAPI、TypeScript client 生成、CI/CD、Docker 部署、测试和可观测性。\n\n## 快速开始\n\n```bash\ncp .env.example .env\ndocker compose up -d postgres qdrant rabbitmq\npnpm install\npnpm migrate:api\npnpm dev\n```\n\nGo API 单独启动：\n\n```bash\npnpm dev:api\n```\n\nWeb 单独启动：\n\n```bash\npnpm dev:web\n```\n\n## 可复现演示\n\n使用 Docker Compose 的 `app` profile 可以构建并启动 Web、API、Worker 和数据库迁移任务：\n\n```bash\ncp .env.example .env\ndocker compose up -d postgres qdrant rabbitmq\ndocker compose --profile app run --rm migrate\ndocker compose --profile app up --build web api worker\n```\n\n访问地址：\n\n- Web: `http://localhost:8081`\n- API health: `http://localhost:8080/health`\n- Web health: `http://localhost:8081/health`\n\n## 验证命令\n\n```bash\npnpm test:go\npnpm typecheck\npnpm build:api\npnpm build:web\npnpm smoke:api:documents\npnpm smoke:api:realtime\n```\n\n更多部署、环境变量和健康检查说明见 [Deployment Readiness](./docs/deployment-readiness.md)。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaveniceda%2Fmy-notion-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaveniceda%2Fmy-notion-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaveniceda%2Fmy-notion-go/lists"}