How avatardd/zapret-gui works
Zapret Web-GUI is a router-focused web application for DPI circumvention, VPN/proxy tunnels, and destination-based routing. The user configures a method through the SPA; the Python backend exposes management APIs and coordinates engines and routing. Major documented branches include DPI bypass, multiple tunnel/proxy options, WARP/MASQUE, and unified routing with failover. The graph also shows configuration and logs as shared internal layers. Some API-to-page wiring and unsampled subsystem internals are not shown, so those links are omitted rather than inferred.
Main entry points: engine_wrapper.py Engine API · routing.py Routing API · manager.py Unified routing · app.py HTTP backend
Components 21
Web interface and API
- Web SPA
web/js/app.js - Routing UI
web/js/pages/routing_unified.js - DPI controls
web/js/pages/zapret_manager.js - HTTP backend
app.py - Routing API
api/routing.py - Engine API
api/engine_wrapper.py
DPI bypass
- DPI bypass engine
core/bypass_engine.py - nfqws2 manager
core/nfqws_manager.py - Geneva manager
core/geneva_manager.py
Tunnels and proxies
- AmneziaWG manager
core/awg_manager.py - sing-box manager
core/singbox_manager.py - mihomo manager
core/mihomo_manager.py - WARP/MASQUE manager
core/usque_manager.py - Opera Proxy
core/opera_proxy_manager.py - Telegram Tunnel
core/tgproxy_manager.py
Unified routing
- Unified routing
core/unified/manager.py - Routing manager
core/routing/manager.py - Rule storage
core/routing/storage.py
Shared services
- Settings store
core/config_manager.py - Log buffer
core/log_buffer.py
Other components
- Router administrator
Connections 26
- Router administrator → Web SPA: configures
README.md - Web SPA → HTTP backend: uses backend
README.md - Routing UI → Routing API
- DPI controls → HTTP backend
- HTTP backend → Engine API: manages engines
app.py - HTTP backend → Routing API: routes requests
app.py - Engine API → AmneziaWG manager: imports manager
api/engine_wrapper.py - Engine API → sing-box manager: imports manager
api/engine_wrapper.py - Engine API → mihomo manager: imports manager
api/engine_wrapper.py - DPI bypass engine → nfqws2 manager: starts or checks
core/bypass_engine.py - DPI bypass engine → Geneva manager: checks engine
core/bypass_engine.py - Routing API → AmneziaWG manager: references manager
api/routing.py - Routing API → sing-box manager: references manager
api/routing.py - Routing API → mihomo manager: references manager
api/routing.py - Routing API → WARP/MASQUE manager: references manager
api/routing.py - Unified routing → AmneziaWG manager: dispatches to
core/unified/manager.py - Unified routing → sing-box manager: dispatches to
core/unified/manager.py - Unified routing → mihomo manager: dispatches to
core/unified/manager.py - Unified routing → WARP/MASQUE manager: dispatches to
core/unified/manager.py - Unified routing → Routing manager: uses routing
core/unified/manager.py - Routing manager → Rule storage: loads rules
core/routing/manager.py - Rule storage → Settings store: reads and saves
core/routing/storage.py - Engine API → nfqws2 manager
- Engine API → Geneva manager
- Router administrator → Opera Proxy
- Router administrator → Telegram Tunnel