How wccwcm/klic-calendar works
Calendar is a local-first desktop app for calendars, notes, and recurring life records. The main path runs from the Dioxus interface through the application command service and use cases to domain models and SQLite, with provider integrations available for synchronization. The README also identifies notes, life dashboards, imports/exports, and AI as product capabilities; paths for unsampled branches are included only where the tree supports them. Edges reflect explicit README or excerpt/index evidence; unsampled wiring is omitted.
Main entry points: service.rs Command service · views.rs Calendar and panels · coordinator.rs Sync coordination · rig_engine.rs LLM engine
Components 27
Desktop experience
- Dioxus shell
app/src/main.rs - Calendar and panels
app/src/views.rs - UI state
app/src/state.rs - View shaping
app/src/viewmodel.rs - Notes workspace
app/src/components/note_workspace.rs - Markdown editor
app/editor/src/index.js - AI panel
app/src/components/ai_panel.rs
Application workflows
- Command service
crates/application/src/service.rs - Calendar workflows
crates/application/src/usecases/create_event.rs - Task workflows
crates/application/src/usecases/manage_tasks.rs - Life records and insights
crates/application/src/usecases/manage_life.rs - Life import and export
crates/application/src/usecases/life_io.rs - Sync coordination
crates/application/src/sync/coordinator.rs
Domain and persistence
- Domain models
crates/domain/src/event.rs - SQLite store
crates/storage/src/db.rs - Event persistence
crates/storage/src/event_repository.rs - Note persistence
crates/storage/src/note_repository.rs - Life persistence
crates/application/src/ports/life_repository.rs
External integrations
- Google providers
crates/provider-google/src/provider.rs - CalDAV provider
crates/provider-caldav/src/lib.rs - ICS import/export
crates/provider-ics/src/lib.rs - Microsoft provider
crates/provider-microsoft/src/provider.rs
AI assistance
- LLM engine
crates/ai/src/rig_engine.rs - MCP tools
crates/ai/src/mcp.rs
Other components
- User
- Calendar services
- LLM services
Connections 27
- User → Calendar and panels: uses
README.md - Dioxus shell → Command service: dispatches commands
app/src/main.rs - Calendar and panels → Command service: requests data
app/src/views.rs - Calendar and panels → UI state: updates
app/src/views.rs - Calendar and panels → View shaping: shapes results
app/src/views.rs - Notes workspace → Markdown editor: embeds
README.md - Command service → Calendar workflows: dispatches
crates/application/src/service.rs - Command service → Task workflows: dispatches
crates/application/src/service.rs - Command service → Life records and insights: dispatches
crates/application/src/service.rs - Life records and insights → Life import and export: uses
- Calendar workflows → Domain models: applies rules
- Task workflows → Domain models: updates tasks
crates/application/src/usecases/manage_tasks.rs - Command service → Event persistence: reads and writes
crates/application/src/service.rs - Command service → Note persistence: reads and writes
crates/application/src/service.rs - Command service → Life persistence: uses port
crates/application/src/service.rs - Event persistence → SQLite store: persists
crates/storage/src/event_repository.rs - Note persistence → SQLite store: persists
crates/storage/src/note_repository.rs - Sync coordination → Google providers: dispatches sync
- Sync coordination → CalDAV provider: dispatches sync
- Sync coordination → Microsoft provider: dispatches sync
- ICS import/export → User: imports or exports
README.md - Google providers → Calendar services: syncs with
README.md - CalDAV provider → Calendar services: syncs with
README.md - Microsoft provider → Calendar services: integrates
README.md - AI panel → LLM engine: requests assistance
- LLM engine → MCP tools: connects tools
crates/ai/src/rig_engine.rs - LLM engine → LLM services: sends prompt