hrostami

Periodically checks configs and chooses the most reliable one.

43
8
50% credibility
Found May 31, 2026 at 43 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Python
AI Summary

SNI-Balancer is a Python tool that automatically tests and manages proxy server configurations. It reads a list of server addresses (or subscription links), starts temporary test servers to measure real download speeds and response times, scores each server based on performance history and stability, and automatically runs the best one as a network-wide SOCKS5 proxy. The program monitors all your servers continuously and switches to a better-performing one only when the improvement is significant enough, avoiding disruptive frequent switching. It includes a live dashboard showing all server rankings and supports both VLESS and Trojan protocols with various transport methods.

How It Works

1
📝 You prepare your connection list

You create a simple text file with your server addresses or paste a subscription link from your provider.

2
🤖 The program downloads necessary tools automatically

Everything you need is fetched from the internet on first run - no manual setup required.

3
Your connections are put to the test

The program tries every server you provided, measures how fast each one downloads and responds, and keeps track of which ones stay reliable over time.

4
🏆 The fastest and most stable server is chosen

Based on real download tests and connection history, the best-performing server is automatically selected to run your proxy.

5
Choose how you want to use it
🔍
Just test and see results

Dry-run mode shows you a dashboard of all your servers ranked by performance without starting any proxy.

🚀
Start the proxy for real

Your traffic flows through the best server with a SOCKS5 proxy that works across your whole home network.

🎉 Everything keeps running smoothly on its own

The program continuously monitors your servers in the background, automatically switches to a better one if needed, and never interrupts you unless something goes wrong.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 43 to 43 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is SNI-balancer?

SNI-balancer is a Python automation tool that continuously tests your proxy configurations and keeps the fastest, most reliable one running. It benchmarks VLESS and Trojan servers using real download speed tests and latency checks, scores them based on a weighted system (40% speed, 30% stability, 30% latency), and automatically switches Xray to the best performer. You get a live terminal dashboard showing config rankings, a SOCKS5 proxy on your LAN, and automatic recovery when a config dies. No GUI clients, no manual switching--it runs in the background and handles everything.

Why is it gaining traction?

The hook here is fully automated proxy management. Most people manually test servers or use static configs, but this continuously re-tests every config in the background and only switches when improvement exceeds a threshold. That means if one server degrades while another improves, you automatically end up on the better one. The exponential backoff on dead configs prevents wasted retesting, and the historical stability tracking means a config that occasionally fails gets scored lower than a consistently fast one. It also handles subscription URLs, so you can paste in a provider's link and it parses everything automatically.

Who should use this?

Developers running proxy servers who want hands-off performance optimization. If you're managing a fleet of Xray configs across multiple providers and hate manually switching when one degrades, this handles that loop for you. Researchers testing proxy performance across regions will appreciate the scoring system and history tracking. It's less useful if you only have one or two configs and never change them.

Verdict

This solves a real problem with a clean implementation, but the 0.5% credibility score and 43 stars signal it's early-stage and not battle-tested in production environments. The codebase is well-structured with good CLI documentation, but there's no mention of test coverage or a stable release history. The educational disclaimer and SNI-spoofing requirement add complexity that makes this niche. Try it for personal use or homelab scenarios, but hold off on deploying it as mission-critical infrastructure until it gains more community traction.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.