How avaqen/strata works
Strata is a local-first network-flow dashboard. Users load sample flows, import CSV records, or start Linux interface capture; the server analyzes flows and returns results for the browser’s overview, traffic, and anomaly views. The main stages are capture and flow aggregation, analysis and scoring, and dashboard presentation. The excerpts show the core API-to-sensor and API-to-analysis calls. Some routes and demo-data implementation are not fully excerpted, so those links are based on README documentation.
Main entry points: app.js Dashboard client · app.py HTTP API · sensor.py Capture control · index.html Dashboard views
Components 19
Dashboard
- Dashboard client
app.js - Dashboard views
index.html - Alert table
app.js - Traffic analysis view
app.js - Overview view
app.js - CSV export
app.js
Analysis server
- HTTP API
app.py - Sample flows
app.py - CSV import
app.py
Live capture
- Interface discovery
sensor.py - Capture control
sensor.py - Packet decoder
sensor.py - Flow aggregation
sensor.py - Recent flow window
sensor.py
Analysis results
- Flow analysis
app.py - Anomaly scoring
app.py - Analysis summary
app.py
Other components
- Local user
- Linux interface
Connections 20
- Local user → Dashboard client: uses
README.md - Dashboard client → Dashboard views: navigates
app.js - Dashboard client → HTTP API: requests analysis
app.js - Dashboard client → Sample flows: loads sample flows
README.md - Dashboard client → CSV import: uploads CSV
app.js - HTTP API → Flow analysis: analyzes rows
app.py - Flow analysis → Anomaly scoring: scores flows
app.py - Flow analysis → Analysis summary: summarizes results
app.py - HTTP API → Capture control: starts or stops
app.py - HTTP API → Recent flow window: reads snapshot
app.py - Capture control → Interface discovery: validates interface
sensor.py - Capture control → Linux interface: captures packets
README.md - Capture control → Packet decoder: decodes frames
sensor.py - Packet decoder → Flow aggregation: returns observations
sensor.py - Flow aggregation → Recent flow window: updates flows
sensor.py - HTTP API → Dashboard client: returns results
app.py - Dashboard client → Overview view: renders summary
app.js - Dashboard client → Traffic analysis view: renders flows
app.js - Dashboard client → Alert table: filters anomalies
app.js - Alert table → CSV export: exports anomalies
app.js