How itsasmaa/know-your-normal works
Know Your Normal is a synthetic astronaut-health monitoring dashboard. The main workflow loads crew-day records, combines them with browser check-ins, analyzes each crew member against their first 30 mission days, and presents statuses, trends, emotion history, and pattern scores as the user replays mission days. Users can add simulated readings, compare crew, and export reports or CSV data. The README also documents a Streamlit entry point. Edges reflect shown imports and calls or README statements; unsampled feature wiring is omitted where it cannot be verified.
Main entry points: App.tsx Dashboard coordinator · engine.ts Rule-based analysis · PatternSection.tsx Pattern check · data.ts CSV data parser
Components 18
Dashboard experience
- Dashboard coordinator
src/App.tsx - Status cards
src/components/StatusCards.tsx - Health trends
src/components/TrendCharts.tsx - Emotion history
src/components/EmotionSection.tsx - Pattern check
src/components/PatternSection.tsx - Crew comparison
src/components/CrewTable.tsx - Daily check-in
src/components/CheckInForm.tsx - Surgeon report
src/lib/engine.ts - Streamlit dashboard
app.py
Crew records
- Supplied crew records
src/data/crew_daily.csv - CSV data parser
src/lib/data.ts - Health record types
src/lib/types.ts
Health analysis
- Rule-based analysis
src/lib/engine.ts - Rule constants
src/data/engineConstants.ts - Isolation Forest
src/lib/iforest.ts - scikit-learn reference
src/data/sklearnReference.ts
Browser state and exports
- Browser storage and export
src/lib/browser.ts
Other components
- Dashboard user
Connections 21
- Dashboard user → Dashboard coordinator: uses
README.md - Dashboard coordinator → CSV data parser: loads records
src/App.tsx - Supplied crew records → CSV data parser: parsed by
README.md - Dashboard coordinator → Rule-based analysis: analyzes crew
src/App.tsx - Rule-based analysis → Rule constants: uses rules
src/lib/engine.ts - Rule-based analysis → Isolation Forest: scores patterns
src/lib/engine.ts - Dashboard coordinator → Status cards: renders
src/App.tsx - Dashboard coordinator → Health trends: renders
src/App.tsx - Dashboard coordinator → Emotion history: renders
src/App.tsx - Dashboard coordinator → Pattern check: renders
src/App.tsx - Dashboard coordinator → Crew comparison: renders
src/App.tsx - Dashboard coordinator → Daily check-in: renders
src/App.tsx - Emotion history → Rule-based analysis: reads analysis
src/components/EmotionSection.tsx - Pattern check → Rule-based analysis: reads analysis
src/components/PatternSection.tsx - Pattern check → scikit-learn reference: plots comparison
src/components/PatternSection.tsx - Daily check-in → Dashboard user: collects readings
README.md - Dashboard coordinator → Browser storage and export: loads and saves
src/App.tsx - Dashboard coordinator → Surgeon report: shows report
README.md - Dashboard coordinator → Browser storage and export: exports data
README.md - CSV data parser → Health record types: creates rows
src/lib/data.ts - Streamlit dashboard → Dashboard user: presents dashboard
README.md