Skip to content
envexa

Concept Project · SaaS product

Referral Management SaaS

A concept SaaS that lets a business run referral campaigns end to end: generate links, attribute signups and purchases, and issue rewards without spreadsheets.

  • Next.js
  • TypeScript
  • Node.js
  • PostgreSQL
  • Redis

Concept Project. This is not a client engagement. The interface is a designed concept using sample data, and no users, revenue or production results are implied.

The problem

A realistic business problem.

Referral programmes are often run manually: a shared code, a spreadsheet of signups and a monthly reconciliation. Attribution is disputed, rewards are late, and nobody knows which referrers actually drive revenue.

Off-the-shelf tools can be rigid or expensive for early-stage companies with unusual reward rules.

Proposed solution

How the concept addresses it.

The concept provides campaigns with configurable reward rules, unique tracked links per referrer, and an attribution service that records click, signup and conversion events in an append-only ledger. Rewards are computed from the ledger, which makes them auditable.

Administrators see campaign analytics and leaderboards; referrers see their own link, progress and rewards.

Product features

Core capabilities.

  • Campaign builder

    Configure reward rules, eligibility windows and caps per campaign.

  • Unique referral links and codes

    Each referrer receives a shareable link and code.

  • Conversion tracking

    Click, signup and purchase events are attributed with a clear funnel.

  • Reward ledger

    Rewards are derived from immutable events so every payout can be explained.

  • Leaderboards

    Optional public or private rankings to motivate referrers.

  • Fraud signals

    Basic checks for self-referral and duplicate devices flag suspicious activity for review.

Interface

Product screens.

Concept interface compositions that show key states of the product.

Engineering architecture

How it is built.

The request path runs top to bottom. Supporting services handle asynchronous work, state and external providers.

Architecture of Referral Management SaaS: Frontend (Admin dashboard, Referrer portal, Embeddable widget) then API layer (Node.js API, Tracking endpoint, Webhook receiver) then Business logic (Attribution, Reward rules engine, Fraud checks) then Database (PostgreSQL, Event ledger, Tenant-scoped tables). Supporting services: Redis, Background worker, Email service, Billing integration.

Technical challenges

What makes it hard.

  1. 01

    Attribution that holds up to disputes

    Recording immutable events with timestamps and sources lets the system explain every attribution decision.

  2. 02

    Tenant isolation

    Every table is tenant-scoped, enforced with row-level security so that a coding mistake cannot leak data between customers.

  3. 03

    Abuse resistance

    Rate limits, self-referral detection and a review queue discourage gaming without punishing real users.

Technology decisions

What we chose, and why.

Append-only event ledger
Derived metrics and rewards can be recomputed and audited at any time.
Row-level security in PostgreSQL
Tenant isolation enforced by the database is safer than relying on every query to filter correctly.
Tracking endpoint separate from admin API
High-volume, public, write-heavy traffic scales and is secured differently from the admin interface.
Rewards computed asynchronously
Reward rules can be complex and change; workers recompute without slowing tracking.

Outcome

What this concept shows.

No performance claims. Here is what the prototype demonstrates and how a production version would differ.

What the prototype demonstrates

  • The full referral funnel: link generation, click, signup, conversion
  • A transparent leaderboard and metrics view
  • How event-based design keeps attribution explainable

Problems it addresses

  • Manual reconciliation of referral signups
  • Disputed attribution and delayed rewards
  • Limited visibility into top referrers

What production would add

  • Signed tracking links and bot filtering
  • Payout integrations and tax-aware reward types
  • Per-tenant branding and custom domains

Possible future features

  • Tiered rewards
  • Two-sided incentives
  • A/B testing of reward structures

Want something like this for your business?

We can scope a version of referral management saas around your data, users and constraints, and tell you honestly what it would take.