Zishu Sensei 是一个现代化的桌面AI助手平台,提供:
基础环境
工具
git clone https://github.com/yourusername/zishu-sensei.git
cd zishu-sensei
Python 核心库
pip install -e .
前端依赖
# 安装所有工作空间的依赖
npm install
# 或者分别安装
cd community_platform/frontend && npm install
cd desktop_app && npm install
cd desktop_app
npm run tauri:dev
前端开发
cd community_platform/frontend
npm run dev
# 访问 http://localhost:3000
后端开发
cd community_platform/backend
pip install -r requirements.txt
uvicorn main:app --reload
# API: http://localhost:8000
# 文档: http://localhost:8000/docs
完整部署(Docker)
cd community_platform
./deploy.sh
# 选择模式: 1=开发 2=生产
我们使用单仓库(Monorepo)管理所有子项目:
常用命令
# 运行前端开发服务器
npm run dev:frontend
# 运行桌面应用开发服务器
npm run dev:desktop
# 构建前端
npm run build:frontend
# 构建桌面应用
npm run build:desktop
# 运行所有测试
npm run test:all
# 代码检查
npm run lint:all
# 清理所有构建产物
npm run clean
Tauri (Rust)
↓
React + TypeScript
↓
Python Core (zishu/)
↓
LLM / Adapters / Live2D
Next.js Frontend (Port 3000)
↓
Nginx Reverse Proxy (Port 80/443)
↓
FastAPI Backend (Port 8000)
↓
PostgreSQL + Redis
详细架构文档:
# Python 测试
pytest
# 前端测试
npm run test:frontend
# 桌面应用测试
npm run test:desktop
# E2E 测试
npm run test:e2e
请参考 快速开始 部分
使用 Docker Compose(推荐)
cd community_platform
# 1. 配置环境变量
cp env.example .env
nano .env # 修改生产配置
# 2. 运行部署脚本
./deploy.sh
# 选择: 2 (生产模式)
# 3. 配置 SSL(可选)
# 将 SSL 证书放到 nginx/ssl/
# 编辑 nginx/conf.d/default.conf
# 4. 重启服务
docker-compose restart nginx
手动部署
cd desktop_app
# Windows
npm run tauri:build -- --target x86_64-pc-windows-msvc
# macOS
npm run tauri:build -- --target x86_64-apple-darwin
# Linux
npm run tauri:build -- --target x86_64-unknown-linux-gnu
生成的安装包位于 src-tauri/target/release/bundle/
我们欢迎所有形式的贡献!
git checkout -b feature/AmazingFeature)git commit -m 'feat: Add some AmazingFeature')git push origin feature/AmazingFeature)使用 Conventional Commits:
feat: 新功能
fix: Bug修复
docs: 文档更新
style: 代码格式
refactor: 重构
test: 测试
chore: 构建/工具
查看完整计划:开发路线图
本项目采用 Apache License 2.0 许可证。详见 LICENSE 文件。
Copyright 2025 Zishu Team
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
感谢以下开源项目:
⭐ 如果这个项目对你有帮助,请给我们一个星标!
Made with ❤️ by Zishu Team
48 commits
TypeScript
45.0%
Python
33.0%
Rust
11.6%
HTML
4.7%
CSS
2.8%
Shell
1.2%
Zishu Sensei 是一个现代化的桌面AI助手平台,提供:
基础环境
工具
git clone https://github.com/yourusername/zishu-sensei.git
cd zishu-sensei
Python 核心库
pip install -e .
前端依赖
# 安装所有工作空间的依赖
npm install
# 或者分别安装
cd community_platform/frontend && npm install
cd desktop_app && npm install
cd desktop_app
npm run tauri:dev
前端开发
cd community_platform/frontend
npm run dev
# 访问 http://localhost:3000
后端开发
cd community_platform/backend
pip install -r requirements.txt
uvicorn main:app --reload
# API: http://localhost:8000
# 文档: http://localhost:8000/docs
完整部署(Docker)
cd community_platform
./deploy.sh
# 选择模式: 1=开发 2=生产
我们使用单仓库(Monorepo)管理所有子项目:
常用命令
# 运行前端开发服务器
npm run dev:frontend
# 运行桌面应用开发服务器
npm run dev:desktop
# 构建前端
npm run build:frontend
# 构建桌面应用
npm run build:desktop
# 运行所有测试
npm run test:all
# 代码检查
npm run lint:all
# 清理所有构建产物
npm run clean
Tauri (Rust)
↓
React + TypeScript
↓
Python Core (zishu/)
↓
LLM / Adapters / Live2D
Next.js Frontend (Port 3000)
↓
Nginx Reverse Proxy (Port 80/443)
↓
FastAPI Backend (Port 8000)
↓
PostgreSQL + Redis
详细架构文档:
# Python 测试
pytest
# 前端测试
npm run test:frontend
# 桌面应用测试
npm run test:desktop
# E2E 测试
npm run test:e2e
请参考 快速开始 部分
使用 Docker Compose(推荐)
cd community_platform
# 1. 配置环境变量
cp env.example .env
nano .env # 修改生产配置
# 2. 运行部署脚本
./deploy.sh
# 选择: 2 (生产模式)
# 3. 配置 SSL(可选)
# 将 SSL 证书放到 nginx/ssl/
# 编辑 nginx/conf.d/default.conf
# 4. 重启服务
docker-compose restart nginx
手动部署
cd desktop_app
# Windows
npm run tauri:build -- --target x86_64-pc-windows-msvc
# macOS
npm run tauri:build -- --target x86_64-apple-darwin
# Linux
npm run tauri:build -- --target x86_64-unknown-linux-gnu
生成的安装包位于 src-tauri/target/release/bundle/
我们欢迎所有形式的贡献!
git checkout -b feature/AmazingFeature)git commit -m 'feat: Add some AmazingFeature')git push origin feature/AmazingFeature)使用 Conventional Commits:
feat: 新功能
fix: Bug修复
docs: 文档更新
style: 代码格式
refactor: 重构
test: 测试
chore: 构建/工具
查看完整计划:开发路线图
本项目采用 Apache License 2.0 许可证。详见 LICENSE 文件。
Copyright 2025 Zishu Team
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
感谢以下开源项目:
⭐ 如果这个项目对你有帮助,请给我们一个星标!
Made with ❤️ by Zishu Team
48 commits
TypeScript
45.0%
Python
33.0%
Rust
11.6%
HTML
4.7%
CSS
2.8%
Shell
1.2%