$ show appshubcc/Bettbox
Bettbox is a cross-platform network diversion (proxy) tool built on the Clash.Meta proxy engine. It provides a Flutter-based GUI for Windows, macOS, Linux, and Android, backed by a Go core that implements extensive proxy protocols (VMess, VLESS, Shadowsocks, Hysteria, TUIC, etc.), DNS resolution, TUN/VPN, rule-based routing, and traffic obfuscation. The system manages proxy configurations, supports profile import/export, real-time connection monitoring, and a scriptable code editor plugin.
The LLM identified 3 files worth highlighting for reuse:
Complete SOCKS5 RFC 1928 implementation with client and server handshake, address parsing, UDP support. Self-contained and reusable as a standalone Go library.
Generic LRU cache with configurable eviction, size limit, TTL, stale return, and clone-to. A reusable building block for any Go project needing a cache.
Succinct trie implementation for fast domain matching with wildcard support and binary serialiation. Used eextensively for routing rules, could be reused in any domain-based filtering system.