We are open source! Star us on Github >

Referral Marketing Made Effortless

Run referral, affiliate, and loyalty programs for your product with RefRef's free and open-source platform. RefRef connects each signup to the person who referred it and records the Rewards that your rules give.

01Why RefRefGrowth

Unlock a Self-driving, Low-CAC Growth Engine

Turn your customers into advocates and grow your business with a powerful referral program.

Reduce dependency on expensive ads

Turn customers into advocates.

Automate attribution and Rewards

RefRef connects each signup to its referrer and applies your rules.

Sandbox and Live for each Project

Test your integration in Sandbox before you go live.

82%

of consumers trust referrals from people they know.

- Nielsen

5X

Lower CAC than paid ads - referral customers cost significantly less.

- HubSpot

3X

Higher LTV - Referred customers are more loyal and spend more.

- Harvard Business Review

02PlatformCore features

Core Platform Features

The core of every RefRef Program, from the first click to the Reward.

Attribution

RefRef connects each new account to the click or code that brought it, and keeps that referral for later purchases.

Link shared
Link clicked
Signed up
Purchased plan
Click
Code
Recorded

Partner tracking

Partners follow their referrals and Rewards in the Partner app.

Your Referrals

Track your referral status

24
Total Referrals
8
Active
$1,200
Earnings
SC
Sarah Chen
completed
Reward$50
MJ
Mike Johnson
pending
Reward$50
ED
Emma Davis
completed
Reward$50
AR
Alex Rivera
pending
Reward$50
JK
Jordan Kim
completed
Reward$50

Custom Rewards

Give cash, account credit, discounts, or a custom reward such as merchandise.

$50
Cash
Direct payout
$75
Store Credits
Account balance
20%
Discounts
Off next purchase
Gift
Physical Goods
Exclusive merch

Links and join pages

Give referrers readable links, also on your own domain, and give partners a public join page.

acme.refref.ai/r/th5tdf

Hey Alex! 👋

Sarah invited you to Acme

Get Free 2 months
for each successful referral
✨
💰
03Setup3 easy steps

Setup in 3 easy steps

Start in a Sandbox Project, then go live when your test referral works.

Step 01

Add RefRef to your product

Add the landing script to your website, and send signups and purchases from your backend.

Add RefRef Script

Copy and paste this script into the <head> section of your website

<script src="https://cdn.refref.ai/scripts/full.js" async></script>

Place this script tag in your HTML <head> section before the closing </head> tag

Step 02

Set up your Program in the Console

Choose who gets a Reward, for which Event, and how much. Test it in Sandbox first.

Program Settings

Configure your referral program

per referral

Both referrer and referee receive rewards when a referral is completed

Referrer Reward$50
Referee Reward$50

Step 03

Connect your billing provider

Connect Stripe, Paddle, Polar, Dodo Payments, or RevenueCat to send purchases, and deliver credits, discounts, or plan upgrades where the provider supports them.

Billing Connection

Select your billing provider

Stripe
Polar
Paddle
Dodo Payments

Stripe integration enabled. Rewards will be automatically disbursed.

Step 04

That's it!

Your customers copy their referral link from the Widget in your product.

Setup Complete!

Your referral program is ready. Users can now start referring and earning rewards.

04Open sourceNo lock-in

Why Open-Source?

Free & Customizable

Start on the free plan, and read the code to see how attribution and Rewards work.

No Vendor Lock-in

Read every referral, Event, and Reward through the API and webhooks, and keep your own copy.

Community-Driven

Transparent development process with innovations driven by the community's needs.

05RewardsReward types

Multiple Reward Types

Choose the reward of each rule. RefRef records each Reward and delivers it, or tells your product to grant it.

Cash Rewards

Pay out by PayPal, or pay them yourself.

Cash Payouts

Paid out in USD

PayPal
Automated payouts
Manual
Automated payouts
Next payout
$1,250.00
Scheduled

Store Credits & Discounts

Drive repeat purchases & engagement.

Store Credits & Discounts

Drive repeat purchases

Discount Code

REFER20
20% off for new customers
Store Credit Balance
$75.00
Auto-apply at checkout
Expires after 90 days

Custom Rewards

Give merchandise, gifts, or your own units.

Physical Goods

Exclusive merchandise & gifts

👕
Premium T-Shirt
Exclusive reward
☕
Branded Mug
Exclusive reward
🎨
Sticker Pack
Exclusive reward
Free shipping worldwide
Reward unlocked
07FeaturesEverything included

Everything a Program Needs

Attribution, Rewards, and delivery for referral, affiliate, and loyalty Programs.

Attribution

A code entered at signup wins; otherwise RefRef credits the latest eligible click. A recorded referral names the referrer directly.

Referral Widget

Show each customer their referral link inside your product.

Flexible Rewards

Reward the referrer with cash, credit, a discount, or a custom reward, and the friend with credit, a discount, or a custom reward.

Vanity Links

Give referrers readable links, also on a custom domain of your own.

Qualifying Events

Choose which Events create a referral, such as a signup or a first purchase.

Reward Limits

Limit how many Rewards a rule gives each person.

Program Overview

See the referrals, Events, and Rewards of each Program in the Console.

Integrations

Connect Stripe, Paddle, Polar, Dodo Payments, or RevenueCat. A Project can use several billing providers.

Affiliate Partners

Invite partners or approve their applications. Partners share their links and follow their Rewards in the Partner app.

Loyalty Programs

Reward members for purchases or for your own Events, such as a review.

Webhooks

Get a signed webhook for each new referral, Reward, and payout, and connect Zapier, Make, or Activepieces through webhook recipes.

Reward Delivery

RefRef applies credits, discounts, and plan upgrades through your billing provider, or your product grants the Reward.

08FAQAnswers

Common Questions & Answers

Answers to common questions about RefRef, the open source referral platform.

01

What is RefRef?

RefRef is an open source platform for referral, affiliate, and loyalty programs for software and commerce products. It gives referrers their links, connects new customers to the person who referred them, and records and delivers the Rewards that your rules give.
02

How does RefRef work?

A referrer shares a link. The RefRef landing script on your website records the click in a first-party cookie. When the new customer creates an account, your backend sends the signup to RefRef with that cookie, and RefRef connects the customer to the referrer. Later purchases use the same referral, and your rules decide the Rewards.
03

How do I integrate RefRef with my product?

Add the landing script to your website, send signups from your backend, and connect your billing provider for purchases. The docs have guides for common auth systems, billing providers, and stores.
04

What types of businesses can use RefRef?

B2B and B2C software, AI apps, subscriptions, and marketplaces. RefRef names each customer with your own ID, either a person or a company account.
05

Can I test RefRef before I go live?

Yes. Each Live Project has a paired Sandbox Project with its own ID, and an API key reaches only one environment. Test in Sandbox, then switch the key and the Project ID.