# mystyc22/pptt architecture

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

- Interactive diagram: https://gitdiagram.com/mystyc22/pptt
- Repository: https://github.com/mystyc22/pptt
- Video tour (about a minute): https://gitdiagram.com/mystyc22/pptt/video

## Overview

This repository appears to be a PPTT Network marketing and inquiry site: it presents a parcel-delivery mesh model and provides a lead-submission endpoint. The sampled sources show a browser-side mesh simulator and lead-form submission, plus an animated investor-facing scaling section. The landing page’s composition and the simulator’s initialization are not shown, so those connections are omitted; the README is a generic Astro starter guide rather than product documentation.

Main entry points: [`src/pages/api/lead.ts`](https://github.com/mystyc22/pptt/blob/main/src/pages/api/lead.ts) (Lead API), [`src/scripts/mesh-hero.ts`](https://github.com/mystyc22/pptt/blob/main/src/scripts/mesh-hero.ts) (Interactive mesh simulator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Site experience"]
  node_landing["Landing page<br/>[index.astro]"]
  node_investor["Scaling presentation<br/>[InvestorMotion.tsx]"]
end

subgraph group_simulation["Mesh simulation"]
  node_mesh["Interactive mesh simulator<br/>[mesh-hero.ts]"]
end

subgraph group_leads["Lead intake"]
  node_leadroute["Lead API<br/>[lead.ts]"]
  node_resend["Resend email service"]
  node_formsubmit["FormSubmit relay"]
end

node_visitor(("Site visitor"))

node_mesh -->|"posts leads"| node_leadroute
node_leadroute -->|"sends email"| node_resend
node_leadroute -.->|"fallback relay"| node_formsubmit

click node_landing "https://github.com/mystyc22/pptt/blob/main/src/pages/index.astro"
click node_investor "https://github.com/mystyc22/pptt/blob/main/src/components/InvestorMotion.tsx"
click node_mesh "https://github.com/mystyc22/pptt/blob/main/src/scripts/mesh-hero.ts"
click node_leadroute "https://github.com/mystyc22/pptt/blob/main/src/pages/api/lead.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_landing,node_investor toneBlue
class node_mesh toneAmber
class node_leadroute,node_resend,node_formsubmit toneMint
class node_visitor toneIndigo
```

## Components

### Site experience

- [Landing page](https://github.com/mystyc22/pptt/blob/main/src/pages/index.astro): `src/pages/index.astro`
- [Scaling presentation](https://github.com/mystyc22/pptt/blob/main/src/components/InvestorMotion.tsx): `src/components/InvestorMotion.tsx`

### Mesh simulation

- [Interactive mesh simulator](https://github.com/mystyc22/pptt/blob/main/src/scripts/mesh-hero.ts): `src/scripts/mesh-hero.ts`

### Lead intake

- [Lead API](https://github.com/mystyc22/pptt/blob/main/src/pages/api/lead.ts): `src/pages/api/lead.ts`
- **Resend email service**
- **FormSubmit relay**

### Other components

- **Site visitor**

## Connections

- Interactive mesh simulator → Lead API: posts leads (evidence: `src/scripts/mesh-hero.ts`)
- Lead API → Resend email service: sends email (evidence: `src/pages/api/lead.ts`)
- Lead API → FormSubmit relay: fallback relay (evidence: `src/pages/api/lead.ts`)
