# hardik-sharma-1005/project-bio-tesseracttt architecture

> Architecture diagram of the GitHub repository hardik-sharma-1005/project-bio-tesseracttt, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hardik-sharma-1005/project-bio-tesseracttt
- Repository: https://github.com/hardik-sharma-1005/project-bio-tesseracttt

## Overview

This repository contains two distinct monitoring implementations: the README describes a small Turso-backed, three-page application, while the sampled central modules describe a richer Next.js Bio-Tesseract dashboard using Supabase telemetry and simulated crew data. The graph preserves both rather than implying they share a runtime. The Next.js dashboard is the richer user workflow; links for unsampled subsystems are limited to documented or indexed references.

Main entry points: [`Project-Bio-Tesseract/file_arnav/app/dashboard/page.js`](https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/app/dashboard/page.js) (Dashboard route), [`Project-Bio-Tesseract/file_arnav/hooks/useTelemetryDataset.js`](https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/hooks/useTelemetryDataset.js) (Dataset hook), [`Project-Bio-Tesseract/file_arnav/components/telemetry/HistoricalTelemetryPanel.jsx`](https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/components/telemetry/HistoricalTelemetryPanel.jsx) (Historical telemetry), [`server.mjs`](https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/server.mjs) (HTTP application)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Dashboard experience"]
  node_dashboard["Dashboard route<br/>[page.js]"]
  node_overview["Mission overview"]
  node_biomonitor["Bio-monitor"]
  node_ecg["ECG chart<br/>[LiveEcgChart.jsx]"]
  node_lifesupport["Life support"]
end

subgraph group_telemetry["Telemetry data"]
  node_telemetrypanel["Historical telemetry"]
  node_dataset["Dataset hook"]
  node_queries["Telemetry queries<br/>[queries.js]"]
  node_schema["Telemetry schema<br/>[schema.js]"]
  node_normalizers["Data normalizers<br/>[normalizers.js]"]
  node_diagnostics["Data diagnostics<br/>[diagnostics.js]"]
  node_aggregations["Telemetry aggregates<br/>[aggregations.js]"]
  node_supabase["Supabase client<br/>[client.js]"]
end

subgraph group_support["Mission support"]
  node_medical["Medical advisor<br/>[MedicalSection.jsx]"]
  node_crew["Crew and alerts<br/>[CrewSection.jsx]"]
  node_copilot["Mission copilot<br/>[MissionCopilot.jsx]"]
  node_commands["Command rules<br/>[commands.js]"]
end

subgraph group_legacy["Turso application"]
  node_legacy_server["HTTP application<br/>[server.mjs]"]
  node_legacy_ui["Three-page UI<br/>[app.js]"]
  node_parameters["Parameter thresholds<br/>[parameters.mjs]"]
  node_db_adapter["Database adapter<br/>[db.mjs]"]
end

node_engineer(("Dashboard user"))
node_supabase_service[("Supabase service")]
node_legacy_user(("Monitoring user"))
node_turso_db[("Turso database")]

node_engineer -->|"opens"| node_dashboard
node_dashboard -->|"renders"| node_overview
node_dashboard -->|"renders"| node_biomonitor
node_dashboard -->|"renders"| node_lifesupport
node_dashboard -->|"renders"| node_medical
node_dashboard -->|"renders"| node_crew
node_dashboard -->|"renders"| node_copilot
node_biomonitor -->|"renders"| node_ecg
node_overview -->|"renders"| node_telemetrypanel
node_lifesupport -->|"renders"| node_telemetrypanel
node_telemetrypanel -->|"loads data"| node_dataset
node_telemetrypanel -->|"uses fields"| node_schema
node_telemetrypanel -->|"aggregates"| node_aggregations
node_dataset -->|"gets client"| node_supabase
node_dataset -->|"queries"| node_queries
node_dataset -->|"normalizes"| node_normalizers
node_dataset -->|"checks data"| node_diagnostics
node_queries -->|"reads definitions"| node_schema
node_normalizers -->|"uses definitions"| node_schema
node_diagnostics -->|"checks queries"| node_queries
node_diagnostics -->|"checks normalization"| node_normalizers
node_supabase -->|"connects"| node_supabase_service
node_copilot -->|"recognizes commands"| node_commands
node_legacy_user -->|"uses"| node_legacy_ui
node_legacy_ui -.->|"requests telemetry"| node_legacy_server
node_legacy_server -->|"loads parameters"| node_parameters
node_legacy_server -->|"uses database"| node_db_adapter
node_db_adapter -.->|"reads and writes"| node_turso_db
node_legacy_user -->|"posts telemetry"| node_legacy_server

