# kasusathvikamary/model-regression-detection architecture

> Architecture diagram of the GitHub repository kasusathvikamary/model-regression-detection, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kasusathvikamary/model-regression-detection
- Repository: https://github.com/kasusathvikamary/model-regression-detection

## Overview

This is a React dashboard prototype for visualizing neural-model health and regression risk. The main workflow is a user opening the dashboard, viewing model status and analytics, and starting an analysis; the displayed progress and status are managed in the application UI. Users can also inspect nodes in an interactive 3D network. The README describes only a Vite template, so product capabilities are inferred from the sampled application source. The two microphone hooks implement clap detection, but their integration with the UI is not shown.

Main entry points: [`src/App.tsx`](https://github.com/kasusathvikamary/model-regression-detection/blob/main/src/App.tsx) (Dashboard and Analytics), [`src/components/3d/ModelScene.tsx`](https://github.com/kasusathvikamary/model-regression-detection/blob/main/src/components/3d/ModelScene.tsx) (Model Scene), [`src/components/3d/NeuralNetwork.tsx`](https://github.com/kasusathvikamary/model-regression-detection/blob/main/src/components/3d/NeuralNetwork.tsx) (Neural Network), [`src/hooks/useClapDetection.ts`](https://github.com/kasusathvikamary/model-regression-detection/blob/main/src/hooks/useClapDetection.ts) (Clap Detection Hook)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Dashboard"]
  node_app["Dashboard and Analytics<br/>[App.tsx]"]
end

subgraph group_visualization["3D Model View"]
  node_scene["Model Scene<br/>[ModelScene.tsx]"]
  node_network["Neural Network<br/>[NeuralNetwork.tsx]"]
  node_node["Network Node<br/>[NeuralNode.tsx]"]
  node_particles["Data Particles<br/>[DataParticles.tsx]"]
  node_core["Floating Core<br/>[FloatingCore.tsx]"]
  node_environment["Scene Environment<br/>[Environment.tsx]"]
end

subgraph group_audio["Clap Detection"]
  node_clapdetection["Clap Detection Hook"]
  node_clapdetector["Clap Detector Hook<br/>[useClapDetector.ts]"]
end

node_user(("User"))
node_microphone["Browser Microphone API"]

node_user -->|"uses"| node_app
node_app -->|"renders"| node_scene
node_scene -->|"renders"| node_network
node_network -->|"renders"| node_node
node_clapdetection -->|"requests audio"| node_microphone
node_clapdetector -->|"requests audio"| node_microphone

click node_app "https://github.com/kasusathvikamary/model-regression-detection/blob/main/src/App.tsx"
click node_scene "https://github.com/kasusathvikamary/model-regression-detection/blob/main/src/components/3d/ModelScene.tsx"
click node_network "https://github.com/kasusathvikamary/model-regression-detection/blob/main/src/components/3d/NeuralNetwork.tsx"
click node_node "https://github.com/kasusathvikamary/model-regression-detection/blob/main/src/components/3d/NeuralNode.tsx"
click node_particles "https://github.com/kasusathvikamary/model-regression-detection/blob/main/src/components/3d/DataParticles.tsx"
click node_core "https://github.com/kasusathvikamary/model-regression-detection/blob/main/src/components/3d/FloatingCore.tsx"
click node_environment "https://github.com/kasusathvikamary/model-regression-detection/blob/main/src/components/3d/Environment.tsx"
click node_clapdetection "https://github.com/kasusathvikamary/model-regression-detection/blob/main/src/hooks/useClapDetection.ts"
click node_clapdetector "https://github.com/kasusathvikamary/model-regression-detection/blob/main/src/hooks/useClapDetector.ts"

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_app,node_user,node_microphone toneBlue
class node_scene,node_network,node_node,node_particles,node_core,node_environment toneAmber
class node_clapdetection,node_clapdetector toneMint
```

## Components

### Dashboard

- [Dashboard and Analytics](https://github.com/kasusathvikamary/model-regression-detection/blob/main/src/App.tsx): `src/App.tsx`

### 3D Model View

- [Model Scene](https://github.com/kasusathvikamary/model-regression-detection/blob/main/src/components/3d/ModelScene.tsx): `src/components/3d/ModelScene.tsx`
- [Neural Network](https://github.com/kasusathvikamary/model-regression-detection/blob/main/src/components/3d/NeuralNetwork.tsx): `src/components/3d/NeuralNetwork.tsx`
- [Network Node](https://github.com/kasusathvikamary/model-regression-detection/blob/main/src/components/3d/NeuralNode.tsx): `src/components/3d/NeuralNode.tsx`
- [Data Particles](https://github.com/kasusathvikamary/model-regression-detection/blob/main/src/components/3d/DataParticles.tsx): `src/components/3d/DataParticles.tsx`
- [Floating Core](https://github.com/kasusathvikamary/model-regression-detection/blob/main/src/components/3d/FloatingCore.tsx): `src/components/3d/FloatingCore.tsx`
- [Scene Environment](https://github.com/kasusathvikamary/model-regression-detection/blob/main/src/components/3d/Environment.tsx): `src/components/3d/Environment.tsx`

### Clap Detection

- [Clap Detection Hook](https://github.com/kasusathvikamary/model-regression-detection/blob/main/src/hooks/useClapDetection.ts): `src/hooks/useClapDetection.ts`
- [Clap Detector Hook](https://github.com/kasusathvikamary/model-regression-detection/blob/main/src/hooks/useClapDetector.ts): `src/hooks/useClapDetector.ts`

### Other components

- **User**
- **Browser Microphone API**

## Connections

- User → Dashboard and Analytics: uses (evidence: `src/App.tsx`)
- Dashboard and Analytics → Model Scene: renders (evidence: `src/App.tsx`)
- Model Scene → Neural Network: renders (evidence: `src/components/3d/ModelScene.tsx`)
- Neural Network → Network Node: renders (evidence: `src/components/3d/NeuralNetwork.tsx`)
- Clap Detection Hook → Browser Microphone API: requests audio (evidence: `src/hooks/useClapDetection.ts`)
- Clap Detector Hook → Browser Microphone API: requests audio (evidence: `src/hooks/useClapDetector.ts`)
