How alhaweity/quotamanager works
Quota Manager is a home-network gateway that assigns shared monthly allowances, measures device traffic, and enforces limits while providing a dashboard for household administration. The main path is administrator → web dashboard → API → quota service and persistence → gateway enforcement; live counters feed dashboard views. Separate capabilities cover DNS and firewall security, network visibility, VPN and remote access, and local file sharing. The map uses the shown excerpts, SOURCE INDEX references, and README; several unsampled feature implementations are represented at their exact directory paths, with uncertain links omitted.
Main entry points: app.py REST and live API · vpn_manager.py VPN management · main.js Web dashboard · db.py SQLite persistence
Components 23
Dashboard
- Web dashboard
web/js/main.js - Usage overview
web/js/pages/overview.js - People and devices
web/js/pages/people.js - Quota controls
web/js/pages/quota.js - Security controls
web/js/pages/security.js - VPN controls
web/js/pages/vpn.js - File sharing
web/js/pages/share.js
API and quota
- REST and live API
api/app.py - Quota service
quota/service.py - SQLite persistence
quota/db.py
Gateway enforcement
- Traffic snapshots
quota/engine.py - Packet enforcement
quota/nftables.py
Network features
- DNS rules
quota/dns_rules.py - Firewall
quota/firewall.py - Usage analytics
quota/history_analytics.py - Network discovery
quota/topology.py
Remote and local access
- VPN management
quota/vpn_manager.py - VPN parsing
quota/vpn_parser.py - VPN sharing
quota/vpnshare.py - Tailscale access
quota/tailscale.py - Local sharing service
quota/local_share.py
Other components
- Administrator
- Household devices
Connections 24
- Administrator → Web dashboard: administers
- Web dashboard → Usage overview: renders
web/js/main.js - Web dashboard → REST and live API: requests data
web/js/main.js - Usage overview → REST and live API: loads dashboard
web/js/pages/overview.js - People and devices → REST and live API: manages devices
- Quota controls → REST and live API: sets allowances
- Security controls → REST and live API: configures security
web/js/pages/security.js - VPN controls → REST and live API: manages VPN
web/js/pages/vpn.js - File sharing → REST and live API: manages sharing
web/js/pages/share.js - REST and live API → Quota service: uses quota logic
api/app.py - REST and live API → SQLite persistence: reads and writes
api/app.py - Quota service → SQLite persistence: persists quota state
quota/service.py - REST and live API → Traffic snapshots: reads live state
quota/engine.py - Household devices → Packet enforcement: traffic enforced
- Packet enforcement → Traffic snapshots: publishes counters
quota/nftables.py - REST and live API → DNS rules: uses DNS controls
api/app.py - REST and live API → Firewall: uses firewall controls
- REST and live API → Usage analytics: uses history analytics
api/app.py - REST and live API → Tailscale access: configures remote access
api/app.py - VPN management → SQLite persistence: uses stored settings
quota/vpn_manager.py - VPN management → VPN parsing: parses VPN config
quota/vpn_manager.py - VPN management → VPN sharing: uses sharing
quota/vpn_manager.py - REST and live API → Local sharing service: exposes sharing
api/app.py - Household devices → Local sharing service: shares files