MCPcopy Index your code
hub / github.com/crayonlu/Mosaic

github.com/crayonlu/Mosaic @v1.0.7

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.7 ↗ · + Follow
1,782 symbols 3,832 edges 332 files 19 documented · 1% updated 3d agov1.0.7 · 2026-07-04★ 1362 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Mosaic Icon

Mosaic

English | 简体中文

wakatime

"整合自己散落的碎片"

一款结合笔记与情感可视化的数字第二大脑,帮助你记录思绪、追踪情绪、整合琐碎的生活碎片


项目来源

我发现即使每天我都有一些让我印象深刻的时刻,但是在一段时间后都会渐渐忘记,于是我希望开发一个APP,用来整理我琐碎的生活碎片,让我在之后看到会回想起当时的情景和心情,于是Mosaic就诞生了


核心功能

智能笔记系统

  • 富文本编辑器支持 Markdown 和 HTML,让写作更自由
  • AI 自动标签提取内容关键词,让分类更智能
  • AI 摘要生成,快速回顾长文要点

情绪日记

  • 每日记录心情,追踪情绪变化轨迹
  • 可视化情绪历史,发现情绪规律

跨平台支持

  • 移动端:iOS、Android
  • 数据云端同步,随时随地访问

iOS 已完成适配测试,待加入 Apple Developer Program 后发布。Will do.


演示

https://github.com/user-attachments/assets/982fb136-55f1-4412-96c6-8d2d3e9937e2


目录结构

Mosaic/
├── mobile/      # Expo 移动应用
├── server/      # Rust 后端服务
├── packages/    # 共享包
│   ├── api/     # API 类型定义
│   └── utils/   # 工具函数
└── docs/        # 文档

技术架构

  • 服务端:Rust + Actix Web + PostgreSQL
  • AI 集成:支持多种 AI 服务提供商

使用方法

  1. 考虑到数据安全,你首先需要在你自己的服务器上部署自己的 Mosaic 后端服务,用来管理自己的私人数据
  2. mkdir mosaic-server
  3. cd mosaic-server
  4. 在此文件夹下创建.env文件,内容参考 .env.example,并根据你的需要修改其中的配置项(记得修改账号名称和密码)
  5. 同样在此文件夹下创建docker-compose.yml文件,直接复制 docker-compose.yml 即可
  6. 回到mosaic-server文件夹,执行 docker-compose up -d 启动即可
  7. 注意:如果遇到文件上传权限问题,执行 chown -R 1000:1000 ~/mosaic-server/storage ~/mosaic-server/logs 修复目录权限
  8. 之后你可以自己配置反向代理到自己的域名上
  9. 下载release中的客户端连接你自己的服务器即可

开源协议

本项目基于 AGPL-3.0 license 开源

Extension points exported contracts — how you extend this code

HttpClient (Interface)
(no doc) [2 implementers]
packages/cache/src/platform/adapter.ts
Storage (Interface)
(no doc) [2 implementers]
server/src/storage/traits.rs
BrandLoaderViewProps (Interface)
* BrandLoaderView — wraps content with a brand loader overlay. * Shows the loader while loading, then fades in the cont
mobile/components/ui/BrandLoader.tsx
TokenStorage (Interface)
(no doc) [1 implementers]
packages/api/src/client.ts
SyncApiAdapter (Interface)
(no doc) [1 implementers]
packages/sync/src/types.ts
ThemeScale (Interface)
(no doc)
packages/utils/src/designTokens.ts
MosaicClientConfig (Interface)
(no doc)
packages/mcp-server/src/client.ts
ConfigForm (Interface)
(no doc)
server/admin-ui/src/components/AIConfigPanel.tsx

Core symbols most depended-on inside this repo

get
called by 94
packages/cache/src/types.ts
useMemo
called by 64
mobile/lib/query/hooks/useMemos.ts
get_user_id
called by 61
server/src/middleware/auth.rs
get
called by 50
packages/api/src/memos.ts
cn
called by 45
server/admin-ui/src/lib/utils.ts
getDatabase
called by 30
mobile/lib/storage/database.ts
jsonResult
called by 29
packages/mcp-server/src/result.ts
set
called by 27
packages/cache/src/types.ts

Shape

Function 920
Method 388
Interface 280
Class 190
Enum 4

Languages

TypeScript69%
Rust31%

Modules by API surface

packages/mcp-server/src/client.ts50 symbols
packages/mcp-server/src/mosaic-types.ts39 symbols
mobile/lib/storage/repositories.ts38 symbols
server/src/services/bot_service.rs35 symbols
server/src/services/memo_service.rs34 symbols
packages/api/src/client.ts34 symbols
server/src/services/ai_diary_service.rs30 symbols
server/src/admin/api.rs29 symbols
server/src/services/resource_service.rs26 symbols
packages/cache/src/types.ts25 symbols
server/src/services/clip_service.rs22 symbols
mobile/app/(tabs)/settings.tsx20 symbols

Datastores touched

mosaicDatabase · 1 repos

For agents

$ claude mcp add Mosaic \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact