# nmathunderclaw/thunderclaw architecture

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

- Interactive diagram: https://gitdiagram.com/nmathunderclaw/thunderclaw
- Repository: https://github.com/nmathunderclaw/thunderclaw

## Overview

NMA Thunderclaw’s website introduces the FTC team and shares its history, community resources, and sponsor information. The documented visitor journey is from the site to its Home, About, Seasons, Resources, Sponsors, and contact content. The repository also includes a browser simulator and a visit-tracking API; the API accepts page-view or simulator-open events and writes visit records to Supabase. The excerpts show the tracking write, but not the website code that invokes it or how the simulator is wired into the site, so those links are omitted.

Main entry points: [`thunderweb/index.html`](https://github.com/nmathunderclaw/thunderclaw/blob/main/thunderweb/index.html) (Team website), [`thunderweb/api/track.js`](https://github.com/nmathunderclaw/thunderclaw/blob/main/thunderweb/api/track.js) (Visit tracking API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Team website"]
  node_website["Team website<br/>[index.html]"]
  node_home["Home highlights<br/>[index.html]"]
  node_about["Team and mentors<br/>[index.html]"]
  node_seasons["Season archive<br/>[index.html]"]
  node_resources["Guides and articles<br/>[index.html]"]
  node_sponsors["Sponsors<br/>[index.html]"]
  node_contact["Contact and social<br/>[index.html]"]
end

subgraph group_simulator["Robot simulator"]
  node_simulator_ui["Simulator interface<br/>[sim-section.html]"]
  node_simulator_runtime["Simulator runtime<br/>[sim.js]"]
end

subgraph group_analytics["Visit analytics"]
  node_tracking_api["Visit tracking API<br/>[track.js]"]
  node_supabase[("Supabase visits")]
end

node_visitor(("Site visitor"))

node_visitor -->|"visits"| node_website
node_website -->|"presents"| node_home
node_website -->|"presents"| node_about
node_website -->|"presents"| node_seasons
node_website -->|"presents"| node_resources
node_website -->|"presents"| node_sponsors
node_website -->|"provides"| node_contact
node_visitor -->|"POST events"| node_tracking_api
node_tracking_api -->|"writes visits"| node_supabase

click node_website "https://github.com/nmathunderclaw/thunderclaw/blob/main/thunderweb/index.html"
click node_home "https://github.com/nmathunderclaw/thunderclaw/blob/main/thunderweb/index.html"
click node_about "https://github.com/nmathunderclaw/thunderclaw/blob/main/thunderweb/index.html"
click node_seasons "https://github.com/nmathunderclaw/thunderclaw/blob/main/thunderweb/index.html"
click node_resources "https://github.com/nmathunderclaw/thunderclaw/blob/main/thunderweb/index.html"
click node_sponsors "https://github.com/nmathunderclaw/thunderclaw/blob/main/thunderweb/index.html"
click node_contact "https://github.com/nmathunderclaw/thunderclaw/blob/main/thunderweb/index.html"
click node_simulator_ui "https://github.com/nmathunderclaw/thunderclaw/blob/main/thunderweb/build/sim-section.html"
click node_simulator_runtime "https://github.com/nmathunderclaw/thunderclaw/blob/main/thunderweb/build/sim.js"
click node_tracking_api "https://github.com/nmathunderclaw/thunderclaw/blob/main/thunderweb/api/track.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_website,node_home,node_about,node_seasons,node_resources,node_sponsors,node_contact toneBlue
class node_simulator_ui,node_simulator_runtime toneAmber
class node_tracking_api,node_supabase toneMint
class node_visitor toneIndigo
```

## Components

### Team website

- [Team website](https://github.com/nmathunderclaw/thunderclaw/blob/main/thunderweb/index.html): `thunderweb/index.html`
- [Home highlights](https://github.com/nmathunderclaw/thunderclaw/blob/main/thunderweb/index.html): `thunderweb/index.html`
- [Team and mentors](https://github.com/nmathunderclaw/thunderclaw/blob/main/thunderweb/index.html): `thunderweb/index.html`
- [Season archive](https://github.com/nmathunderclaw/thunderclaw/blob/main/thunderweb/index.html): `thunderweb/index.html`
- [Guides and articles](https://github.com/nmathunderclaw/thunderclaw/blob/main/thunderweb/index.html): `thunderweb/index.html`
- [Sponsors](https://github.com/nmathunderclaw/thunderclaw/blob/main/thunderweb/index.html): `thunderweb/index.html`
- [Contact and social](https://github.com/nmathunderclaw/thunderclaw/blob/main/thunderweb/index.html): `thunderweb/index.html`

### Robot simulator

- [Simulator interface](https://github.com/nmathunderclaw/thunderclaw/blob/main/thunderweb/build/sim-section.html): `thunderweb/build/sim-section.html`
- [Simulator runtime](https://github.com/nmathunderclaw/thunderclaw/blob/main/thunderweb/build/sim.js): `thunderweb/build/sim.js`

### Visit analytics

- [Visit tracking API](https://github.com/nmathunderclaw/thunderclaw/blob/main/thunderweb/api/track.js): `thunderweb/api/track.js`
- **Supabase visits**

### Other components

- **Site visitor**

## Connections

- Site visitor → Team website: visits (evidence: `README.md`)
- Team website → Home highlights: presents (evidence: `README.md`)
- Team website → Team and mentors: presents (evidence: `README.md`)
- Team website → Season archive: presents (evidence: `README.md`)
- Team website → Guides and articles: presents (evidence: `README.md`)
- Team website → Sponsors: presents (evidence: `README.md`)
- Team website → Contact and social: provides (evidence: `README.md`)
- Site visitor → Visit tracking API: POST events (evidence: `thunderweb/api/track.js`)
- Visit tracking API → Supabase visits: writes visits (evidence: `thunderweb/api/track.js`)
