# joch-21/clonebiohub architecture

> Architecture diagram of the GitHub repository joch-21/clonebiohub, 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/joch-21/clonebiohub
- Repository: https://github.com/joch-21/clonebiohub

## Overview

NiahBioHub is a biodiversity and forestry web panel. Users log in, enter the routed application, and reach personnel, specimen-record, mapping, telemetry, and reporting screens. Specimen workflows include record creation, QR display, review, and detail views; personnel workflows include listing and profile editing. The graph shows routes and calls visible in the excerpts. The README gives no additional capability detail, and the backend implementation was not excerpted, so its connections to the UI are left unverified.

Main entry points: [`src/main.jsx`](https://github.com/joch-21/clonebiohub/blob/main/src/main.jsx) (App Routes), [`src/CreateRecord.jsx`](https://github.com/joch-21/clonebiohub/blob/main/src/CreateRecord.jsx) (Create Record), [`src/Login.jsx`](https://github.com/joch-21/clonebiohub/blob/main/src/Login.jsx) (Login), [`src/MainLayout.jsx`](https://github.com/joch-21/clonebiohub/blob/main/src/MainLayout.jsx) (Main Layout)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and Navigation"]
  node_routes["App Routes<br/>[main.jsx]"]
  node_login["Login<br/>[Login.jsx]"]
  node_layout["Main Layout<br/>[MainLayout.jsx]"]
  node_header["User Header<br/>[Header.jsx]"]
end

subgraph group_records["Biodiversity Records"]
  node_create["Create Record<br/>[CreateRecord.jsx]"]
  node_recordslist["Bio Records<br/>[BioRecords.jsx]"]
  node_recorddetail["Record Detail<br/>[ViewRecords.jsx]"]
  node_qr["QR Generator<br/>[QRGenerator.jsx]"]
end

subgraph group_people["Personnel Management"]
  node_personnel["Personnel List<br/>[Personnel.jsx]"]
  node_persondetail["Personnel Detail<br/>[ViewPersonnel.jsx]"]
end

subgraph group_insights["Field Insights"]
  node_dashboard["Dashboard<br/>[Dashboard.jsx]"]
  node_map["Specimen Map<br/>[map.jsx]"]
  node_telemetry["Telemetry<br/>[iot.jsx]"]
  node_reports["Reports<br/>[Reports.jsx]"]
end

node_user(("Panel User"))
node_api{{"HTTP API"}}
node_server["Express Server<br/>[index.js]"]
node_s3[("AWS S3")]

node_user -->|"opens app"| node_routes
node_routes -->|"routes to"| node_login
node_routes -->|"routes through"| node_layout
node_routes -->|"routes to"| node_dashboard
node_routes -->|"routes to"| node_create
node_routes -->|"routes to"| node_recordslist
node_routes -->|"routes to"| node_recorddetail
node_routes -->|"routes to"| node_qr
node_routes -->|"routes to"| node_personnel
node_routes -->|"routes to"| node_persondetail
node_routes -->|"routes to"| node_map
node_routes -->|"routes to"| node_telemetry
node_routes -->|"routes to"| node_reports
node_layout -->|"renders"| node_header
node_login -->|"posts credentials"| node_api
node_personnel -->|"fetches personnel"| node_api
node_persondetail -->|"fetches profile"| node_api
node_map -->|"navigates to"| node_create
node_create -.->|"uploads object"| node_s3
node_api -.->|"may serve requests"| node_server

click node_routes "https://github.com/joch-21/clonebiohub/blob/main/src/main.jsx"
click node_login "https://github.com/joch-21/clonebiohub/blob/main/src/Login.jsx"
click node_layout "https://github.com/joch-21/clonebiohub/blob/main/src/MainLayout.jsx"
click node_header "https://github.com/joch-21/clonebiohub/blob/main/src/Header.jsx"
click node_dashboard "https://github.com/joch-21/clonebiohub/blob/main/src/Dashboard.jsx"
click node_create "https://github.com/joch-21/clonebiohub/blob/main/src/CreateRecord.jsx"
click node_recordslist "https://github.com/joch-21/clonebiohub/blob/main/src/BioRecords.jsx"
click node_recorddetail "https://github.com/joch-21/clonebiohub/blob/main/src/ViewRecords.jsx"
click node_qr "https://github.com/joch-21/clonebiohub/blob/main/src/QRGenerator.jsx"
click node_personnel "https://github.com/joch-21/clonebiohub/blob/main/src/Personnel.jsx"
click node_persondetail "https://github.com/joch-21/clonebiohub/blob/main/src/ViewPersonnel.jsx"
click node_map "https://github.com/joch-21/clonebiohub/blob/main/src/map.jsx"
click node_telemetry "https://github.com/joch-21/clonebiohub/blob/main/src/iot.jsx"
click node_reports "https://github.com/joch-21/clonebiohub/blob/main/src/Reports.jsx"
click node_server "https://github.com/joch-21/clonebiohub/blob/main/server/index.js"

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_routes,node_login,node_layout,node_header,node_user toneBlue
class node_create,node_recordslist,node_recorddetail,node_qr,node_s3 toneAmber
class node_personnel,node_persondetail,node_api,node_server toneMint
class node_dashboard,node_map,node_telemetry,node_reports toneRose
```

## Components

### Access and Navigation

- [App Routes](https://github.com/joch-21/clonebiohub/blob/main/src/main.jsx): `src/main.jsx`
- [Login](https://github.com/joch-21/clonebiohub/blob/main/src/Login.jsx): `src/Login.jsx`
- [Main Layout](https://github.com/joch-21/clonebiohub/blob/main/src/MainLayout.jsx): `src/MainLayout.jsx`
- [User Header](https://github.com/joch-21/clonebiohub/blob/main/src/Header.jsx): `src/Header.jsx`

### Biodiversity Records

- [Create Record](https://github.com/joch-21/clonebiohub/blob/main/src/CreateRecord.jsx): `src/CreateRecord.jsx`
- [Bio Records](https://github.com/joch-21/clonebiohub/blob/main/src/BioRecords.jsx): `src/BioRecords.jsx`
- [Record Detail](https://github.com/joch-21/clonebiohub/blob/main/src/ViewRecords.jsx): `src/ViewRecords.jsx`
- [QR Generator](https://github.com/joch-21/clonebiohub/blob/main/src/QRGenerator.jsx): `src/QRGenerator.jsx`

### Personnel Management

- [Personnel List](https://github.com/joch-21/clonebiohub/blob/main/src/Personnel.jsx): `src/Personnel.jsx`
- [Personnel Detail](https://github.com/joch-21/clonebiohub/blob/main/src/ViewPersonnel.jsx): `src/ViewPersonnel.jsx`

### Field Insights

- [Dashboard](https://github.com/joch-21/clonebiohub/blob/main/src/Dashboard.jsx): `src/Dashboard.jsx`
- [Specimen Map](https://github.com/joch-21/clonebiohub/blob/main/src/map.jsx): `src/map.jsx`
- [Telemetry](https://github.com/joch-21/clonebiohub/blob/main/src/iot.jsx): `src/iot.jsx`
- [Reports](https://github.com/joch-21/clonebiohub/blob/main/src/Reports.jsx): `src/Reports.jsx`

### Other components

- **Panel User**
- **HTTP API**
- [Express Server](https://github.com/joch-21/clonebiohub/blob/main/server/index.js): `server/index.js`
- **AWS S3**

## Connections

- Panel User → App Routes: opens app (evidence: `src/main.jsx`)
- App Routes → Login: routes to (evidence: `src/main.jsx`)
- App Routes → Main Layout: routes through (evidence: `src/main.jsx`)
- App Routes → Dashboard: routes to (evidence: `src/main.jsx`)
- App Routes → Create Record: routes to (evidence: `src/main.jsx`)
- App Routes → Bio Records: routes to (evidence: `src/main.jsx`)
- App Routes → Record Detail: routes to (evidence: `src/main.jsx`)
- App Routes → QR Generator: routes to (evidence: `src/main.jsx`)
- App Routes → Personnel List: routes to (evidence: `src/main.jsx`)
- App Routes → Personnel Detail: routes to (evidence: `src/main.jsx`)
- App Routes → Specimen Map: routes to (evidence: `src/main.jsx`)
- App Routes → Telemetry: routes to (evidence: `src/main.jsx`)
- App Routes → Reports: routes to (evidence: `src/main.jsx`)
- Main Layout → User Header: renders (evidence: `src/MainLayout.jsx`)
- Login → HTTP API: posts credentials (evidence: `src/Login.jsx`)
- Personnel List → HTTP API: fetches personnel (evidence: `src/Personnel.jsx`)
- Personnel Detail → HTTP API: fetches profile (evidence: `src/ViewPersonnel.jsx`)
- Specimen Map → Create Record: navigates to (evidence: `src/map.jsx`)
- Create Record → AWS S3: uploads object
- HTTP API → Express Server: may serve requests
