๐ Stripped-down L4 proxy with a few batteries included
Repo toksdotdev/fproxy, read from GitHub 18 h ago. toksdotdev has not joined Take My Repo.
toksdotdev/fproxy is a public repo on GitHub by toksdotdev. ๐ Stripped-down L4 proxy with a few batteries included. It declares no license on GitHub. Public does not mean open source: without a license, nobody is granted the right to reuse it. It is written mainly in Rust, has 6 stars and last changed on 2024-03-04. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-24.

In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
Just another stripped-down L4 proxy with a few batteries included.

The codebase comprises two core modules:
fproxyThe proxy expects an environment variable FPROXY_CONFIG_PATH which is the path to a configuration file that declaratively states what apps the proxy should start up with. With the path to the config file, you can proceed to run it via:
FPROXY_CONFIG_PATH=<specify path to config file> cargo run
NOTE: Log level can be set via the environment variable
RUST_LOG. See here for available options. By default it is configured totrace.
ftestFrom the root of the ftest directory, you can see all available commands for the CLI by running:
go run help
The output should be similar to:
Testing tool for fproxy
Usage:
ftest [command]
Available Commands:
balancer Check if proxy supports load balancing
completion Generate the autocompletion script for the specified shell
help Help about any command
ping Send ping data to proxy (supports IPv4 and IPv6)
simulate Simulate requests to proxy
Flags:
-h, --help help for ftest
Use "ftest [command] --help" for more information about a command.
What might break under a production load? What needs to happen before your proxy is production ready?
If this were deployed to production, is there anything you could do with your proxy that would make our customers happy?
If you were starting over, is there anything youโd do differently?
I'm pretty much comfortable with the existing implementation. There are lots of improvements, but not critical pieces with costly mistakes that would warrant a significant overhaul. For improvements, the most notable one is capturing more traces, identifying where we spend the most time, and working towards improving it since it could have a ripple effect latency-wise across applications served through the proxy.
How would you make a global, clustered version of your proxy? At the moment, the proxy is currently designed to run as a single instance. To make it run within a clustered version, there are a couple of improvements we'll need to make alongside components we'll need to introduce.

Here are lists of possible improvements:
To ensure our proxies are highly available, we need to ensure at every point we are running at least 3 node instances where our proxy with the same app configuration is running within each region/data center.
We also need to improve our existing fproxy daemon to check for the liveness of every app's proxy, and in a case where a proxy for some reason crashes, the daemon should automatically restart such proxy. That'll mean we keep the latest configuration of each app we're proxying to since it'll be instrumental in restarting any proxy that happens to crash.
Introduce either a load balancer or a service mesh in front of all nodes instances running the proxy within each region, and for each IP address within our available IP address blocks should load balance the incoming requests across all the nodes where an app's proxy is running on.
Introduce a control plane that will be backed by some distributed store, and its primary responsibilities will be to orchestrate the entire process of:
Having mechanisms in place auto-scale both nodes and specific app's proxies experiencing increased traffic spikes will be a great addition to further increase reliability and HA. To track the metrics for each proxy, we can deploy a metrics collector as a sidecar to our proxy instance, and its primary responsibility will be to collect metrics and share these metrics with the control plane. Depending on the status of the metrics, our control plane can then decide to either auto-scale app proxy instances either within the same node or on a new node.
There are critical components that make up the proxy implementation and they have been described below.
A configuration watcher is a trait that abstracts away a configuration source for the proxy system, and its goal is to provide support for watching changes in a configuration source. The trait is designed to be flexible, with support for different notification systems, such as file-based watcher notifications and pub/sub systems. Whenever a user makes a change to their app configuration, its sole responsibility is to:
pub trait ConfigSubscriber<C> {
/// Error that occurs while subscribing for config changes.
type Error;
/// Most recent configuration after the change occurs.
type Config;
/// Subscribe to changes in a configuration source.
fn subscribe(&self) -> Result<Subscriber<C, Self::Config>, Self::Error>;
}
/// Handle to subscribe to configuration changes.
pub struct Subscriber<C, T> {
/// Handle context.
#[allow(dead_code)]
context: C,
/// Receiver for configuration changes.
rx: UnboundedReceiver<T>,
}
To run our application in a distributed environment, one huge improvement will be to add support for a distributed subscriber/listener watcher, which broadcasts configuration changes in an orderly fashion to all the proxy daemons' running across all multiple nodes. Using an off-the-shelf pub/sub solution like ZeroMQ or RabbitMQ can be a good start, but as our needs evolve we can further explore more solutions that'll fit our needs.
In addition, instead of sending the entire config changes for all the apps (as is the case when a file changes), the system can identify the diff and send only the changes for the apps that have changed. The changes should be atomic operations which can either be: delete proxy when an app/port is deleted from the config or create proxy whose configs changed. With this approach, the daemon can efficiently orchestrate the process of shutting down old versions of the proxy and creating new proxy instances without rolling new instances of proxies for all apps.
The strategy component is responsible for providing support for different load-balancing strategies over targets specified in the proxy configuration for an app. All available strategies have to implement the Strategy trait defined below which is almost similar to the Iterator trait.
pub trait Strategy: Send + Sync {
type Item;
/// Get the next item based on a balancing strategy.
fn next(&self) -> Option<&Self::Item>;
}
Round Robin: This returns the target in an orderly, roundtable and non-blocking fashion whenever .next() is called. Under the hood, it makes use of an atomic counter to prevent the case of a blocking operation when called from multiple proxies running on different threads. When the end of the cycle is reached, instead of returning None, it proceeds to continue from the beginning of the cycle.
.next() is called. To improve this, the round-robin strategy can be built over a new type of strategy: availability strategy.toksdotdev/fproxy is a public repo on GitHub by toksdotdev. ๐ Stripped-down L4 proxy with a few batteries included.
It declares no license on GitHub. Public does not mean open source: without a license, nobody is granted the right to reuse it.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2024-03-04. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Take My Repo cannot say: it does not audit code and has not run fproxy. What is known comes from GitHub. It declares no license on GitHub. Public does not mean open source: without a license, nobody is granted the right to reuse it. Its last change was on 2024-03-04. It has 6 stars, which measure popularity, not safety. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read the source before you run it. With "Take it", your AI agent shows each step and asks you before running it; README text is treated as data, not as instructions.