# sarathi377/fishid architecture

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

- Interactive diagram: https://gitdiagram.com/sarathi377/fishid
- Repository: https://github.com/sarathi377/fishid

## Overview

FishID is a browser-based marine assistant. Users enter through the React app, authenticate, then use its fish-identification workflow and other marine-information features. The README documents shop discovery, multilingual chat, an encyclopedia, and Coast Guard information; these capabilities appear to be implemented within the main app, but their internal calls are not established by the sampled excerpts. The identification result is displayed by a dedicated dashboard. Evidence is limited to the README and sampled files, so undocumented service and feature wiring is omitted.

Main entry points: [`src/App.tsx`](https://github.com/sarathi377/fishid/blob/main/src/App.tsx) (FishID App), [`src/components/About.tsx`](https://github.com/sarathi377/fishid/blob/main/src/components/About.tsx) (Welcome Screen), [`src/main.tsx`](https://github.com/sarathi377/fishid/blob/main/src/main.tsx) (React Bootstrap), [`src/components/Auth.tsx`](https://github.com/sarathi377/fishid/blob/main/src/components/Auth.tsx) (Local Auth)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App Entry"]
  node_entrypoint["React Bootstrap<br/>[main.tsx]"]
  node_app["FishID App<br/>[App.tsx]"]
end

subgraph group_identity["Identity and Analysis"]
  node_about["Welcome Screen<br/>[About.tsx]"]
  node_auth["Local Auth<br/>[Auth.tsx]"]
  node_analysis["Fish Analysis<br/>[App.tsx]"]
  node_result["Analysis Dashboard"]
  node_cnninfo["CNN Overview<br/>[CNNModel.tsx]"]
  node_types["Domain Types<br/>[types.ts]"]
end

subgraph group_marine["Marine Features"]
  node_shops["Shop Finder<br/>[App.tsx]"]
  node_chat["Multilingual Chat<br/>[App.tsx]"]
  node_encyclopedia["Fish Encyclopedia<br/>[App.tsx]"]
  node_safety["Weather and Coast Guard<br/>[App.tsx]"]
end

node_angler(("User"))

node_angler -->|"opens"| node_entrypoint
node_entrypoint -->|"renders"| node_app
node_app -->|"shows"| node_about
node_about -->|"renders"| node_auth
node_about -->|"renders"| node_cnninfo
node_app -->|"provides"| node_analysis
node_app -->|"renders"| node_result
node_app -->|"uses"| node_types
node_app -->|"provides"| node_shops
node_app -->|"provides"| node_chat
node_app -->|"provides"| node_encyclopedia
node_app -->|"provides"| node_safety

click node_entrypoint "https://github.com/sarathi377/fishid/blob/main/src/main.tsx"
click node_app "https://github.com/sarathi377/fishid/blob/main/src/App.tsx"
click node_about "https://github.com/sarathi377/fishid/blob/main/src/components/About.tsx"
click node_auth "https://github.com/sarathi377/fishid/blob/main/src/components/Auth.tsx"
click node_analysis "https://github.com/sarathi377/fishid/blob/main/src/App.tsx"
click node_result "https://github.com/sarathi377/fishid/blob/main/src/components/FishAnalysisDashboard.tsx"
click node_cnninfo "https://github.com/sarathi377/fishid/blob/main/src/components/AI/CNNModel.tsx"
click node_types "https://github.com/sarathi377/fishid/blob/main/src/types.ts"
click node_shops "https://github.com/sarathi377/fishid/blob/main/src/App.tsx"
click node_chat "https://github.com/sarathi377/fishid/blob/main/src/App.tsx"
click node_encyclopedia "https://github.com/sarathi377/fishid/blob/main/src/App.tsx"
click node_safety "https://github.com/sarathi377/fishid/blob/main/src/App.tsx"

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_entrypoint,node_app,node_angler toneBlue
class node_about,node_auth,node_analysis,node_result,node_cnninfo,node_types toneAmber
class node_shops,node_chat,node_encyclopedia,node_safety toneMint
```

## Components

### App Entry

- [React Bootstrap](https://github.com/sarathi377/fishid/blob/main/src/main.tsx): `src/main.tsx`
- [FishID App](https://github.com/sarathi377/fishid/blob/main/src/App.tsx): `src/App.tsx`

### Identity and Analysis

- [Welcome Screen](https://github.com/sarathi377/fishid/blob/main/src/components/About.tsx): `src/components/About.tsx`
- [Local Auth](https://github.com/sarathi377/fishid/blob/main/src/components/Auth.tsx): `src/components/Auth.tsx`
- [Fish Analysis](https://github.com/sarathi377/fishid/blob/main/src/App.tsx): `src/App.tsx`
- [Analysis Dashboard](https://github.com/sarathi377/fishid/blob/main/src/components/FishAnalysisDashboard.tsx): `src/components/FishAnalysisDashboard.tsx`
- [CNN Overview](https://github.com/sarathi377/fishid/blob/main/src/components/AI/CNNModel.tsx): `src/components/AI/CNNModel.tsx`
- [Domain Types](https://github.com/sarathi377/fishid/blob/main/src/types.ts): `src/types.ts`

### Marine Features

- [Shop Finder](https://github.com/sarathi377/fishid/blob/main/src/App.tsx): `src/App.tsx`
- [Multilingual Chat](https://github.com/sarathi377/fishid/blob/main/src/App.tsx): `src/App.tsx`
- [Fish Encyclopedia](https://github.com/sarathi377/fishid/blob/main/src/App.tsx): `src/App.tsx`
- [Weather and Coast Guard](https://github.com/sarathi377/fishid/blob/main/src/App.tsx): `src/App.tsx`

### Other components

- **User**

## Connections

- User → React Bootstrap: opens (evidence: `README.md`)
- React Bootstrap → FishID App: renders (evidence: `src/main.tsx`)
- FishID App → Welcome Screen: shows (evidence: `src/App.tsx`)
- Welcome Screen → Local Auth: renders (evidence: `src/components/About.tsx`)
- Welcome Screen → CNN Overview: renders (evidence: `src/components/About.tsx`)
- FishID App → Fish Analysis: provides (evidence: `README.md`)
- FishID App → Analysis Dashboard: renders (evidence: `src/App.tsx`)
- FishID App → Domain Types: uses (evidence: `src/App.tsx`)
- FishID App → Shop Finder: provides (evidence: `README.md`)
- FishID App → Multilingual Chat: provides (evidence: `README.md`)
- FishID App → Fish Encyclopedia: provides (evidence: `README.md`)
- FishID App → Weather and Coast Guard: provides (evidence: `README.md`)
