Resin's quick start publishes one port and puts an admin token of admin123 on it
A high-performance proxy pool gateway. Turn massive proxy subscriptions into a stable, smart, and observable network with sticky sessions.
At a glance
- What is it?
- A proxy pool gateway that imports node subscriptions, health-checks them, and keeps a business account pinned to a stable outbound address. The interesting parts are the deployment example, where the admin console and the forward proxy share a published port, and the dependency list, which is effectively an architecture diagram.
- Who is it for?
- Resin is worth looking at if you have bought proxies at volume and need one entry point with health management instead of a list, because the subscription formats it accepts are broad and the dedup across subscriptions is the feature that would save you money. Two things to settle first.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 7 days ago.
- What is it written in?
- Mainly Go, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- Resinat/Resin2,745 ★ · +354
| Repository | 2026-09-29 | 2026-11-25 |
|---|---|---|
| Resinat/Resin | 2.4k | 2.7k |
354 Stars in the last 57 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
One published port carries both the admin console and the proxy
The quick start is a compose file, and the four environment values in it are worth reading together.
environment:
RESIN_ADMIN_TOKEN: "admin123" # Change to your admin dashboard password
RESIN_PROXY_TOKEN: "my-token" # Change to your proxy password
RESIN_LISTEN_ADDRESS: 0.0.0.0
RESIN_PORT: 2260
ports:
- "2260:2260"Three of those are fine. The listen address is every interface rather than loopback, which is the normal choice for a service meant to be reached from elsewhere. The port is published, which is why the service is reachable at all. The proxy token is a placeholder with a comment telling you to change it.
The first value is the problem. The admin console is on the same port as the proxy, the port is published to the host, and the token protecting the console is a five-character placeholder in the file the quick start tells you to use. Step two of the quick start then opens that same address in a browser and asks you to log in with the admin token.
So in the default configuration, an admin interface that can import subscriptions, add listening ports and read structured request logs sits behind a placeholder password on a published port. The compose file in the repository is an example file, and there is a separate environment template whose tokens read as placeholders rather than as a guessable value. But the example is what a reader copies first, and the difference between a template that says change me and a value that says admin123 is the difference between a warning and a default.
Two documented routes to a proxy with no authentication
The readme tells you how to turn proxy authentication off, and it does so in a way that is easy to land on by accident.
The instruction is to set the proxy token variable to an empty string, with a parenthetical that the variable must still be defined. The separate environment template carries the same instruction in a comment above the variable.
The subtlety is the must still be defined part. Setting a variable to an empty string is not the same as removing it, and the implementation distinguishes the two. So there is a specific state, empty-but-present, that disables authentication, and it is the state a well-meaning operator reaches by clearing a password field.
Once it is set, both forward proxy modes are described as available with no proxy password: HTTP forwarding at one address and SOCKS5 forwarding at another, on the same port as everything else.
So the three endpoints in this design, the admin console, the authenticated forward proxy and the unauthenticated forward proxy, are all reachable on one published port and are separated only by whether a token is set and which it is. That is a workable design. It is also the design where a single mistake in one environment variable is the whole security boundary, and the readme does not put it that way.
Sticky routing works by reading credentials out of request headers
The feature the project leads with is session stickiness, and its implementation is the part to understand.
The stated purpose is keeping the same business account bound to a stable outbound address, with the promise that if a node fails the gateway switches to another node carrying the same address. That is a real operational need: a service that rate-limits or fingerprints by egress address will break if two requests from one account leave from two places.
How the gateway decides which account a request belongs to is where it gets interesting. The readme says it can extract account identity from existing request headers, an API key being the example, and that clients therefore often need no code changes. It describes this as zero-intrusion access.
So the sticky key is a credential read out of live traffic, and the account a request belongs to is inferred from a header the client was already sending to somebody else. That is a genuinely good design for compatibility and it has two consequences worth stating. The gateway is reading API keys, so its structured request logs, which are described as queryable by platform, account and target site, sit close to material you would not want to log casually. And the sticky guarantee is only as good as the header: two clients sharing a key share a binding, and a client that rotates its key gets a new one.
The two outbound type lists differ by one entry
Subscription content can arrive in several shapes, and the readme lists what each shape can contain. Two of those lists are presented in parallel and they are not the same length.
For one structured format the accepted outbound types are thirteen: two kinds of plain proxy, shadowsocks, three of the modern proxy protocols, a network tunnel, a protocol multiplexer, a second version of one of those, a second multiplexer, a transport-agnostic protocol, and a tunnel. For the other format, the conversion path lists twelve.
The difference is one entry, and it is the shadow-transport protocol, which appears in the first list and not in the second. So a node using it inside that subscription format has no conversion target.
There is a third, smaller list as well, for the line-per-node format, naming nine URL schemes. And the line format has a second paragraph of detail for the four plain proxy schemes, describing an optional user and password, an optional tag, and two extra parameters for one of them.
The breadth here is the reason to use the project rather than write an importer, and the mismatch is the reason to check your subscription format against the documentation before you import it and assume everything came in.
The Dockerfile in the repository is not the one that builds the published image
There is a comment near the end of the container definition that says more than the rest of the file:
Keep this runtime stage in sync with the other file of the same name in the workflows directory. The images in the package registry are built from that file, not from this one.
So the repository contains two container definitions, and the one you would edit when you build locally is not the one that produces the artefact everyone pulls. The sync between them is a manual instruction in a comment.
The root file is otherwise well made, and it is a good description of what this thing is. The interface is built in a separate stage from a newer Node image, so the compiled web assets are baked into the Go image. The Go build disables the C library, trims paths, and enables four build tags at once, for a QUIC transport, a network tunnel, remote procedure calls and a TLS fingerprint shim. Version, commit and build timestamp are injected as linker flags into an internal build-information package rather than being compiled in.
The runtime stage adds certificates and timezone data, creates a non-root user with a home directory matching one of the three volumes, exposes one port, and hands off to a shell entrypoint script rather than running the binary directly. That last choice is what lets the same image handle the privilege drop and the state directory setup.
One loose end: the badge row links a package path in one container registry while the compose file pulls from another, and the readme does not say which is canonical.
The dependency list is an architecture diagram
Fifteen direct dependencies, and each one tells you something about a design decision.
Two of them are the reason this project is a gateway rather than a proxy. A general-purpose proxy toolkit and its configuration library are direct dependencies, so none of the dozen-plus outbound protocols is implemented here. They are configured.
The rest: a pure-Go database driver and a migration library, so the state is a file and there is no server to run. A GeoIP database reader, which is what makes region-based isolation rules possible. A cron library, which is the scheduler behind active health checks. A password-strength estimator, which means the admin token is measured against a strength model rather than only compared against a placeholder. A non-cryptographic hash for distributing load. A concurrent map library. Remote procedure call support. An environment file loader. A YAML parser and a UUID library.
The database choice is the one that matters operationally. Node health, latency statistics and lease bindings persist across restarts, and they persist in a file you mount as a volume. There is no separate database to back up, and also no replication, so the volume is a single point of failure for exactly the state that makes sticky routing work.
The readme is explicit that the environment template is a template, and also that for runs from a binary a file in the working directory is read with shell and operating-system values taking precedence over it. That precedence rule is documented, which is more than most projects bother with.
The scale figure is asserted and the mechanism behind it is named
The feature list leads with a scale claim and then explains how it is achieved.
The claim is that it handles a hundred thousand nodes or more with native high-concurrency performance. There is no benchmark in the document, no hardware, no configuration, no latency figure. The same list contains several other unquantified adjectives about stability and being enterprise-grade.
The mechanism, by contrast, is specific. Node selection uses power-of-two-choices sampling combined with a latency-weighted score that is aware of the target domain. Power of two choices is the standard way to get good balance out of a large pool without coordinating between workers, and weighting by per-domain latency is what stops a node that is fast for one destination from being picked for a destination it is slow to reach. So the design reasoning is published even though the number is not.
Three other mechanisms in the list are the ones that would change your costs or your operations. Identical nodes appearing in two subscriptions are merged and share one health record, so you stop paying twice for the same exit. Health checks are both passive, watching real traffic, and active, probing outbound addresses, which is what lets a node that is idle but broken be retired. And common settings can be changed and subscriptions refreshed without dropping connections or restarting.
The readme closes by suggesting you feed it and its design document to a model and ask it anything, which tells you something about who the author expects to be reading it.
Editorial conclusion
Resin is worth looking at if you have bought proxies at volume and need one entry point with health management instead of a list, because the subscription formats it accepts are broad and the dedup across subscriptions is the feature that would save you money. Two things to settle first. The deployment example binds to every interface, publishes the port, and sets the admin token to a five-character placeholder on the same port that serves the proxy, so change the token before you start it rather than after. And decide what this is for: it is a routing and failover layer, and it cannot tell you whether a given exit address is one an account-registration system will accept, so never use a node's reachability as evidence that an account will be allowed to exist.
Frequently asked questions
What does the Resin proxy gateway do?
It aggregates many proxy nodes from subscription feeds into one entry point, health-checks them passively from live traffic and actively by probing outbound addresses, and selects a node per request using power-of-two-choices sampling with domain-aware latency weighting. Identical nodes from different subscriptions are merged and share one health record.
How do I deploy Resin?
The quick start is a compose file that pulls the published image, sets an admin token and a proxy token, binds to every interface and publishes one port. Three host directories are mounted for cache, state and logs. The readme notes that adding a listening port later requires pre-publishing the port range, since a running container's published ports cannot be changed.
What credential does Resin use for sticky sessions?
It extracts account identity from headers already present in the request, an API key being the example given, so clients often need no change. The readme describes this as zero-intrusion access, and it also says the gateway keeps complete structured request logs queryable by platform, account and target site.
Can I turn off Resin's proxy authentication?
Yes, by setting the proxy token variable to an empty string, with the variable still defined. Both forward proxy modes are then described as available with no proxy password, on the same port that serves the admin console.
Which subscription formats can Resin import?
A remote URL or content pasted in, in several shapes: a structured sing-box format as an object or a bare array, a Clash format in JSON or YAML, a line-per-node format with several URL schemes, plain proxy lines with or without credentials, and base64-wrapped text. Two outbound type lists are given for the two structured formats and they differ by one entry.
What database does Resin need?
None to run. The state is a pure-Go embedded database with a migration library, held in one of the mounted volumes along with the cache and the logs. There is no separate server, so there is also no replication, and the mounted volume holds the node health, latency statistics and lease bindings that make sticky routing work.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/resinat-resin)Star history chart for your README
[](https://hysenlabs.com/projects/resinat-resin)Was this useful?