$ show hiddify/Hiddify-Manager
Hiddify-Manager is a comprehensive anti-censorship proxy/VPN management system designed for multi-user environments. It orchestrates a suite of proxy cores (Xray, Sing-Box, HAProxy, Nginx, WireGuard, etc.) via systemd services, a Flask-based web panel, and a CLI tool. The system supports over 20 protocols (VLESS, VMess, Trojan, Shadowsocks, Reality, Telegram proxies, DNS tunnels) and is optimized for regions with heavy internet censorship (Iran, China, Russia). It provides automated installation, configuration generation via Jinja2 templates, multi-node support, Docker deployment, and cloud-init/Terraform scripts for cloud provisioning. The codebase is actively maintained with frequent updates, but contains deprecated services and a large shell script surface that introduces maintenance complexity.
The LLM identified 3 files worth highlighting for reuse:
A Python reimplementation of systemctl designed to run inside Docker containers where systemd is unavailable. It parses systemd unit files, manages service lifecycle (start/stop/enable/disable), handles socket activation, and can act as PID 1 with zombie reaping and signal handling. This component is self-contained and can be extracted for any Docker-based project that needs systemd-like service management without the full systemd runtime.
A Jinja2 template rendering utility with custom filters (b64encode, hexencode) and a shared environment. It is used to generate configuration files for all proxy services from .j2 templates. The module is isolated, well-structured, and can be reused in any project that requires dynamic configuration generation with Jinja2.
A shell script that abstracts downloading, verifying, and installing binary packages from GitHub releases. It maintains a lock file (packages.lock) for version pinning and provides functions like add_package, download_package, and set_installed_version. This pattern is reusable for any project that needs to manage external binaries with integrity checks.