# refref

> Self-hosted open-source software for managing referral, affiliate, and loyalty programs with billing provider connections.

- **Category:** Marketing Automation
- **Licence:** AGPL-3.0
- **Open source:** oss
- **Languages:** Typescript
- **Platforms:** Docker Compose
- **Tags:** PostgreSQL, Mcp, Webhooks, Stripe, Sandbox, Typescript, Next.js, Open Source, Self Hosted, Affiliate, Rewards, Drizzle, Loyalty program, Fumadocs, Referral Platform, Referrals, Affiliate Marketing, Loyalty, Referral Program, Vanity Links

## Description

An open-source platform for building and running referral, affiliate, and loyalty programs. It captures referral clicks via a landing script, attributes signups to referrers, applies reward rules for events like purchases, and delivers rewards through billing providers or webhooks. Includes referrer and partner portals, flexible reward types, custom domain links, sandbox testing, and automation webhooks. Runs on PostgreSQL with a Next.js/React frontend. Self-host via Docker Compose or local Node.js 20+ with pnpm. Currently in alpha under AGPL-3.0.

## Links

- [Homepage](https://github.com/amicalhq/refref)
- [Website](https://refref.ai)
- [GitHub Repository](https://github.com/amicalhq/refref)
- [Discord Community](https://discord.gg/fx99JWdfS7)
- [Pricing](https://refref.ai/pricing)
- [Compare](https://refref.ai/compare)
- [Documentation](https://refref.ai/docs/platform)

---
Source: https://selfhost.directory/project/refref