216 stars · AGPL-3.0 · no releases; 113 commits · Track this in Scout
Open-source referral and affiliate programmes — attribution, incentives and a partner portal.
▶Repo detailsthe review · specs · pros & cons · install
What it is
RefRef is a self-hosted referral platform written in TypeScript on Next.js and PostgreSQL. It issues referral links, attributes signups and purchases to the person who sent them, calculates rewards under rules you set, and gives partners a portal showing what they have earned.
What it is good for. A small business paying a monthly fee for a referral service, or one that has put off starting a referral programme because the tools are priced for larger companies. Running it yourself also means the customer list stays on your own machine.
- The only open-source project in this category this report has managed to find in thirty-one editions. Everything else here is a paid service.
- Attribution, reward rules, fraud checks and a partner portal are all in the one project, so there is nothing to stitch together.
- Built on ordinary parts — Next.js and PostgreSQL — so anyone who has run a web application can run it.
- 222 stars and no releases at all. There is no version to pin, so an install means choosing a commit and writing it down. Code last landed on 20 March 2026.
- AGPL-3.0. If you change it and offer it to other people over a network, you have to publish your changes. For running it as part of your own business that is usually fine; for embedding it in a product you sell, read the licence first.
- It is young. Expect gaps, expect to read the source, and do not make it the only record of who is owed money.
git clone https://github.com/amicalhq/refref.git cd refref # it needs Node.js and a PostgreSQL database cp .env.example .env # then set DATABASE_URL and the app URL npm install npm run db:push npm run dev # http://localhost:3000


