# riccardoalv/omini architecture

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

- Interactive diagram: https://gitdiagram.com/riccardoalv/omini
- Repository: https://github.com/riccardoalv/omini

## Overview

Omini is a self-hosted network discovery and mapping product. An operator opens the web UI, configures integrations, and receives a continuously refreshed map with device details, traffic, alerts, and network-management tools. The server runs collection rounds, combines scan and integration evidence into topology, persists state, and exposes it through the API. The README documents broader capabilities—including VLAN changes, backups, DNS/DHCP checks, notifications, and plugins—that are represented here; some internal links are omitted where the excerpts do not establish their runtime wiring.

Main entry points: [`internal/api/handlers.go`](https://github.com/riccardoalv/omini/blob/main/internal/api/handlers.go) (HTTP API), [`internal/collector/collector.go`](https://github.com/riccardoalv/omini/blob/main/internal/collector/collector.go) (Collection rounds), [`internal/netscan/scan.go`](https://github.com/riccardoalv/omini/blob/main/internal/netscan/scan.go) (Network scanner), [`web/src/App.vue`](https://github.com/riccardoalv/omini/blob/main/web/src/App.vue) (Web application)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Web experience"]
  node_webapp["Web application<br/>[App.vue]"]
  node_map["Network map<br/>[MapView.vue]"]
  node_trafficui["Internet view<br/>[InternetView.vue]"]
  node_alertsui["Alerts view<br/>[AlertsView.vue]"]
  node_integrationsui["Integrations view"]
  node_settingsui["Settings view<br/>[SettingsView.vue]"]
end

subgraph group_server["Server and API"]
  node_api["HTTP API<br/>[handlers.go]"]
  node_auth["Authentication<br/>[auth.go]"]
end

subgraph group_collection["Discovery and topology"]
  node_collector["Collection rounds<br/>[collector.go]"]
  node_netscan["Network scanner<br/>[scan.go]"]
  node_nmap["Optional nmap scan<br/>[nmap.go]"]
  node_topology["Topology builder<br/>[topology.go]"]
  node_classify["Device identification<br/>[classify.go]"]
  node_flowservice["Flow ingestion<br/>[service.go]"]
end

subgraph group_insight["Insights and actions"]
  node_insights["Health insights<br/>[insights.go]"]
  node_vlan["VLAN operations<br/>[vlans.go]"]
  node_notifications["Alert notifications<br/>[messages.go]"]
end

subgraph group_state["State and integrations"]
  node_plugins["Plugin manager<br/>[manager.go]"]
  node_store[("Embedded state store<br/>[store.go]")]
  node_flowsstore[("Flow and usage data<br/>[flows.go]")]
end

node_operator(("Network operator"))
node_externalnets{{"Local network"}}
node_flowexporter{{"Flow exporters"}}
node_notifydest{{"Notification services"}}

node_operator -->|"opens"| node_webapp
node_webapp -.->|"requests"| node_api
node_api -->|"authenticates"| node_auth
node_api -->|"reads and writes"| node_store
node_api -->|"reads status"| node_collector
node_api -->|"manages plugins"| node_plugins
node_integrationsui -.->|"configures scans"| node_api
node_collector -.->|"runs discovery"| node_netscan
node_externalnets -->|"probe targets"| node_netscan
node_collector -->|"builds map"| node_topology
node_topology -->|"identifies devices"| node_classify
node_nmap -->|"extends scanning"| node_netscan
node_flowexporter -->|"sends flow data"| node_flowservice
node_flowservice -->|"stores usage"| node_flowsstore
node_api -.->|"serves traffic data"| node_flowsstore
node_api -->|"requests insights"| node_insights
node_api -.->|"applies VLAN changes"| node_vlan
node_insights -.->|"produces alert content"| node_notifications
node_notifications -->|"sends alerts"| node_notifydest
node_api -.->|"provides map data"| node_map
node_api -.->|"provides traffic data"| node_trafficui
node_api -.->|"provides alerts"| node_alertsui
node_api -.->|"provides settings"| node_settingsui
node_api -.->|"provides integration data"| node_integrationsui

click node_webapp "https://github.com/riccardoalv/omini/blob/main/web/src/App.vue"
click node_map "https://github.com/riccardoalv/omini/blob/main/web/src/views/MapView.vue"
click node_trafficui "https://github.com/riccardoalv/omini/blob/main/web/src/views/InternetView.vue"
click node_alertsui "https://github.com/riccardoalv/omini/blob/main/web/src/views/AlertsView.vue"
click node_integrationsui "https://github.com/riccardoalv/omini/blob/main/web/src/views/IntegrationsView.vue"
click node_settingsui "https://github.com/riccardoalv/omini/blob/main/web/src/views/SettingsView.vue"
click node_api "https://github.com/riccardoalv/omini/blob/main/internal/api/handlers.go"
click node_auth "https://github.com/riccardoalv/omini/blob/main/internal/auth/auth.go"
click node_collector "https://github.com/riccardoalv/omini/blob/main/internal/collector/collector.go"
click node_netscan "https://github.com/riccardoalv/omini/blob/main/internal/netscan/scan.go"
click node_nmap "https://github.com/riccardoalv/omini/blob/main/internal/nmapscan/nmap.go"
click node_topology "https://github.com/riccardoalv/omini/blob/main/internal/topology/topology.go"
click node_classify "https://github.com/riccardoalv/omini/blob/main/internal/classify/classify.go"
click node_flowservice "https://github.com/riccardoalv/omini/blob/main/internal/flows/service.go"
click node_insights "https://github.com/riccardoalv/omini/blob/main/internal/insights/insights.go"
click node_vlan "https://github.com/riccardoalv/omini/blob/main/internal/vlans/vlans.go"
click node_notifications "https://github.com/riccardoalv/omini/blob/main/internal/notify/messages.go"
click node_plugins "https://github.com/riccardoalv/omini/blob/main/internal/plugins/manager.go"
click node_store "https://github.com/riccardoalv/omini/blob/main/internal/store/store.go"
click node_flowsstore "https://github.com/riccardoalv/omini/blob/main/internal/store/flows.go"

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_webapp,node_map,node_trafficui,node_alertsui,node_integrationsui,node_settingsui toneBlue
class node_api,node_auth toneAmber
class node_collector,node_netscan,node_nmap,node_topology,node_classify,node_flowservice toneMint
class node_insights,node_vlan,node_notifications toneRose
class node_plugins,node_store,node_flowsstore,node_operator,node_externalnets,node_flowexporter,node_notifydest toneIndigo
```

## Components

### Web experience

- [Web application](https://github.com/riccardoalv/omini/blob/main/web/src/App.vue): `web/src/App.vue`
- [Network map](https://github.com/riccardoalv/omini/blob/main/web/src/views/MapView.vue): `web/src/views/MapView.vue`
- [Internet view](https://github.com/riccardoalv/omini/blob/main/web/src/views/InternetView.vue): `web/src/views/InternetView.vue`
- [Alerts view](https://github.com/riccardoalv/omini/blob/main/web/src/views/AlertsView.vue): `web/src/views/AlertsView.vue`
- [Integrations view](https://github.com/riccardoalv/omini/blob/main/web/src/views/IntegrationsView.vue): `web/src/views/IntegrationsView.vue`
- [Settings view](https://github.com/riccardoalv/omini/blob/main/web/src/views/SettingsView.vue): `web/src/views/SettingsView.vue`

### Server and API

- [HTTP API](https://github.com/riccardoalv/omini/blob/main/internal/api/handlers.go): `internal/api/handlers.go`
- [Authentication](https://github.com/riccardoalv/omini/blob/main/internal/auth/auth.go): `internal/auth/auth.go`

### Discovery and topology

- [Collection rounds](https://github.com/riccardoalv/omini/blob/main/internal/collector/collector.go): `internal/collector/collector.go`
- [Network scanner](https://github.com/riccardoalv/omini/blob/main/internal/netscan/scan.go): `internal/netscan/scan.go`
- [Optional nmap scan](https://github.com/riccardoalv/omini/blob/main/internal/nmapscan/nmap.go): `internal/nmapscan/nmap.go`
- [Topology builder](https://github.com/riccardoalv/omini/blob/main/internal/topology/topology.go): `internal/topology/topology.go`
- [Device identification](https://github.com/riccardoalv/omini/blob/main/internal/classify/classify.go): `internal/classify/classify.go`
- [Flow ingestion](https://github.com/riccardoalv/omini/blob/main/internal/flows/service.go): `internal/flows/service.go`

### Insights and actions

- [Health insights](https://github.com/riccardoalv/omini/blob/main/internal/insights/insights.go): `internal/insights/insights.go`
- [VLAN operations](https://github.com/riccardoalv/omini/blob/main/internal/vlans/vlans.go): `internal/vlans/vlans.go`
- [Alert notifications](https://github.com/riccardoalv/omini/blob/main/internal/notify/messages.go): `internal/notify/messages.go`

### State and integrations

- [Plugin manager](https://github.com/riccardoalv/omini/blob/main/internal/plugins/manager.go): `internal/plugins/manager.go`
- [Embedded state store](https://github.com/riccardoalv/omini/blob/main/internal/store/store.go): `internal/store/store.go`
- [Flow and usage data](https://github.com/riccardoalv/omini/blob/main/internal/store/flows.go): `internal/store/flows.go`

### Other components

- **Network operator**
- **Local network**
- **Flow exporters**
- **Notification services**

## Connections

- Network operator → Web application: opens
- Web application → HTTP API: requests
- HTTP API → Authentication: authenticates (evidence: `internal/api/handlers.go`)
- HTTP API → Embedded state store: reads and writes (evidence: `internal/api/handlers.go`)
- HTTP API → Collection rounds: reads status (evidence: `internal/api/handlers.go`)
- HTTP API → Plugin manager: manages plugins (evidence: `internal/api/handlers.go`)
- Integrations view → HTTP API: configures scans
- Collection rounds → Network scanner: runs discovery
- Local network → Network scanner: probe targets (evidence: `internal/netscan/scan.go`)
- Collection rounds → Topology builder: builds map (evidence: `internal/topology/topology.go`)
- Topology builder → Device identification: identifies devices (evidence: `internal/topology/topology.go`)
- Optional nmap scan → Network scanner: extends scanning (evidence: `internal/nmapscan/nmap.go`)
- Flow exporters → Flow ingestion: sends flow data
- Flow ingestion → Flow and usage data: stores usage (evidence: `internal/flows/service.go`)
- HTTP API → Flow and usage data: serves traffic data
- HTTP API → Health insights: requests insights
- HTTP API → VLAN operations: applies VLAN changes
- Health insights → Alert notifications: produces alert content
- Alert notifications → Notification services: sends alerts
- HTTP API → Network map: provides map data
- HTTP API → Internet view: provides traffic data
- HTTP API → Alerts view: provides alerts
- HTTP API → Settings view: provides settings
- HTTP API → Integrations view: provides integration data
