Referral Center

Turn the reusable referral module into a user-facing growth console.

This page gives the product shell a real referral center: a shareable invite link, performance stats, and history. In the matching quickstart backend, attribution and reward activation are already wired end-to-end.

Environment

Host contract

http://localhost:3000
Referral base linkhttp://localhost:3000/invite?ref=
Backend read routes/referral/code • /referral/stats • /referral/list
Signup attributionAlready wired by the quickstart templates when login completes.

My referral link

Loaded from GET /referral/code.

Sign in to load your referral data.

Referral stats

Loaded from GET /referral/stats.

No stats loaded yet.

Referral history

Loaded from GET /referral/list.

No referrals yet.

Integration boundary

What stays reusable, and what consumers still replace.

`go-modules/modules/referral` owns referral schema, code generation, read APIs, and activation events. The quickstart templates add the remaining host glue needed for a runnable product reference: browser capture, signup-time attribution, and reward activation after Stripe subscription activation. Consumers still replace reward policy, product copy, and any custom user model, but they do not need to invent the core referral flow.