How praneetha789/lunara works
Lunara is a voice-controlled desktop assistant with a browser-based animated interface. A user clicks the microphone; the UI requests audio playback and starts the Python listening workflow. The backend transcribes speech, routes recognized commands to time, desktop-app, web-search, or system actions, then speaks and displays the response. Separate helpers provide text-to-speech and sound playback. The source shows the main UI/backend calls, but not the internal Eel transport or all browser callback wiring; those boundaries are represented conservatively.
Main entry points: main.py Assistant entry · main.js Lunara UI · command.py Command router · features.py Sound feedback
Components 16
Browser interface
- Lunara UI
www/main.js - UI callbacks
www/controller.js
Assistant runtime
- Eel bridge
- Assistant entry
main.py
Assistant capabilities
- Speech input
engine/command.py - Command router
engine/command.py - Voice output
engine/features.py - Sound feedback
engine/features.py - Sound player
playsound.py/playsound.py
System integrations
- Speech recognition
- Desktop actions
engine/command.py - Web actions
engine/command.py
Other components
- User
- Web services
- TTS engine
- Local audio
Connections 19
- User → Lunara UI: clicks microphone
www/main.js - Lunara UI → Eel bridge: requests listening
www/main.js - Lunara UI → Eel bridge: requests click sound
www/main.js - Eel bridge → Assistant entry: dispatches start
main.py - Eel bridge → Sound feedback: dispatches click sound
engine/features.py - Assistant entry → Speech input: calls listen
main.py - Speech input → Speech recognition: recognizes audio
engine/command.py - Assistant entry → Command router: routes query
main.py - Command router → Desktop actions: runs local actions
engine/command.py - Command router → Web actions: opens or searches
engine/command.py - Web actions → Web services: opens pages
engine/command.py - Assistant entry → Voice output: speaks response
main.py - Assistant entry → Eel bridge: sends response text
main.py - Eel bridge → Lunara UI: delivers response
www/main.js - Voice output → TTS engine: synthesizes speech
engine/features.py - Assistant entry → Sound feedback: plays startup sound
main.py - Sound feedback → Sound player: plays asynchronously
engine/features.py - Sound player → Local audio: plays audio file
playsound.py/playsound.py - UI callbacks → Eel bridge: exposes callbacks
www/controller.js