How vn6295337/justask works
JustAsk is a privacy-focused AI assistant backed by a query API, model-discovery and ranking data, and an analytics dashboard. The user workflow is to submit a question in the mobile app, have the API classify it and try ranked models with failover, then display the answer; the app also supports local history, caching, and offline queuing. The graph combines explicit README architecture with shown source calls. Registry internals and several app/API modules were not sampled, so their detailed wiring is not asserted.
Main entry points: App.js Mobile app shell · SyncManager.js Offline sync · main.py Registry runner · Analytics.tsx Analytics page
Components 23
Mobile app
- Mobile app shell
justask/app/App.js - Chat screen
justask/app/src/screens/HomeScreen.js - API client
justask/app/src/services/APIClient.js - Response cache
justask/app/src/services/CacheManager.js - Local database
justask/app/src/services/Database.js - Offline sync
justask/app/src/services/SyncManager.js - Chat state
justask/app/src/store/querySlice.js
Query API
- Query routes
justask/api/src/routes/query.js - Query classifier
justask/api/src/classification/classifier.js - Ranked failover
justask/api/src/failover/failover.js - Provider adapters
justask/api/src/providers - Query API
justask/api/src/index.js
Model data
- Supabase model data
- Registry runner
justask-registry/src/main.py - Google pipeline
justask-registry/src/pipelines/google - Groq pipeline
justask-registry/src/pipelines/groq - OpenRouter pipeline
justask-registry/src/pipelines/openrouter - Ranking builder
justask-router/selector-service/scripts/db/populate_model_selection_score.js
Analytics dashboard
- Analytics page
justask-dashboard/src/pages/Analytics.tsx - Model visualizations
justask-dashboard/src/components/AiModelsVisualization.tsx - Model count graph
justask-dashboard/src/components/ModelCountLineGraph.tsx
Other components
- User
- AI providers
Connections 26
- User → Mobile app shell: asks question
README.md - Mobile app shell → Chat screen: shows chat
justask/app/App.js - Chat screen → API client: submits query
- Mobile app shell → Query API: sends query
README.md - Query API → Query routes: handles request
- Query routes → Query classifier: classifies query
justask/api/src/routes/query.js - Query routes → Ranked failover: executes fallback
justask/api/src/routes/query.js - Ranked failover → AI providers: tries models
README.md - Provider adapters → AI providers: calls providers
- Query API → Supabase model data: reads ranking
README.md - Mobile app shell → Response cache: checks cache
- Response cache → Local database: reads and writes
justask/app/src/services/CacheManager.js - Mobile app shell → Local database: stores history
README.md - Offline sync → Local database: reads queue
justask/app/src/services/SyncManager.js - Offline sync → API client: sends batch
justask/app/src/services/SyncManager.js - Offline sync → Chat state: updates messages
justask/app/src/services/SyncManager.js - Registry runner → Google pipeline: runs pipeline
- Registry runner → Groq pipeline: runs pipeline
- Registry runner → OpenRouter pipeline: runs pipeline
- Google pipeline → Supabase model data: publishes models
README.md - Groq pipeline → Supabase model data: publishes models
README.md - OpenRouter pipeline → Supabase model data: publishes models
README.md - Ranking builder → Supabase model data: writes ranking
README.md - Analytics page → Model visualizations: renders models
- Analytics page → Model count graph: renders counts
- Analytics page → Supabase model data: visualizes data
README.md