Zettlab Product Dev 项目架构图

当前开发环境:Caddy 公网入口、Web/Electron/移动端客户端、cloud server、local-server、Hermes Agent 与模型代理链路。

入口域名zett.k8s.uno 架构图域名infra.k8s.uno 工作目录zettlab-product-dev
Zettlab Product Dev architecture A system architecture diagram for the current Zettlab dev deployment. Clients Browser Web https://zett.k8s.uno Vite renderer, no native bridge Electron Desktop zettlab-web + Electron window.desktop / Peergine P2P + localFetch Mobile App zettlab-app Expo / React Native logic aligned, separate code Developer tmux: zettlab-dev server :18080 web :5173 local :19091 Public Edge Caddy TLS + reverse proxy zett.k8s.uno infra.k8s.uno 443 Route Split / → Vite :5173 /v1/api* /internal/* → server :18080 /api/v1* /health /ws/chat* → local :19091 infra.k8s.uno → static/ Static Architecture ./static/index.html HTML + inline SVG Application Services zettlab-web React + Vite + Zustand localhost:5173 chat, workspace, profile, store zettlab-server Cloud API / IAM / bindings localhost:18080 /v1/api/auth/dev-login /internal/token-exchange zettlab-local-server Device API + chat bridge 127.0.0.1:19091 /api/v1/agent/* /api/v1/chat/* /ws/chat?v=1 Runtime Config root .env → model provider PICOCLAW_MODEL=gpt-5.4 PICOCLAW_API_BASE Data, Agent Runtime, External Postgres cloud database docker postgres EMQX MQTT broker localhost:1883 Hermes Agent Profile per-agent gateway process ~/.hermes/profiles/2864cb33.../ config.yaml: custom gpt-5.4 sessions, logs, SOUL.md, skills Hermes Gateway spawned by local-server registry 127.0.0.1:18800 OpenAI-compatible /v1/chat/completions emits SSE → local-server → WS Model Proxy PICOCLAW / 360proai https://360proai.com/v1 API key injected from root .env HTTPS HTTPS / native bridge HTTPS page assets cloud API device API / WS infra static SQL MQTT HTTP/SSE env profile seed LLM API SSE events WS stream desktop P2P/LAN fallback Current browser public path: Browser → Caddy → Vite / local-server / zettlab-server → Hermes → 360proai
客户端和 UI
Caddy 公网路由
应用 API / WS
数据和消息基础设施
Hermes Agent 运行时