Synq Core Next - Tauri v2 Desktop App
|
|
||
|---|---|---|
| src | ||
| src-tauri | ||
| .env.example | ||
| .gitignore | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
Synq Core — Developer Channel
A Tauri v2 + React/TypeScript desktop application for the Synq Core Developer Channel. This app provides a native chat interface to the Moonshot AI (Kimi) API with local SQLite persistence, image upload/paste support, and screenshot capture.
Prerequisites
- Rust (1.77+)
- Node.js (18+)
- A Moonshot AI API key from platform.moonshot.cn
Setup
-
Set your API key:
cp .env.example .env # Edit .env and add your MOONSHOT_API_KEY -
Install dependencies:
npm install -
Run in development mode:
npm run tauri:dev
Building for Production
npm run tauri:build
The compiled app will be in src-tauri/target/release/bundle/.
Features
- Kimi Chat: Direct integration with Moonshot AI's
kimi-latestmodel - Persistent History: All chats and messages stored in local SQLite
- Image Support: Upload images, paste from clipboard, or capture screenshots
- Markdown Rendering: Full markdown support with syntax-highlighted code blocks
- Dark Theme: Clean, modern dark UI matching the Synq design system
Architecture
| Layer | Technology |
|---|---|
| Frontend | React 18 + TypeScript + Vite |
| Desktop Framework | Tauri v2 |
| Backend | Rust (tokio, reqwest, rusqlite) |
| LLM API | Moonshot AI (Kimi) |
| Database | SQLite (via rusqlite) |
Project Structure
synq-core-next/
├── src/ # React frontend
│ ├── channels/developer/ # Developer Channel UI
│ ├── context/ # Global state (React Context)
│ ├── App.tsx # Root component
│ └── main.tsx # Entry point
├── src-tauri/ # Rust backend
│ ├── src/commands/ # Tauri commands
│ │ ├── kimi_chat.rs # Kimi API bridge
│ │ ├── mempalace_client.rs # SQLite persistence
│ │ └── screenshot.rs # Screen capture
│ ├── Cargo.toml
│ └── tauri.conf.json
└── package.json
Environment Variables
| Variable | Description | Default |
|---|---|---|
MOONSHOT_API_KEY |
Your Moonshot AI API key | (required) |
MEMPALACE_DB_PATH |
Path to SQLite database | App data directory |
Phase Roadmap
| Phase | Features |
|---|---|
| 0 (Current) | Basic chat, SQLite persistence, images, screenshots |
| 1 | SSE streaming, improved markdown, code actions |
| 2 | Codebase indexer, vector search |
| 3 | Memory extraction, infinite scroll |
| 4 | Sharing system, multi-developer |
| 5 | Terminal integration, War Rooms |
| 6 | Hybrid search, image embeddings, advanced features |
License
Private — Synq Internal Use Only