# joel-freude/meridian architecture

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

- Interactive diagram: https://gitdiagram.com/joel-freude/meridian
- Repository: https://github.com/joel-freude/meridian

## Overview

Meridian is a network-device inventory and security dashboard, combining a substantial Next.js interface with a FastAPI data/API backend and an emerging microservices design. The user workflow is to open the dashboard, explore device and site information on a globe, and inspect security or vulnerability views; the backend exposes device and security endpoints. The registry service excerpt shows database-backed device/location operations and Kafka event emission. The README describes additional planned service capabilities, but their implementations are not present in the supplied tree. Frontend-to-backend wiring is not visible in the excerpts.

Main entry points: [`frontend/app/page.tsx`](https://github.com/joel-freude/meridian/blob/master/frontend/app/page.tsx) (Inventory dashboard), [`services/device-registry/app/main.py`](https://github.com/joel-freude/meridian/blob/master/services/device-registry/app/main.py) (Device registry API), [`backend/main.py`](https://github.com/joel-freude/meridian/blob/master/backend/main.py) (Prototype API), [`frontend/components/Globe.tsx`](https://github.com/joel-freude/meridian/blob/master/frontend/components/Globe.tsx) (Globe map)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Dashboard"]
  node_dashboard["Inventory dashboard<br/>[page.tsx]"]
  node_globe["Globe map<br/>[Globe.tsx]"]
  node_performance["Site performance"]
  node_addsite["Add datacenter"]
  node_securityview["Security dashboard"]
  node_vulnview["Vulnerability scanner"]
  node_deviceview["Device list<br/>[DeviceList.tsx]"]
end

subgraph group_api["API and Registry"]
  node_prototypeapi["Prototype API<br/>[main.py]"]
  node_registry["Device registry API<br/>[main.py]"]
  node_registrydb[("Registry database<br/>[main.py]")]
  node_kafka["Kafka event broker"]
  node_geocoder["LatLng geocoder"]
end

subgraph group_contracts["Shared Contracts"]
  node_proto["Protobuf contracts<br/>[meridian.proto]"]
  node_eventcontracts["Domain event schema<br/>[domain-events.json]"]
end

subgraph group_planned["Documented Capabilities"]
  node_topology["Topology engine"]
  node_vulnerability["Vulnerability management"]
  node_securityevents["Security events"]
  node_compliance["Compliance engine"]
  node_telemetry["Telemetry metrics"]
  node_discovery["Discovery and reconciliation"]
  node_config["Configuration management"]
  node_ipam["IPAM and DHCP"]
  node_notifications["Notification alerting"]
  node_auth["Auth and RBAC"]
end

node_user(("Network operator"))

node_user -->|"uses"| node_dashboard
node_dashboard -->|"renders"| node_globe
node_dashboard -->|"renders"| node_performance
node_dashboard -->|"renders"| node_addsite
node_dashboard -->|"renders"| node_securityview
node_dashboard -->|"renders"| node_vulnview
node_dashboard -.->|"requests data"| node_prototypeapi
node_prototypeapi -->|"queries"| node_geocoder
node_registry -->|"reads and writes"| node_registrydb
node_registry -->|"emits events"| node_kafka
node_registry -.->|"uses contract"| node_proto
node_registry -.->|"uses schema"| node_eventcontracts
node_dashboard -.->|"topology capability"| node_topology
node_dashboard -.->|"security capability"| node_vulnerability
node_dashboard -.->|"security capability"| node_securityevents
node_dashboard -.->|"compliance capability"| node_compliance
node_dashboard -.->|"metrics capability"| node_telemetry
node_dashboard -.->|"discovery capability"| node_discovery
node_dashboard -.->|"configuration capability"| node_config
node_dashboard -.->|"IPAM capability"| node_ipam
node_dashboard -.->|"alerting capability"| node_notifications
node_dashboard -.->|"access capability"| node_auth

click node_dashboard "https://github.com/joel-freude/meridian/blob/master/frontend/app/page.tsx"
click node_globe "https://github.com/joel-freude/meridian/blob/master/frontend/components/Globe.tsx"
click node_performance "https://github.com/joel-freude/meridian/blob/master/frontend/components/NycPerformanceCard.tsx"
click node_addsite "https://github.com/joel-freude/meridian/blob/master/frontend/components/AddDatacenterModal.tsx"
click node_securityview "https://github.com/joel-freude/meridian/blob/master/frontend/components/SecurityDashboard.tsx"
click node_vulnview "https://github.com/joel-freude/meridian/blob/master/frontend/components/VulnerabilityScanner.tsx"
click node_deviceview "https://github.com/joel-freude/meridian/blob/master/frontend/components/DeviceList.tsx"
click node_prototypeapi "https://github.com/joel-freude/meridian/blob/master/backend/main.py"
click node_registry "https://github.com/joel-freude/meridian/blob/master/services/device-registry/app/main.py"
click node_registrydb "https://github.com/joel-freude/meridian/blob/master/services/device-registry/app/main.py"
click node_proto "https://github.com/joel-freude/meridian/blob/master/shared/proto/meridian.proto"
click node_eventcontracts "https://github.com/joel-freude/meridian/blob/master/shared/events/domain-events.json"
click node_topology "https://github.com/joel-freude/meridian/tree/master/services"
click node_vulnerability "https://github.com/joel-freude/meridian/tree/master/services"
click node_securityevents "https://github.com/joel-freude/meridian/tree/master/services"
click node_compliance "https://github.com/joel-freude/meridian/tree/master/services"
click node_telemetry "https://github.com/joel-freude/meridian/tree/master/services"
click node_discovery "https://github.com/joel-freude/meridian/tree/master/services"
click node_config "https://github.com/joel-freude/meridian/tree/master/services"
click node_ipam "https://github.com/joel-freude/meridian/tree/master/services"
click node_notifications "https://github.com/joel-freude/meridian/tree/master/services"
click node_auth "https://github.com/joel-freude/meridian/tree/master/services"

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_dashboard,node_globe,node_performance,node_addsite,node_securityview,node_vulnview,node_deviceview toneBlue
class node_prototypeapi,node_registry,node_registrydb,node_kafka,node_geocoder toneAmber
class node_proto,node_eventcontracts toneMint
class node_topology,node_vulnerability,node_securityevents,node_compliance,node_telemetry,node_discovery,node_config,node_ipam,node_notifications,node_auth toneRose
class node_user toneIndigo
```

## Components

### Dashboard

- [Inventory dashboard](https://github.com/joel-freude/meridian/blob/master/frontend/app/page.tsx): `frontend/app/page.tsx`
- [Globe map](https://github.com/joel-freude/meridian/blob/master/frontend/components/Globe.tsx): `frontend/components/Globe.tsx`
- [Site performance](https://github.com/joel-freude/meridian/blob/master/frontend/components/NycPerformanceCard.tsx): `frontend/components/NycPerformanceCard.tsx`
- [Add datacenter](https://github.com/joel-freude/meridian/blob/master/frontend/components/AddDatacenterModal.tsx): `frontend/components/AddDatacenterModal.tsx`
- [Security dashboard](https://github.com/joel-freude/meridian/blob/master/frontend/components/SecurityDashboard.tsx): `frontend/components/SecurityDashboard.tsx`
- [Vulnerability scanner](https://github.com/joel-freude/meridian/blob/master/frontend/components/VulnerabilityScanner.tsx): `frontend/components/VulnerabilityScanner.tsx`
- [Device list](https://github.com/joel-freude/meridian/blob/master/frontend/components/DeviceList.tsx): `frontend/components/DeviceList.tsx`

### API and Registry

- [Prototype API](https://github.com/joel-freude/meridian/blob/master/backend/main.py): `backend/main.py`
- [Device registry API](https://github.com/joel-freude/meridian/blob/master/services/device-registry/app/main.py): `services/device-registry/app/main.py`
- [Registry database](https://github.com/joel-freude/meridian/blob/master/services/device-registry/app/main.py): `services/device-registry/app/main.py`
- **Kafka event broker**
- **LatLng geocoder**

### Shared Contracts

- [Protobuf contracts](https://github.com/joel-freude/meridian/blob/master/shared/proto/meridian.proto): `shared/proto/meridian.proto`
- [Domain event schema](https://github.com/joel-freude/meridian/blob/master/shared/events/domain-events.json): `shared/events/domain-events.json`

### Documented Capabilities

- [Topology engine](https://github.com/joel-freude/meridian/tree/master/services): `services`
- [Vulnerability management](https://github.com/joel-freude/meridian/tree/master/services): `services`
- [Security events](https://github.com/joel-freude/meridian/tree/master/services): `services`
- [Compliance engine](https://github.com/joel-freude/meridian/tree/master/services): `services`
- [Telemetry metrics](https://github.com/joel-freude/meridian/tree/master/services): `services`
- [Discovery and reconciliation](https://github.com/joel-freude/meridian/tree/master/services): `services`
- [Configuration management](https://github.com/joel-freude/meridian/tree/master/services): `services`
- [IPAM and DHCP](https://github.com/joel-freude/meridian/tree/master/services): `services`
- [Notification alerting](https://github.com/joel-freude/meridian/tree/master/services): `services`
- [Auth and RBAC](https://github.com/joel-freude/meridian/tree/master/services): `services`

### Other components

- **Network operator**

## Connections

- Network operator → Inventory dashboard: uses (evidence: `README.md`)
- Inventory dashboard → Globe map: renders (evidence: `frontend/app/page.tsx`)
- Inventory dashboard → Site performance: renders (evidence: `frontend/app/page.tsx`)
- Inventory dashboard → Add datacenter: renders (evidence: `frontend/app/page.tsx`)
- Inventory dashboard → Security dashboard: renders (evidence: `frontend/app/page.tsx`)
- Inventory dashboard → Vulnerability scanner: renders (evidence: `frontend/app/page.tsx`)
- Inventory dashboard → Prototype API: requests data
- Prototype API → LatLng geocoder: queries (evidence: `backend/main.py`)
- Device registry API → Registry database: reads and writes (evidence: `services/device-registry/app/main.py`)
- Device registry API → Kafka event broker: emits events (evidence: `services/device-registry/app/main.py`)
- Device registry API → Protobuf contracts: uses contract (evidence: `README.md`)
- Device registry API → Domain event schema: uses schema (evidence: `README.md`)
- Inventory dashboard → Topology engine: topology capability (evidence: `README.md`)
- Inventory dashboard → Vulnerability management: security capability (evidence: `README.md`)
- Inventory dashboard → Security events: security capability (evidence: `README.md`)
- Inventory dashboard → Compliance engine: compliance capability (evidence: `README.md`)
- Inventory dashboard → Telemetry metrics: metrics capability (evidence: `README.md`)
- Inventory dashboard → Discovery and reconciliation: discovery capability (evidence: `README.md`)
- Inventory dashboard → Configuration management: configuration capability (evidence: `README.md`)
- Inventory dashboard → IPAM and DHCP: IPAM capability (evidence: `README.md`)
- Inventory dashboard → Notification alerting: alerting capability (evidence: `README.md`)
- Inventory dashboard → Auth and RBAC: access capability (evidence: `README.md`)
