How taiyoyamada/sundesk works
Sundesk is a macOS research workspace that combines notes, a research library, a knowledge graph, and local AI. The user works in the SwiftUI app; research content feeds graph construction and citation-backed chat, while AI requests cross a localhost HTTP boundary to a Python engine. The README documents the product capabilities and process boundary; sampled source confirms engine assembly, model management, and selected Swift gateways. Other feature-to-service links are not inferred where source was not sampled.
Main entry points: app.py Engine API · EngineClient.swift HTTP client · MainWindowView.swift Workspace shell · DocumentView.swift Notes and files
Components 24
Workspace app
- Workspace shell
Packages/SundeskKit/Sources/Features/WorkspaceFeature/Views/MainWindowView.swift - Engine lifecycle
Packages/SundeskKit/Sources/Infrastructure/SundeskEngineClient/EngineProcess.swift - HTTP client
Packages/SundeskKit/Sources/Infrastructure/SundeskEngineClient/EngineClient.swift
Research knowledge
- Notes and files
Packages/SundeskKit/Sources/Features/NotesFeature/Views/Document/DocumentView.swift - Vault storage
Packages/SundeskKit/Sources/Core/SundeskData/Vault/FileSystemVaultRepository.swift - Research library
Packages/SundeskKit/Sources/Core/SundeskData/Library/FileSystemLibraryRepository.swift - Graph exploration
Packages/SundeskKit/Sources/Features/GraphFeature/ViewModels/GraphViewModel.swift - Graph and embeddings
Packages/SundeskKit/Sources/Core/SundeskData/Knowledge/EngineKnowledgeGateway.swift - Source-backed chat
Packages/SundeskKit/Sources/Features/ChatFeature/ViewModels/ChatViewModel.swift - Chat routing and history
Packages/SundeskKit/Sources/Core/SundeskData/Chat/LanguageModelRouter.swift - Note indexing
Packages/SundeskKit/Sources/Core/SundeskData/NoteIndex/SwiftDataNoteIndex.swift
Local AI engine
- Engine API
engine/src/sundesk_engine/app.py - Model runtime
engine/src/sundesk_engine/runtime/manager.py - Model hub
engine/src/sundesk_engine/runtime/hub.py - Graph computation
engine/src/sundesk_engine/graph/builder.py
Model lab
- Lab and inspection
Packages/SundeskKit/Sources/Features/LabFeature/ViewModels/LabViewModel.swift - Lab gateway
Packages/SundeskKit/Sources/Core/SundeskData/Lab/EngineLabGateway.swift - Sampling and analysis
engine/src/sundesk_engine/lab/service.py - Model forge
engine/src/sundesk_engine/forge/convert.py - Image generation
engine/src/sundesk_engine/images/catalog.py - Python scratch
engine/src/sundesk_engine/scratch/session.py - LoRA training
engine/src/sundesk_engine/lora/train.py
Other components
- Researcher
- Hugging Face
Connections 24
- Researcher → Workspace shell: uses
README.md - Workspace shell → Notes and files: opens
README.md - Workspace shell → Research library: organizes
README.md - Notes and files → Vault storage: reads and writes
- Notes and files → Note indexing: indexes
- Graph exploration → Graph and embeddings: requests graph
- Graph and embeddings → HTTP client: posts graph and embeddings
Packages/SundeskKit/Sources/Core/SundeskData/Knowledge/EngineKnowledgeGateway.swift - Source-backed chat → Chat routing and history: requests answers
- Chat routing and history → HTTP client: uses engine
- Workspace shell → Engine lifecycle: starts engine
README.md - Engine lifecycle → HTTP client: health checks
Packages/SundeskKit/Sources/Infrastructure/SundeskEngineClient/EngineProcess.swift - HTTP client → Engine API: sends HTTP requests
README.md - Engine API → Model runtime: serves model APIs
engine/src/sundesk_engine/app.py - Engine API → Graph computation: routes graph API
- Model runtime → Model hub: resolves models
engine/src/sundesk_engine/runtime/manager.py - Model hub → Hugging Face: downloads models
- Lab and inspection → Lab gateway: requests inspection
- Lab gateway → HTTP client: posts lab requests
Packages/SundeskKit/Sources/Core/SundeskData/Lab/EngineLabGateway.swift - Engine API → Sampling and analysis: routes lab API
- Engine API → Model forge: routes forge API
- Engine API → Image generation: routes image API
- Engine API → Python scratch: routes scratch API
- Engine API → LoRA training: routes LoRA API
- Sampling and analysis → Model runtime: uses loaded models
engine/src/sundesk_engine/lab/service.py