Refreal tracks referrals, commissions and payouts for Polar.sh, Stripe and custom checkouts. Deploy it to your own Cloudflare account in about ten minutes.
Full source code. Your data stays in your own database.
Nothing to wire by hand: the tracker script does the tagging.


Tracking, commissions, a portal for affiliates and a payout workflow, in one small app you control.
One script tag captures ?via=CODE, sets a cookie and tags your Polar or Stripe checkout links, even on a different domain.
Signed webhooks for Polar.sh and Stripe, plus an API-key endpoint for anything else. Refunds reverse the commission.
A percentage or a flat amount per sale. Set a default, then override it for individual affiliates.
Choose how long a click can earn commission, globally or per affiliate. Late sales are logged, not paid.
Every affiliate gets a private link with their stats, referral URL and payout details. No accounts to manage.
Add affiliates yourself, or turn on the public sign-up page and approve applications from the dashboard.
Approve conversions, mark them paid in one action, and export a CSV. Affiliates choose PayPal, Wise, bank or manual.
Welcome, approval and payout emails via Resend, Brevo or Mailgun. Optional, and off until you turn it on.
Signed webhooks are required once a secret is saved, sessions are signed, and every form is CSRF-protected.


Your dashboard. Clicks, conversions, revenue and unpaid balance at a glance, with the latest sales and your top affiliates.


Manage affiliates. Approve applications, set commission rates, and copy each affiliate’s portal link.


Pay in batches. Review conversions by status, approve them, mark them paid and download a CSV.


One settings page. Webhook URLs, attribution rules, sign-up options and email providers, all in one place.


What affiliates see. A clean page with their link, clicks, earnings and payout details. Same look in light and dark.
Hosted affiliate tools charge monthly, often take a cut, and keep your partner list on their servers. Refreal runs in your Cloudflare account, so the list, the numbers and the payouts are yours to keep.
One payment for the software. Cloudflare’s free plan covers a normal program.
Everything sits in a D1 database in your account. Export or query it any time.
No server, no PHP and no operating system to keep up to date.
Push the folder to GitHub, connect it in Cloudflare Pages and attach a D1 database. The schema installs itself.
Paste one script tag into your storefront. It logs clicks and tags your checkout links on its own.
Copy the webhook URL from Settings into Polar, Stripe or your own checkout.
Add your first one yourself, or open the sign-up page and approve applications.
Refreal is a Cloudflare Pages project with a D1 database. Pages are server-rendered at the edge, and the only database work happens when someone clicks, buys or opens the dashboard.
| Static files | Unlimited |
| Function requests | 100,000 / day |
| D1 rows read | 5 million / day |
| D1 rows written | 100,000 / day |
| Cost on the free plan | $0 |
Cloudflare free-plan limits at the time of writing. Check Cloudflare’s pricing page for current numbers.
Black Friday$96.85 with code at checkout (−35%)
One-time payment through Polar.sh. Runs on Cloudflare’s free plan.
Want to see it first? Try the live demo
No. $149 once, with no license check-ins, no usage caps and no renewal. Running it costs whatever your Cloudflare plan costs, which for most programs is nothing.
A free Cloudflare account and a GitHub repository (private is fine). Refreal deploys as a Cloudflare Pages project with a D1 database. There is no server to maintain and no PHP.
Polar.sh and Stripe, including plain checkout links and Payment Links. A generic API-key webhook covers any other store or custom checkout.
Static files are unlimited. Each tracked click is one function request, and the free plan allows 100,000 per day plus 5 million D1 row reads and 100,000 row writes daily. That is far beyond a typical affiliate program.
Yes. You receive the full source and deploy it into your own Cloudflare account, so your data stays in your own database. See the license for what you may do with it.
Yes. The live demo is a sandbox storefront wired to test-mode Polar and Stripe checkouts, so you can run a referral end to end without spending anything.
Partly. Refreal’s name still shows in the portal header and email templates. You can set your own Program Name in Settings, which is used in the portal labels.
Pay once, deploy to your Cloudflare account and keep everything it earns you.