# anurag-chevendra/cohen-web architecture

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

- Interactive diagram: https://gitdiagram.com/anurag-chevendra/cohen-web
- Repository: https://github.com/anurag-chevendra/cohen-web

## Overview

Cohen-Web is Cohen’s public-facing website. A visitor explores product and capability pages, reviews pricing or API guidance, and can submit a contact inquiry. Browser-side scripts add shared navigation and page interactions, including API-example copying and an interactive Mantis dependency-graph example. The excerpts show only parts of the shared script and do not establish how every page is wired, so uncertain page-to-script links are omitted.

Main entry points: [`api.js`](https://github.com/anurag-chevendra/cohen-web/blob/main/api.js) (API page controls), [`app.js`](https://github.com/anurag-chevendra/cohen-web/blob/main/app.js) (Shared page UI), [`index.html`](https://github.com/anurag-chevendra/cohen-web/blob/main/index.html) (Landing page), [`blog.html`](https://github.com/anurag-chevendra/cohen-web/blob/main/blog.html) (Blog)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public pages"]
  node_landing["Landing page<br/>[index.html]"]
  node_blog["Blog<br/>[blog.html]"]
  node_contact["Contact page<br/>[contact.html]"]
end

subgraph group_product["Product information"]
  node_pricing["Pricing page<br/>[pricing.html]"]
  node_api_docs["API guide<br/>[api.html]"]
  node_api_markdown["API Markdown<br/>[api.md]"]
  node_mantis_page["Mantis page<br/>[mantis.html]"]
  node_observability["Observability page<br/>[observability.html]"]
  node_observatory["Observatory page<br/>[observatory.html]"]
  node_method["Method page<br/>[method.html]"]
end

subgraph group_browser["Browser interactions"]
  node_shared_ui["Shared page UI<br/>[app.js]"]
  node_api_ui["API page controls<br/>[api.js]"]
  node_mantis_graph["Dependency graph<br/>[mantis.js]"]
end

node_visitor(("Visitor"))
node_contact_service{{"Contact endpoint"}}
node_clipboard["Browser clipboard"]

node_visitor -->|"visits"| node_landing
node_visitor -->|"visits"| node_blog
node_visitor -->|"visits"| node_contact
node_visitor -->|"visits"| node_pricing
node_visitor -->|"visits"| node_api_docs
node_visitor -->|"visits"| node_mantis_page
node_visitor -->|"visits"| node_observability
node_visitor -->|"visits"| node_observatory
node_visitor -->|"visits"| node_method
node_api_ui -->|"fetches"| node_api_markdown
node_api_ui -->|"copies text"| node_clipboard
node_shared_ui -->|"submits inquiry"| node_contact_service
node_visitor -->|"traces package"| node_mantis_graph

click node_landing "https://github.com/anurag-chevendra/cohen-web/blob/main/index.html"
click node_blog "https://github.com/anurag-chevendra/cohen-web/blob/main/blog.html"
click node_contact "https://github.com/anurag-chevendra/cohen-web/blob/main/contact.html"
click node_pricing "https://github.com/anurag-chevendra/cohen-web/blob/main/pricing.html"
click node_api_docs "https://github.com/anurag-chevendra/cohen-web/blob/main/api.html"
click node_api_markdown "https://github.com/anurag-chevendra/cohen-web/blob/main/api.md"
click node_mantis_page "https://github.com/anurag-chevendra/cohen-web/blob/main/mantis.html"
click node_observability "https://github.com/anurag-chevendra/cohen-web/blob/main/observability.html"
click node_observatory "https://github.com/anurag-chevendra/cohen-web/blob/main/observatory.html"
click node_method "https://github.com/anurag-chevendra/cohen-web/blob/main/method.html"
click node_shared_ui "https://github.com/anurag-chevendra/cohen-web/blob/main/app.js"
click node_api_ui "https://github.com/anurag-chevendra/cohen-web/blob/main/api.js"
click node_mantis_graph "https://github.com/anurag-chevendra/cohen-web/blob/main/mantis.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_landing,node_blog,node_contact,node_clipboard toneBlue
class node_pricing,node_api_docs,node_api_markdown,node_mantis_page,node_observability,node_observatory,node_method toneAmber
class node_shared_ui,node_api_ui,node_mantis_graph toneMint
class node_visitor,node_contact_service toneIndigo
```

## Components

### Public pages

- [Landing page](https://github.com/anurag-chevendra/cohen-web/blob/main/index.html): `index.html`
- [Blog](https://github.com/anurag-chevendra/cohen-web/blob/main/blog.html): `blog.html`
- [Contact page](https://github.com/anurag-chevendra/cohen-web/blob/main/contact.html): `contact.html`

### Product information

- [Pricing page](https://github.com/anurag-chevendra/cohen-web/blob/main/pricing.html): `pricing.html`
- [API guide](https://github.com/anurag-chevendra/cohen-web/blob/main/api.html): `api.html`
- [API Markdown](https://github.com/anurag-chevendra/cohen-web/blob/main/api.md): `api.md`
- [Mantis page](https://github.com/anurag-chevendra/cohen-web/blob/main/mantis.html): `mantis.html`
- [Observability page](https://github.com/anurag-chevendra/cohen-web/blob/main/observability.html): `observability.html`
- [Observatory page](https://github.com/anurag-chevendra/cohen-web/blob/main/observatory.html): `observatory.html`
- [Method page](https://github.com/anurag-chevendra/cohen-web/blob/main/method.html): `method.html`

### Browser interactions

- [Shared page UI](https://github.com/anurag-chevendra/cohen-web/blob/main/app.js): `app.js`
- [API page controls](https://github.com/anurag-chevendra/cohen-web/blob/main/api.js): `api.js`
- [Dependency graph](https://github.com/anurag-chevendra/cohen-web/blob/main/mantis.js): `mantis.js`

### Other components

- **Visitor**
- **Contact endpoint**
- **Browser clipboard**

## Connections

- Visitor → Landing page: visits (evidence: `README.md`)
- Visitor → Blog: visits (evidence: `README.md`)
- Visitor → Contact page: visits (evidence: `README.md`)
- Visitor → Pricing page: visits (evidence: `README.md`)
- Visitor → API guide: visits (evidence: `README.md`)
- Visitor → Mantis page: visits (evidence: `README.md`)
- Visitor → Observability page: visits (evidence: `README.md`)
- Visitor → Observatory page: visits (evidence: `README.md`)
- Visitor → Method page: visits (evidence: `README.md`)
- API page controls → API Markdown: fetches (evidence: `api.js`)
- API page controls → Browser clipboard: copies text (evidence: `api.js`)
- Shared page UI → Contact endpoint: submits inquiry (evidence: `app.js`)
- Visitor → Dependency graph: traces package (evidence: `mantis.js`)