click node_dashboard "https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/app/dashboard/page.js"
click node_overview "https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/components/overview/OverviewSection.jsx"
click node_biomonitor "https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/components/biomonitor/BioMonitorSection.jsx"
click node_ecg "https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/components/biomonitor/LiveEcgChart.jsx"
click node_lifesupport "https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/components/lifesupport/LifeSupportSection.jsx"
click node_medical "https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/components/medical/MedicalSection.jsx"
click node_crew "https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/components/crew/CrewSection.jsx"
click node_copilot "https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/components/copilot/MissionCopilot.jsx"
click node_commands "https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/lib/copilot/commands.js"
click node_telemetrypanel "https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/components/telemetry/HistoricalTelemetryPanel.jsx"
click node_dataset "https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/hooks/useTelemetryDataset.js"
click node_queries "https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/lib/telemetry/queries.js"
click node_schema "https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/lib/telemetry/schema.js"
click node_normalizers "https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/lib/telemetry/normalizers.js"
click node_diagnostics "https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/lib/telemetry/diagnostics.js"
click node_aggregations "https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/lib/telemetry/aggregations.js"
click node_supabase "https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/lib/supabase/client.js"
click node_legacy_server "https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/server.mjs"
click node_legacy_ui "https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/public/app.js"
click node_parameters "https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/parameters.mjs"
click node_db_adapter "https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/db.mjs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_dashboard,node_overview,node_biomonitor,node_ecg,node_lifesupport,node_engineer,node_legacy_user toneBlue
class node_telemetrypanel,node_dataset,node_queries,node_schema,node_normalizers,node_diagnostics,node_aggregations,node_supabase,node_supabase_service,node_turso_db toneAmber
class node_medical,node_crew,node_copilot,node_commands toneMint
class node_legacy_server,node_legacy_ui,node_parameters,node_db_adapter toneRose
```

## Components

### Dashboard experience

- [Dashboard route](https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/app/dashboard/page.js): `Project-Bio-Tesseract/file_arnav/app/dashboard/page.js`
- [Mission overview](https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/components/overview/OverviewSection.jsx): `Project-Bio-Tesseract/file_arnav/components/overview/OverviewSection.jsx`
- [Bio-monitor](https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/components/biomonitor/BioMonitorSection.jsx): `Project-Bio-Tesseract/file_arnav/components/biomonitor/BioMonitorSection.jsx`
- [ECG chart](https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/components/biomonitor/LiveEcgChart.jsx): `Project-Bio-Tesseract/file_arnav/components/biomonitor/LiveEcgChart.jsx`
- [Life support](https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/components/lifesupport/LifeSupportSection.jsx): `Project-Bio-Tesseract/file_arnav/components/lifesupport/LifeSupportSection.jsx`

### Telemetry data

- [Historical telemetry](https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/components/telemetry/HistoricalTelemetryPanel.jsx): `Project-Bio-Tesseract/file_arnav/components/telemetry/HistoricalTelemetryPanel.jsx`
- [Dataset hook](https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/hooks/useTelemetryDataset.js): `Project-Bio-Tesseract/file_arnav/hooks/useTelemetryDataset.js`
- [Telemetry queries](https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/lib/telemetry/queries.js): `Project-Bio-Tesseract/file_arnav/lib/telemetry/queries.js`
- [Telemetry schema](https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/lib/telemetry/schema.js): `Project-Bio-Tesseract/file_arnav/lib/telemetry/schema.js`
- [Data normalizers](https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/lib/telemetry/normalizers.js): `Project-Bio-Tesseract/file_arnav/lib/telemetry/normalizers.js`
- [Data diagnostics](https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/lib/telemetry/diagnostics.js): `Project-Bio-Tesseract/file_arnav/lib/telemetry/diagnostics.js`
- [Telemetry aggregates](https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/lib/telemetry/aggregations.js): `Project-Bio-Tesseract/file_arnav/lib/telemetry/aggregations.js`
- [Supabase client](https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/lib/supabase/client.js): `Project-Bio-Tesseract/file_arnav/lib/supabase/client.js`

### Mission support

- [Medical advisor](https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/components/medical/MedicalSection.jsx): `Project-Bio-Tesseract/file_arnav/components/medical/MedicalSection.jsx`
- [Crew and alerts](https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/components/crew/CrewSection.jsx): `Project-Bio-Tesseract/file_arnav/components/crew/CrewSection.jsx`
- [Mission copilot](https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/components/copilot/MissionCopilot.jsx): `Project-Bio-Tesseract/file_arnav/components/copilot/MissionCopilot.jsx`
- [Command rules](https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/Project-Bio-Tesseract/file_arnav/lib/copilot/commands.js): `Project-Bio-Tesseract/file_arnav/lib/copilot/commands.js`

### Turso application

- [HTTP application](https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/server.mjs): `server.mjs`
- [Three-page UI](https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/public/app.js): `public/app.js`
- [Parameter thresholds](https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/parameters.mjs): `parameters.mjs`
- [Database adapter](https://github.com/hardik-sharma-1005/project-bio-tesseracttt/blob/main/db.mjs): `db.mjs`

### Other components

- **Dashboard user**
- **Supabase service**
- **Monitoring user**
- **Turso database**

## Connections

- Dashboard user → Dashboard route: opens
- Dashboard route → Mission overview: renders (evidence: `Project-Bio-Tesseract/file_arnav/app/dashboard/page.js`)
- Dashboard route → Bio-monitor: renders (evidence: `Project-Bio-Tesseract/file_arnav/app/dashboard/page.js`)
- Dashboard route → Life support: renders (evidence: `Project-Bio-Tesseract/file_arnav/app/dashboard/page.js`)
- Dashboard route → Medical advisor: renders (evidence: `Project-Bio-Tesseract/file_arnav/app/dashboard/page.js`)
- Dashboard route → Crew and alerts: renders (evidence: `Project-Bio-Tesseract/file_arnav/app/dashboard/page.js`)
- Dashboard route → Mission copilot: renders (evidence: `Project-Bio-Tesseract/file_arnav/app/dashboard/page.js`)
- Bio-monitor → ECG chart: renders (evidence: `Project-Bio-Tesseract/file_arnav/components/biomonitor/BioMonitorSection.jsx`)
- Mission overview → Historical telemetry: renders (evidence: `Project-Bio-Tesseract/file_arnav/components/overview/OverviewSection.jsx`)
- Life support → Historical telemetry: renders (evidence: `Project-Bio-Tesseract/file_arnav/components/lifesupport/LifeSupportSection.jsx`)
- Historical telemetry → Dataset hook: loads data (evidence: `Project-Bio-Tesseract/file_arnav/components/telemetry/HistoricalTelemetryPanel.jsx`)
- Historical telemetry → Telemetry schema: uses fields (evidence: `Project-Bio-Tesseract/file_arnav/components/telemetry/HistoricalTelemetryPanel.jsx`)
- Historical telemetry → Telemetry aggregates: aggregates (evidence: `Project-Bio-Tesseract/file_arnav/components/telemetry/HistoricalTelemetryPanel.jsx`)
- Dataset hook → Supabase client: gets client (evidence: `Project-Bio-Tesseract/file_arnav/hooks/useTelemetryDataset.js`)
- Dataset hook → Telemetry queries: queries (evidence: `Project-Bio-Tesseract/file_arnav/hooks/useTelemetryDataset.js`)
- Dataset hook → Data normalizers: normalizes (evidence: `Project-Bio-Tesseract/file_arnav/hooks/useTelemetryDataset.js`)
- Dataset hook → Data diagnostics: checks data (evidence: `Project-Bio-Tesseract/file_arnav/hooks/useTelemetryDataset.js`)
- Telemetry queries → Telemetry schema: reads definitions (evidence: `Project-Bio-Tesseract/file_arnav/lib/telemetry/queries.js`)
- Data normalizers → Telemetry schema: uses definitions (evidence: `Project-Bio-Tesseract/file_arnav/lib/telemetry/normalizers.js`)
- Data diagnostics → Telemetry queries: checks queries (evidence: `Project-Bio-Tesseract/file_arnav/lib/telemetry/diagnostics.js`)
- Data diagnostics → Data normalizers: checks normalization (evidence: `Project-Bio-Tesseract/file_arnav/lib/telemetry/diagnostics.js`)
- Supabase client → Supabase service: connects (evidence: `Project-Bio-Tesseract/file_arnav/lib/supabase/client.js`)
- Mission copilot → Command rules: recognizes commands (evidence: `Project-Bio-Tesseract/file_arnav/components/copilot/MissionCopilot.jsx`)
- Monitoring user → Three-page UI: uses (evidence: `README.md`)
- Three-page UI → HTTP application: requests telemetry
- HTTP application → Parameter thresholds: loads parameters (evidence: `server.mjs`)
- HTTP application → Database adapter: uses database (evidence: `server.mjs`)
- Database adapter → Turso database: reads and writes
- Monitoring user → HTTP application: posts telemetry (evidence: `README.md`)
