# lissy93/web-check architecture

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

- Interactive diagram: https://gitdiagram.com/lissy93/web-check
- Repository: https://github.com/lissy93/web-check

## Overview

Web-Check is an on-demand website intelligence scanner: a user supplies a target, the UI presents check results, and the backend exposes individual checks as API routes. Its documented coverage spans security, SEO, server, domain, email, and performance; the checks catalog and client analysis rules help organize and interpret that breadth. The excerpts show server route registration, shared request validation, and selected API behavior, but not the full scan orchestration or most check implementations, so those links are kept broad or omitted.

Main entry points: [`server.js`](https://github.com/lissy93/web-check/blob/master/server.js) (API server), [`src/data/checks/index.ts`](https://github.com/lissy93/web-check/blob/master/src/data/checks/index.ts) (Check catalog), [`src/client/views/Results.tsx`](https://github.com/lissy93/web-check/blob/master/src/client/views/Results.tsx) (Results view), [`api/trackers.js`](https://github.com/lissy93/web-check/blob/master/api/trackers.js) (Tracker scan)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User Experience"]
  node_client_app["Web interface<br/>[App.tsx]"]
  node_results_view["Results view<br/>[Results.tsx]"]
  node_jobs_hook["Job handling<br/>[useJobs.ts]"]
end

subgraph group_catalog["Check Catalog"]
  node_check_catalog["Check catalog<br/>[index.ts]"]
  node_categories["Check categories<br/>[categories.ts]"]
  node_check_metadata["Check descriptions"]
end

subgraph group_api["Scan API"]
  node_api_server["API server<br/>[server.js]"]
  node_domain_checks["Domain checks<br/>[dns.js]"]
  node_security_checks["Security checks<br/>[http-security.js]"]
  node_server_checks["Server checks<br/>[ports.js]"]
  node_performance_checks["Performance checks<br/>[quality.js]"]
  node_social_presence["Social presence<br/>[social-presence.js]"]
  node_tracker_scan["Tracker scan<br/>[trackers.js]"]
  node_mixed_scan["Mixed content<br/>[mixed-content.js]"]
end

subgraph group_shared["API Foundations"]
  node_middleware["Request middleware<br/>[middleware.js]"]
  node_skip_rules["Scan skip rules<br/>[check-skipper.js]"]
  node_target_parser["Target parsing<br/>[parse-target.js]"]
  node_http_client["HTTP client<br/>[http.js]"]
  node_browser_runner["Browser runner<br/>[browser.js]"]
end

subgraph group_interpret["Result Interpretation"]
  node_analysis_registry["Analysis registry<br/>[registry.ts]"]
  node_analysis_rules["Analysis rules"]
  node_glossary["Security glossary<br/>[glossary.ts]"]
end

node_user(("Website auditor"))

node_user -->|"opens scanner"| node_client_app
node_client_app -->|"routes to"| node_results_view
node_results_view -->|"uses checks"| node_check_catalog
node_results_view -->|"uses categories"| node_categories
node_api_server -->|"registers routes"| node_domain_checks
node_api_server -->|"registers routes"| node_security_checks
node_api_server -->|"registers routes"| node_server_checks
node_api_server -->|"registers routes"| node_performance_checks
node_api_server -->|"registers routes"| node_social_presence
node_api_server -->|"registers routes"| node_tracker_scan
node_api_server -->|"registers routes"| node_mixed_scan
node_check_catalog -->|"types checks"| node_categories
node_check_catalog -->|"collects metadata"| node_check_metadata
node_middleware -->|"checks eligibility"| node_skip_rules
node_middleware -->|"normalizes target"| node_target_parser
node_skip_rules -->|"parses host"| node_target_parser
node_social_presence -->|"fetches pages"| node_http_client
node_mixed_scan -->|"fetches resources"| node_http_client
node_tracker_scan -->|"fetches pages"| node_http_client
node_tracker_scan -->|"scans browser state"| node_browser_runner
node_analysis_registry -->|"loads check data"| node_check_catalog
node_analysis_registry -->|"loads categories"| node_categories
node_analysis_rules -.->|"provides analyzers"| node_analysis_registry
node_glossary -.->|"documents checks"| node_check_catalog

click node_client_app "https://github.com/lissy93/web-check/blob/master/src/client/App.tsx"
click node_results_view "https://github.com/lissy93/web-check/blob/master/src/client/views/Results.tsx"
click node_jobs_hook "https://github.com/lissy93/web-check/blob/master/src/client/hooks/useJobs.ts"
click node_api_server "https://github.com/lissy93/web-check/blob/master/server.js"
click node_check_catalog "https://github.com/lissy93/web-check/blob/master/src/data/checks/index.ts"
click node_categories "https://github.com/lissy93/web-check/blob/master/src/data/categories.ts"
click node_check_metadata "https://github.com/lissy93/web-check/tree/master/src/data/checks"
click node_domain_checks "https://github.com/lissy93/web-check/blob/master/api/dns.js"
click node_security_checks "https://github.com/lissy93/web-check/blob/master/api/http-security.js"
click node_server_checks "https://github.com/lissy93/web-check/blob/master/api/ports.js"
click node_performance_checks "https://github.com/lissy93/web-check/blob/master/api/quality.js"
click node_social_presence "https://github.com/lissy93/web-check/blob/master/api/social-presence.js"
click node_tracker_scan "https://github.com/lissy93/web-check/blob/master/api/trackers.js"
click node_mixed_scan "https://github.com/lissy93/web-check/blob/master/api/mixed-content.js"
click node_middleware "https://github.com/lissy93/web-check/blob/master/api/_common/middleware.js"
click node_skip_rules "https://github.com/lissy93/web-check/blob/master/api/_common/check-skipper.js"
click node_target_parser "https://github.com/lissy93/web-check/blob/master/api/_common/parse-target.js"
click node_http_client "https://github.com/lissy93/web-check/blob/master/api/_common/http.js"
click node_browser_runner "https://github.com/lissy93/web-check/blob/master/api/_common/browser.js"
click node_analysis_registry "https://github.com/lissy93/web-check/blob/master/src/client/analysis/registry.ts"
click node_analysis_rules "https://github.com/lissy93/web-check/tree/master/src/client/analysis/rules"
click node_glossary "https://github.com/lissy93/web-check/blob/master/src/data/glossary.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_client_app,node_results_view,node_jobs_hook toneBlue
class node_check_catalog,node_categories,node_check_metadata toneAmber
class node_api_server,node_domain_checks,node_security_checks,node_server_checks,node_performance_checks,node_social_presence,node_tracker_scan,node_mixed_scan toneMint
class node_middleware,node_skip_rules,node_target_parser,node_http_client,node_browser_runner toneRose
class node_analysis_registry,node_analysis_rules,node_glossary,node_user toneIndigo
```

## Components

### User Experience

- [Web interface](https://github.com/lissy93/web-check/blob/master/src/client/App.tsx): `src/client/App.tsx`
- [Results view](https://github.com/lissy93/web-check/blob/master/src/client/views/Results.tsx): `src/client/views/Results.tsx`
- [Job handling](https://github.com/lissy93/web-check/blob/master/src/client/hooks/useJobs.ts): `src/client/hooks/useJobs.ts`

### Check Catalog

- [Check catalog](https://github.com/lissy93/web-check/blob/master/src/data/checks/index.ts): `src/data/checks/index.ts`
- [Check categories](https://github.com/lissy93/web-check/blob/master/src/data/categories.ts): `src/data/categories.ts`
- [Check descriptions](https://github.com/lissy93/web-check/tree/master/src/data/checks): `src/data/checks`

### Scan API

- [API server](https://github.com/lissy93/web-check/blob/master/server.js): `server.js`
- [Domain checks](https://github.com/lissy93/web-check/blob/master/api/dns.js): `api/dns.js`
- [Security checks](https://github.com/lissy93/web-check/blob/master/api/http-security.js): `api/http-security.js`
- [Server checks](https://github.com/lissy93/web-check/blob/master/api/ports.js): `api/ports.js`
- [Performance checks](https://github.com/lissy93/web-check/blob/master/api/quality.js): `api/quality.js`
- [Social presence](https://github.com/lissy93/web-check/blob/master/api/social-presence.js): `api/social-presence.js`
- [Tracker scan](https://github.com/lissy93/web-check/blob/master/api/trackers.js): `api/trackers.js`
- [Mixed content](https://github.com/lissy93/web-check/blob/master/api/mixed-content.js): `api/mixed-content.js`

### API Foundations

- [Request middleware](https://github.com/lissy93/web-check/blob/master/api/_common/middleware.js): `api/_common/middleware.js`
- [Scan skip rules](https://github.com/lissy93/web-check/blob/master/api/_common/check-skipper.js): `api/_common/check-skipper.js`
- [Target parsing](https://github.com/lissy93/web-check/blob/master/api/_common/parse-target.js): `api/_common/parse-target.js`
- [HTTP client](https://github.com/lissy93/web-check/blob/master/api/_common/http.js): `api/_common/http.js`
- [Browser runner](https://github.com/lissy93/web-check/blob/master/api/_common/browser.js): `api/_common/browser.js`

### Result Interpretation

- [Analysis registry](https://github.com/lissy93/web-check/blob/master/src/client/analysis/registry.ts): `src/client/analysis/registry.ts`
- [Analysis rules](https://github.com/lissy93/web-check/tree/master/src/client/analysis/rules): `src/client/analysis/rules`
- [Security glossary](https://github.com/lissy93/web-check/blob/master/src/data/glossary.ts): `src/data/glossary.ts`

### Other components

- **Website auditor**

## Connections

- Website auditor → Web interface: opens scanner
- Web interface → Results view: routes to (evidence: `src/client/App.tsx`)
- Results view → Check catalog: uses checks (evidence: `src/client/views/Results.tsx`)
- Results view → Check categories: uses categories (evidence: `src/client/views/Results.tsx`)
- API server → Domain checks: registers routes (evidence: `server.js`)
- API server → Security checks: registers routes (evidence: `server.js`)
- API server → Server checks: registers routes (evidence: `server.js`)
- API server → Performance checks: registers routes (evidence: `server.js`)
- API server → Social presence: registers routes (evidence: `server.js`)
- API server → Tracker scan: registers routes (evidence: `server.js`)
- API server → Mixed content: registers routes (evidence: `server.js`)
- Check catalog → Check categories: types checks (evidence: `src/data/checks/index.ts`)
- Check catalog → Check descriptions: collects metadata (evidence: `src/data/checks/index.ts`)
- Request middleware → Scan skip rules: checks eligibility (evidence: `api/_common/middleware.js`)
- Request middleware → Target parsing: normalizes target (evidence: `api/_common/middleware.js`)
- Scan skip rules → Target parsing: parses host (evidence: `api/_common/check-skipper.js`)
- Social presence → HTTP client: fetches pages (evidence: `api/social-presence.js`)
- Mixed content → HTTP client: fetches resources (evidence: `api/mixed-content.js`)
- Tracker scan → HTTP client: fetches pages (evidence: `api/trackers.js`)
- Tracker scan → Browser runner: scans browser state (evidence: `api/trackers.js`)
- Analysis registry → Check catalog: loads check data
- Analysis registry → Check categories: loads categories
- Analysis rules → Analysis registry: provides analyzers
- Security glossary → Check catalog: documents checks (evidence: `src/data/glossary.ts`)
