# robust-computer/web architecture

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

- Interactive diagram: https://gitdiagram.com/robust-computer/web
- Repository: https://github.com/robust-computer/web

## Overview

Robust Computer is a marketing website backed by an Express/MongoDB API. The main visitor workflow is browsing localized pages and Field Notes, then submitting contact, bug-report, or newsletter forms; server routes validate requests, persist records where applicable, and send email. The map also includes newsletter unsubscribe and broadcast capabilities documented in the sampled routes and README. Several page implementations and integrations were not sampled, so only documented or indexed relationships are shown.

Main entry points: [`server/src/utils/email.js`](https://github.com/robust-computer/web/blob/main/server/src/utils/email.js) (Email dispatcher), [`server/src/routes/newsletter.js`](https://github.com/robust-computer/web/blob/main/server/src/routes/newsletter.js) (Newsletter endpoints), [`landing/src/App.jsx`](https://github.com/robust-computer/web/blob/main/landing/src/App.jsx) (Route dispatcher), [`server/src/index.js`](https://github.com/robust-computer/web/blob/main/server/src/index.js) (API application)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Marketing site"]
  node_app["Route dispatcher<br/>[App.jsx]"]
  node_locale["Locale provider<br/>[LocaleContext.jsx]"]
  node_translations["Language dictionaries"]
  node_marketing["Marketing pages"]
  node_site_sections["Page sections"]
  node_news["Field Notes<br/>[News.jsx]"]
  node_post["Issue detail<br/>[Post.jsx]"]
  node_feed["Issue feed data<br/>[feed.js]"]
end

subgraph group_engagement["Visitor interactions"]
  node_api_client["API client<br/>[api.js]"]
  node_contact_form["Contact form<br/>[useContactForm.js]"]
  node_newsletter_form["Newsletter form"]
  node_bug_form["Bug report form"]
  node_unsubscribe["Unsubscribe flow<br/>[useUnsubscribe.js]"]
end

subgraph group_api["API services"]
  node_server["API application<br/>[index.js]"]
  node_contact_route["Contact endpoint<br/>[contact.js]"]
  node_bug_route["Bug report endpoint<br/>[bugReport.js]"]
  node_newsletter_route["Newsletter endpoints<br/>[newsletter.js]"]
  node_rate_limits["Rate limiting<br/>[rateLimit.js]"]
  node_enquiries[("Enquiry records<br/>[Enquiry.js]")]
  node_bug_reports[("Bug report records<br/>[BugReport.js]")]
  node_subscribers[("Subscriber records<br/>[Subscriber.js]")]
end

subgraph group_messaging["Email delivery"]
  node_email_dispatch["Email dispatcher<br/>[email.js]"]
  node_email_templates["Email templates"]
  node_broadcast["Issue broadcast"]
end

node_visitor(("Site visitor"))
node_mail_provider["Mail provider"]

node_visitor -->|"opens site"| node_app
node_app -->|"routes to"| node_marketing
node_app -->|"routes to"| node_news
node_app -->|"routes to"| node_post
node_locale -->|"loads dictionaries"| node_translations
node_marketing -.->|"composes sections"| node_site_sections
node_news -.->|"reads issue data"| node_feed
node_post -.->|"reads issue data"| node_feed
node_contact_form -->|"submits through"| node_api_client
node_newsletter_form -->|"submits through"| node_api_client
node_unsubscribe -->|"submits through"| node_api_client
node_api_client -.->|"calls API"| node_server
node_server -->|"mounts route"| node_contact_route
node_server -->|"mounts route"| node_bug_route
node_server -->|"mounts route"| node_newsletter_route
node_contact_route -->|"uses limiter"| node_rate_limits
node_bug_route -->|"uses limiter"| node_rate_limits
node_newsletter_route -->|"uses limiter"| node_rate_limits
node_contact_route -->|"writes records"| node_enquiries
node_bug_route -->|"writes records"| node_bug_reports
node_newsletter_route -->|"manages subscribers"| node_subscribers
node_contact_route -->|"sends notification"| node_email_dispatch
node_bug_route -->|"sends notification"| node_email_dispatch
node_newsletter_route -->|"sends confirmation"| node_email_dispatch
node_email_dispatch -->|"renders messages"| node_email_templates
node_email_dispatch -->|"delivers email"| node_mail_provider
node_newsletter_route -->|"starts broadcast"| node_broadcast
node_broadcast -->|"reads recipients"| node_subscribers
node_broadcast -->|"sends issue mail"| node_email_dispatch

click node_app "https://github.com/robust-computer/web/blob/main/landing/src/App.jsx"
click node_locale "https://github.com/robust-computer/web/blob/main/landing/src/context/LocaleContext.jsx"
click node_translations "https://github.com/robust-computer/web/tree/main/landing/src/i18n"
click node_marketing "https://github.com/robust-computer/web/tree/main/landing/src/pages"
click node_site_sections "https://github.com/robust-computer/web/tree/main/landing/src/components/sections"
click node_news "https://github.com/robust-computer/web/blob/main/landing/src/pages/News.jsx"
click node_post "https://github.com/robust-computer/web/blob/main/landing/src/pages/Post.jsx"
click node_feed "https://github.com/robust-computer/web/blob/main/landing/src/data/feed.js"
click node_api_client "https://github.com/robust-computer/web/blob/main/landing/src/api.js"
click node_contact_form "https://github.com/robust-computer/web/blob/main/landing/src/hooks/useContactForm.js"
click node_newsletter_form "https://github.com/robust-computer/web/blob/main/landing/src/hooks/useNewsletterForm.js"
click node_bug_form "https://github.com/robust-computer/web/blob/main/landing/src/hooks/useBugReportForm.js"
click node_unsubscribe "https://github.com/robust-computer/web/blob/main/landing/src/hooks/useUnsubscribe.js"
click node_server "https://github.com/robust-computer/web/blob/main/server/src/index.js"
click node_contact_route "https://github.com/robust-computer/web/blob/main/server/src/routes/contact.js"
click node_bug_route "https://github.com/robust-computer/web/blob/main/server/src/routes/bugReport.js"
click node_newsletter_route "https://github.com/robust-computer/web/blob/main/server/src/routes/newsletter.js"
click node_rate_limits "https://github.com/robust-computer/web/blob/main/server/src/middleware/rateLimit.js"
click node_enquiries "https://github.com/robust-computer/web/blob/main/server/src/models/Enquiry.js"
click node_bug_reports "https://github.com/robust-computer/web/blob/main/server/src/models/BugReport.js"
click node_subscribers "https://github.com/robust-computer/web/blob/main/server/src/models/Subscriber.js"
click node_email_dispatch "https://github.com/robust-computer/web/blob/main/server/src/utils/email.js"
click node_email_templates "https://github.com/robust-computer/web/tree/main/server/src/utils/email"
click node_broadcast "https://github.com/robust-computer/web/blob/main/server/src/utils/newsletterBroadcast.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_app,node_locale,node_translations,node_marketing,node_site_sections,node_news,node_post,node_feed toneBlue
class node_api_client,node_contact_form,node_newsletter_form,node_bug_form,node_unsubscribe toneAmber
class node_server,node_contact_route,node_bug_route,node_newsletter_route,node_rate_limits,node_enquiries,node_bug_reports,node_subscribers toneMint
class node_email_dispatch,node_email_templates,node_broadcast toneRose
class node_visitor,node_mail_provider toneIndigo
```

## Components

### Marketing site

- [Route dispatcher](https://github.com/robust-computer/web/blob/main/landing/src/App.jsx): `landing/src/App.jsx`
- [Locale provider](https://github.com/robust-computer/web/blob/main/landing/src/context/LocaleContext.jsx): `landing/src/context/LocaleContext.jsx`
- [Language dictionaries](https://github.com/robust-computer/web/tree/main/landing/src/i18n): `landing/src/i18n`
- [Marketing pages](https://github.com/robust-computer/web/tree/main/landing/src/pages): `landing/src/pages`
- [Page sections](https://github.com/robust-computer/web/tree/main/landing/src/components/sections): `landing/src/components/sections`
- [Field Notes](https://github.com/robust-computer/web/blob/main/landing/src/pages/News.jsx): `landing/src/pages/News.jsx`
- [Issue detail](https://github.com/robust-computer/web/blob/main/landing/src/pages/Post.jsx): `landing/src/pages/Post.jsx`
- [Issue feed data](https://github.com/robust-computer/web/blob/main/landing/src/data/feed.js): `landing/src/data/feed.js`

### Visitor interactions

- [API client](https://github.com/robust-computer/web/blob/main/landing/src/api.js): `landing/src/api.js`
- [Contact form](https://github.com/robust-computer/web/blob/main/landing/src/hooks/useContactForm.js): `landing/src/hooks/useContactForm.js`
- [Newsletter form](https://github.com/robust-computer/web/blob/main/landing/src/hooks/useNewsletterForm.js): `landing/src/hooks/useNewsletterForm.js`
- [Bug report form](https://github.com/robust-computer/web/blob/main/landing/src/hooks/useBugReportForm.js): `landing/src/hooks/useBugReportForm.js`
- [Unsubscribe flow](https://github.com/robust-computer/web/blob/main/landing/src/hooks/useUnsubscribe.js): `landing/src/hooks/useUnsubscribe.js`

### API services

- [API application](https://github.com/robust-computer/web/blob/main/server/src/index.js): `server/src/index.js`
- [Contact endpoint](https://github.com/robust-computer/web/blob/main/server/src/routes/contact.js): `server/src/routes/contact.js`
- [Bug report endpoint](https://github.com/robust-computer/web/blob/main/server/src/routes/bugReport.js): `server/src/routes/bugReport.js`
- [Newsletter endpoints](https://github.com/robust-computer/web/blob/main/server/src/routes/newsletter.js): `server/src/routes/newsletter.js`
- [Rate limiting](https://github.com/robust-computer/web/blob/main/server/src/middleware/rateLimit.js): `server/src/middleware/rateLimit.js`
- [Enquiry records](https://github.com/robust-computer/web/blob/main/server/src/models/Enquiry.js): `server/src/models/Enquiry.js`
- [Bug report records](https://github.com/robust-computer/web/blob/main/server/src/models/BugReport.js): `server/src/models/BugReport.js`
- [Subscriber records](https://github.com/robust-computer/web/blob/main/server/src/models/Subscriber.js): `server/src/models/Subscriber.js`

### Email delivery

- [Email dispatcher](https://github.com/robust-computer/web/blob/main/server/src/utils/email.js): `server/src/utils/email.js`
- [Email templates](https://github.com/robust-computer/web/tree/main/server/src/utils/email): `server/src/utils/email`
- [Issue broadcast](https://github.com/robust-computer/web/blob/main/server/src/utils/newsletterBroadcast.js): `server/src/utils/newsletterBroadcast.js`

### Other components

- **Site visitor**
- **Mail provider**

## Connections

- Site visitor → Route dispatcher: opens site
- Route dispatcher → Marketing pages: routes to (evidence: `landing/src/App.jsx`)
- Route dispatcher → Field Notes: routes to (evidence: `landing/src/App.jsx`)
- Route dispatcher → Issue detail: routes to (evidence: `landing/src/App.jsx`)
- Locale provider → Language dictionaries: loads dictionaries (evidence: `landing/src/context/LocaleContext.jsx`)
- Marketing pages → Page sections: composes sections (evidence: `README.md`)
- Field Notes → Issue feed data: reads issue data (evidence: `README.md`)
- Issue detail → Issue feed data: reads issue data (evidence: `README.md`)
- Contact form → API client: submits through (evidence: `landing/src/hooks/useContactForm.js`)
- Newsletter form → API client: submits through (evidence: `landing/src/hooks/useNewsletterForm.js`)
- Unsubscribe flow → API client: submits through (evidence: `landing/src/hooks/useUnsubscribe.js`)
- API client → API application: calls API
- API application → Contact endpoint: mounts route (evidence: `server/src/index.js`)
- API application → Bug report endpoint: mounts route (evidence: `server/src/index.js`)
- API application → Newsletter endpoints: mounts route (evidence: `server/src/index.js`)
- Contact endpoint → Rate limiting: uses limiter (evidence: `server/src/routes/contact.js`)
- Bug report endpoint → Rate limiting: uses limiter (evidence: `server/src/routes/bugReport.js`)
- Newsletter endpoints → Rate limiting: uses limiter (evidence: `server/src/routes/newsletter.js`)
- Contact endpoint → Enquiry records: writes records (evidence: `server/src/routes/contact.js`)
- Bug report endpoint → Bug report records: writes records (evidence: `server/src/routes/bugReport.js`)
- Newsletter endpoints → Subscriber records: manages subscribers (evidence: `server/src/routes/newsletter.js`)
- Contact endpoint → Email dispatcher: sends notification (evidence: `server/src/routes/contact.js`)
- Bug report endpoint → Email dispatcher: sends notification (evidence: `server/src/routes/bugReport.js`)
- Newsletter endpoints → Email dispatcher: sends confirmation (evidence: `server/src/routes/newsletter.js`)
- Email dispatcher → Email templates: renders messages (evidence: `server/src/utils/email.js`)
- Email dispatcher → Mail provider: delivers email (evidence: `server/src/utils/email.js`)
- Newsletter endpoints → Issue broadcast: starts broadcast (evidence: `server/src/routes/newsletter.js`)
- Issue broadcast → Subscriber records: reads recipients (evidence: `server/src/utils/newsletterBroadcast.js`)
- Issue broadcast → Email dispatcher: sends issue mail (evidence: `server/src/utils/newsletterBroadcast.js`)
