Black Friday

35% off Refreal — use code at checkout

Get it →
FeaturesHow it worksPricingDocsLive demoGet Refreal — $149
Runs on Cloudflare’s free plan

Your own affiliate program, without the monthly fee.

Refreal tracks referrals, commissions and payouts for Polar.sh, Stripe and custom checkouts. Deploy it to your own Cloudflare account in about ten minutes.

$149one-time. No subscription, no revenue share.

Full source code. Your data stays in your own database.

How a sale is credited
StepHappens onResult
Visitor opens ?via=MAYA25Your siteClick logged
Checkout link is taggedPolar / StripeID attached
Order is paidWebhookCommission set
Order is refundedWebhookReversed

Nothing to wire by hand: the tracker script does the tagging.

Refreal dashboard showing clicks, conversions, revenue and recent salesRefreal dashboard showing clicks, conversions, revenue and recent sales (dark mode)
Cloudflare Pages + D1 Unlimited affiliates Signed webhooks Pay once, no revenue share
Features

Everything an affiliate program needs, nothing it doesn’t.

Tracking, commissions, a portal for affiliates and a payout workflow, in one small app you control.

Click tracking that survives checkout

One script tag captures ?via=CODE, sets a cookie and tags your Polar or Stripe checkout links, even on a different domain.

Polar, Stripe and custom checkouts

Signed webhooks for Polar.sh and Stripe, plus an API-key endpoint for anything else. Refunds reverse the commission.

Flexible commissions

A percentage or a flat amount per sale. Set a default, then override it for individual affiliates.

Attribution windows

Choose how long a click can earn commission, globally or per affiliate. Late sales are logged, not paid.

Affiliate portal

Every affiliate gets a private link with their stats, referral URL and payout details. No accounts to manage.

Two ways to onboard

Add affiliates yourself, or turn on the public sign-up page and approve applications from the dashboard.

Payouts without spreadsheets

Approve conversions, mark them paid in one action, and export a CSV. Affiliates choose PayPal, Wise, bank or manual.

Email through your provider

Welcome, approval and payout emails via Resend, Brevo or Mailgun. Optional, and off until you turn it on.

Locked down by default

Signed webhooks are required once a secret is saved, sessions are signed, and every form is CSRF-protected.

See it

A dashboard you’ll want to open.

Overview screenOverview screen (dark mode)

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

Why self-hosted

Your affiliates, your data, your bill.

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.

How it works

From download to first affiliate in an afternoon.

Deploy to Cloudflare

Push the folder to GitHub, connect it in Cloudflare Pages and attach a D1 database. The schema installs itself.

Add the tracker

Paste one script tag into your storefront. It logs clicks and tags your checkout links on its own.

Connect checkout

Copy the webhook URL from Settings into Polar, Stripe or your own checkout.

Bring on affiliates

Add your first one yourself, or open the sign-up page and approve applications.

Built for Cloudflare

Fits the free plan.

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 filesUnlimited
Function requests100,000 / day
D1 rows read5 million / day
D1 rows written100,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.

Pricing

One price. Everything included.

Refreal licenseqty 1
$149one-time

Black Friday$96.85 with code at checkout (−35%)

  • Full source code for Cloudflare Pages + D1
  • Polar, Stripe and custom checkout
  • Unlimited affiliates and conversions
  • Affiliate portal and public sign-up page
  • Lifetime updates
Get Refreal

One-time payment through Polar.sh. Runs on Cloudflare’s free plan.

Want to see it first? Try the live demo

FAQ

Questions

Is there a monthly fee anywhere?

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.

What do I need to run it?

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.

Which checkout providers does it support?

Polar.sh and Stripe, including plain checkout links and Payment Links. A generic API-key webhook covers any other store or custom checkout.

How much traffic can the free plan handle?

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.

Do I get the source code?

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.

Can I try it before buying?

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.

Can I white-label it for my affiliates?

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.

Own your affiliate program.

Pay once, deploy to your Cloudflare account and keep everything it earns you.