Refreal is self-hosted affiliate tracking: one script, your own server, nothing rented. Track clicks, attribute sales through Polar, Stripe, or your own checkout, and keep the whole commission conversation between you and your affiliates — no platform in the middle taking a cut.
Runs on any PHP 8+ host.
No add-ons. No higher tier hiding half of this behind a paywall. It's all here, in the one install.
One script tag, works cross-domain, under 3KB.
Configurable cookie lifetime and attribution window — global or per affiliate.
Webhooks for Polar and Stripe, plus a generic one for anything else you sell through.
Let affiliates apply themselves, with an approval queue if you want one.
Referral link, live stats, payout profile and history.
Approve, mark paid, export a CSV for PayPal, Wise or a bank run.
PHP mail or SMTP built in — no third-party service.
Your own program name and minimum payout threshold, right in the portal.
No Redis, no queue, no Node process to babysit.
The real admin panel and the real affiliate portal. What you install is what's below.
Most affiliate platforms take a cut of every sale they help you track. Grow the program and you grow their bill. Refreal breaks that link: pay once, run it on a server you already have, and keep everything it earns you from day one.
Full source. Your own database. Every click, conversion, and affiliate email sitting in one SQLite file you can back up, inspect, or move — no export request, no support ticket, no waiting on someone else's API.
$149 once. No license check-ins, no usage caps, no surprise renewal.
Grow the program without growing someone else's bill.
Back it up like any other file. Nothing lives on a server you don't control.
Read it, change it for your own use, run it on your own domain.
Drop the folder on your server and load it once — the database and your secrets set themselves up.
Paste one script tag into your storefront. It handles clicks, cookies, and tagging your checkout link on its own.
Copy the webhook URL from Settings into Polar, Stripe, or your own checkout.
Add your first one yourself, or flip on self-serve signup and let them apply.
One-time payment. Runs on PHP 8+ and SQLite — most shared hosting already qualifies.
Want to see it first? Try the live demo →
No. $149 once — no license check-ins, no usage caps, no surprise renewal.
Polar.sh and Stripe out of the box, including plain checkout links that open in a new tab. A generic webhook covers anything else your store uses.
No — it's a single SQLite file, created automatically the first time you open the install. Back it up like any other file.
Yes — the live demo is a sandbox storefront wired to test-mode Polar and Stripe checkouts, so you can try a referral end to end without spending anything.
Not entirely — Refreal's own name still shows in a couple of places (the portal header, email templates). What you can rename is the "sale" label on each conversion in their portal, via Program Name in Settings — so instead of "Polar sale" they see "Acme sale" instead.
Pay once, run it on a server you already have, and keep everything it earns you.