How oskarbartoszyk/personalassistant works
Kalendarz is a single-user calendar with a conversational assistant. A user opens the web app to browse and edit events, reminders, and notes directly; separately, chat sends messages to the backend agent, which can use tools to work with calendar data and memory. The frontend also supports browser-based voice input and speech output. The backend exposes REST operations and chat streaming, with SQLite as shared persistence. Source excerpts show the main calls, but several backend routes and agent tools were only partially sampled; the graph keeps those within their documented modules.
Main entry points: chat.js Chat and voice UI · app.js App bootstrap · api.js API client and state · panels.js Reminder and note panels
Components 12
Web application
- App bootstrap
frontend/js/app.js - API client and state
frontend/js/api.js - Calendar views
frontend/js/calendar.js - Reminder and note panels
frontend/js/panels.js - Chat and voice UI
frontend/js/chat.js
Backend services
- REST and chat API
backend/main.py - Assistant agent
backend/agent.py
Persistent data
- Calendar and memory data
backend/db.py - SQLite database file
backend/kalendarz.db
External capabilities
- Ollama model
- Browser speech APIs
Other components
- Calendar user
Connections 19
- Calendar user → App bootstrap: uses
- App bootstrap → Calendar views: initializes
frontend/js/app.js - App bootstrap → Reminder and note panels: initializes
frontend/js/app.js - App bootstrap → Chat and voice UI: initializes
frontend/js/app.js - App bootstrap → API client and state: loads events
frontend/js/app.js - Calendar views → API client and state: loads and edits events
frontend/js/calendar.js - Reminder and note panels → API client and state: reads and writes
frontend/js/panels.js - Reminder and note panels → Calendar views: reloads events
frontend/js/panels.js - Chat and voice UI → REST and chat API: streams chat
frontend/js/chat.js - Chat and voice UI → API client and state: loads history
frontend/js/chat.js - Chat and voice UI → Calendar views: refreshes events
frontend/js/chat.js - Chat and voice UI → Reminder and note panels: refreshes panels
frontend/js/chat.js - Chat and voice UI → Browser speech APIs: uses speech
frontend/js/chat.js - API client and state → REST and chat API: sends REST requests
frontend/js/api.js - REST and chat API → Calendar and memory data: handles CRUD
backend/main.py - REST and chat API → Assistant agent: dispatches chat
backend/main.py - Assistant agent → Calendar and memory data: reads and writes
backend/agent.py - Assistant agent → Ollama model: calls model
backend/agent.py - Calendar and memory data → SQLite database file: persists data
backend/db.py