How oculus-app/oculus works
Oculus is a local-first university study app: it signs in to a university’s learning services, syncs course materials into a local library, and makes that material searchable and usable by agents alongside lectures, projects, and a calendar. The graph shows that central workflow and the major README capabilities, plus keyd’s credential-forwarding layer. Several links are documented only at product level or point to unsampled subsystems; those are marked dashed rather than implying inspected call paths.
Main entry points: src Desktop interface · mod.rs Local library · lib.rs Oculus desktop · engine.rs Course sync
Components 21
Coursework library
- Course sync
app/src-tauri/src/sync/engine.rs - Course sources
app/src-tauri/src/sources - Local library
app/src-tauri/src/db/store/mod.rs - File processing status
app/src/lib/db/pipeline.ts
Agents and search
- Agent context and memory
app/src-tauri/src/agents/mod.rs - oculus CLI
app/src-tauri/src/bin/oculus/main.rs - Agent harness
app/src-tauri/src/harness - Document embeddings
app/src-tauri/src/embed
Study tools
- Lecture playback and chat
app/src-tauri/src/lectures/chapters/app.rs - Tasks and calendar
app/src-tauri/src/db/projects - Video studio
app/studio-core/src/project/mod.rs - Markdown editor core
app/editor-core/src/markdown - Math rendering
app/math-core/katex/src/lib.rs
App and services
- Oculus desktop
app/src-tauri/src/lib.rs - Desktop interface
app/src - In-app browser companion
app/src-tauri/src/companion
Identity and access
- Sign-in and sessions
app/src-tauri/src/auth - Credential broker
app/keyd/core/src/server.rs - Credential forwarding
app/keyd/core/src/forward/mod.rs
Other components
- Student
- Canvas, Ed, Echo360
Connections 27
- Student → Desktop interface: uses
- Desktop interface → Oculus desktop: invokes
- Oculus desktop → Sign-in and sessions: provides sign-in
- Sign-in and sessions → Credential broker: uses broker
- Credential broker → Credential forwarding: dispatches forwards
app/keyd/core/src/server.rs - Credential forwarding → Canvas, Ed, Echo360: forwards requests
app/keyd/core/src/forward/mod.rs - Sign-in and sessions → Canvas, Ed, Echo360: authenticates as user
- Oculus desktop → Course sync: starts sync
- Course sync → Course sources: scrapes courses
app/src-tauri/src/sync/engine.rs - Course sources → Canvas, Ed, Echo360: reads course content
- Course sync → Local library: stores synced materials
- Desktop interface → File processing status: shows processing status
app/src/components/sync/PipelineTable.tsx - File processing status → Local library: reads and updates stages
app/src/lib/db/pipeline.ts - Oculus desktop → Agent context and memory: prepares agent docs
- Student → oculus CLI: asks questions
- oculus CLI → Agent harness: runs agents
- Agent harness → Agent context and memory: uses library context
- Agent context and memory → Local library: searches coursework
- Local library → Document embeddings: supplies pages
- Document embeddings → Canvas, Ed, Echo360: optional Voyage API
- Student → Lecture playback and chat: studies recordings
- Lecture playback and chat → Local library: answers from lectures
- Student → Tasks and calendar: plans coursework
- Student → Video studio: creates videos
- Student → In-app browser companion: browses signed-in site
- Desktop interface → Markdown editor core: edits Markdown
- Desktop interface → Math rendering: renders equations