How elsesystems/sisp works
SISP is an offline-first space-mission health and prevention app. Crew enter check-ins and use self-tests; the app assesses readings, presents status and next steps, and supports delay-aware escalation, reporting, and mission routines. A portable C core is exposed through WebAssembly with a TypeScript fallback, while history persists locally in SQLite/OPFS or localStorage. The graph preserves documented feature branches; several component-to-component links are based on the README or SOURCE INDEX rather than inspected component bodies.
Main entry points: App.tsx App shell · Dashboard.tsx Health dashboard · assessment.ts Health assessment · index.ts Core selector
Components 27
Crew health app
- App shell
src/App.tsx - Daily check-in
src/components/Checkin.tsx - Health dashboard
src/components/Dashboard.tsx - 3D body view
src/components/Body3D.tsx - Health trends
src/components/Trends.tsx - Ground escalation
src/components/Ground.tsx - Surgeon report
src/components/FlightSurgeonReport.tsx - Emergency guides
src/components/Emergency.tsx - Mission timeline
src/components/MissionTimeline.tsx - PVT test
src/components/Pvt.tsx - Camera pulse
src/components/PulseCam.tsx - NASA data view
src/components/NasaData.tsx
Health and mission domain
- Health assessment
src/lib/assessment.ts - Clinical knowledge
src/lib/knowledge.ts - Space weather
src/lib/spaceWeather.ts - Mission schedule
src/lib/schedule.ts - Emergency procedures
src/lib/emergency.ts
Assessment core
- Portable C core
core/src/sisp.c - Flat C ABI
core/src/sisp_flat.c - WASM bridge
core/wasm/sisp_wasm.c - TypeScript fallback
src/core/flat.ts - Core selector
src/core/index.ts
Local persistence
- Application state
src/lib/store.ts - Storage facade
src/storage/index.ts - SQLite worker
src/storage/db.worker.ts - SQLite operations
src/storage/ops.ts
Other components
- Crew member
Connections 27
- Crew member → Daily check-in: enters readings
README.md - App shell → Daily check-in: routes to
src/App.tsx - App shell → Health dashboard: routes to
src/App.tsx - App shell → Ground escalation: routes to
src/App.tsx - App shell → Emergency guides: routes to
src/App.tsx - App shell → Mission timeline: renders
src/App.tsx - Daily check-in → Health assessment: assesses readings
- Health dashboard → Health assessment: shows status
src/components/Dashboard.tsx - Health dashboard → 3D body view: renders
src/components/Dashboard.tsx - Health dashboard → Health trends: links trends
- Health assessment → Clinical knowledge: uses guidance
src/lib/assessment.ts - Health assessment → Core selector: calls core
src/lib/assessment.ts - Core selector → TypeScript fallback: starts fallback
src/core/index.ts - Core selector → WASM bridge: loads WASM
src/core/index.ts - WASM bridge → Flat C ABI: calls ABI
core/wasm/sisp_wasm.c - Flat C ABI → Portable C core: calls core
core/src/sisp_flat.c - Mission timeline → Mission schedule: uses schedule
src/components/MissionTimeline.tsx - Mission timeline → Space weather: loads events
src/components/MissionTimeline.tsx - NASA data view → Space weather: loads events
src/components/NasaData.tsx - Space weather → Core selector: calculates dose
src/lib/spaceWeather.ts - Emergency guides → Emergency procedures: shows procedures
src/components/Emergency.tsx - App shell → Surgeon report: offers report
- App shell → PVT test: offers test
- App shell → Camera pulse: offers pulse
- Application state → Storage facade: persists history
src/lib/store.ts - Storage facade → SQLite worker: sends RPC
src/storage/index.ts - SQLite worker → SQLite operations: runs operations
src/storage/db.worker.ts