How aatmanbho2429/visara-tauri works
Visara is a desktop-oriented asset search application with an Angular UI, a Tauri bridge, and a FastAPI backend. The visible UI search currently simulates results locally; the sampled API service and routing code support an authentication workflow, not a demonstrated search endpoint. Login and access requests flow from the login view through Angular auth/Tauri commands, while the Python auth router exposes matching HTTP operations. Authentication also calls external Supabase Edge endpoints and derives a device identifier. Other major screens are retained as distinct capabilities; their internal behavior is not established by the excerpts.
Main entry points: app.routes.ts Route guards · auth_service.py Authentication logic · auth.service.ts Auth client · login.ts Login and access
Components 23
Desktop client
- Login and access
UI/src/app/views/login/login.ts - Workspace shell
UI/src/app/views/master/master.ts - Asset search
UI/src/app/views/search/search.ts - Activity log
UI/src/app/views/activity-log/activity-log.ts - Contact us
UI/src/app/views/contact-us/contact-us.ts - Registration view
UI/src/app/views/register/register.ts - Route guards
UI/src/app/app.routes.ts - Auth guards
UI/src/app/guards/auth.guard.ts - Login guard
UI/src/app/guards/login.guard.ts - Auth client
UI/src/app/services/auth.service.ts - Tauri command bridge
UI/src/app/services/tauri.service.ts - HTTP API client
UI/src/app/services/api.service.ts - Runtime config
UI/src/app/services/config.service.ts - Tauri host
UI/src-tauri/src/lib.rs
API backend
- FastAPI application
python/main.py - Versioned API router
python/app/api/v1/router.py - Auth endpoints
python/app/api/v1/auth/router.py - Authentication logic
python/app/services/auth_service.py - Device identity
python/app/services/license_service.py - Backend settings
python/app/config.py - Saved token file
python/app/config.py
Identity services
- Supabase Edge
Other components
- Desktop user
Connections 23
- Desktop user → Route guards: navigates
UI/src/app/app.routes.ts - Route guards → Login and access: routes to
UI/src/app/app.routes.ts - Route guards → Workspace shell: guards route
UI/src/app/app.routes.ts - Route guards → Asset search: routes to
UI/src/app/app.routes.ts - Route guards → Activity log: routes to
UI/src/app/app.routes.ts - Route guards → Auth guards: uses guard
UI/src/app/app.routes.ts - Route guards → Login guard: uses guard
UI/src/app/app.routes.ts - Auth guards → Auth client: checks session
UI/src/app/guards/auth.guard.ts - Login guard → Auth client: checks session
UI/src/app/guards/login.guard.ts - Login and access → Auth client: requests auth
UI/src/app/views/login/login.ts - Auth client → Tauri command bridge: invokes commands
UI/src/app/services/auth.service.ts - Tauri command bridge → Tauri host: dispatches commands
UI/src/app/services/tauri.service.ts - Desktop user → Asset search: searches assets
UI/src/app/views/search/search.ts - Desktop user → Contact us: opens
- Desktop user → Registration view: opens
- FastAPI application → Versioned API router: mounts routes
python/main.py - Versioned API router → Auth endpoints: mounts auth
python/app/api/v1/router.py - Auth endpoints → Authentication logic: calls auth
python/app/api/v1/auth/router.py - Authentication logic → Device identity: gets device ID
python/app/services/auth_service.py - Authentication logic → Backend settings: reads settings
python/app/services/auth_service.py - Authentication logic → Saved token file: reads and writes
python/app/services/auth_service.py - Authentication logic → Supabase Edge: calls auth endpoints
python/app/services/auth_service.py - HTTP API client → Runtime config: reads API URL
UI/src/app/services/api.service.ts