Before launching Relowme I wanted a waitlist that did three things: collect real businesses, reward the people who spread the word, and stay free of junk. The result was a bilingual landing page with a founder code limited to 20 spots per leaderboard, a referral system where every invite moves you up one spot, and seven layers of protection so that no bot, disposable email or mass-signup script ever counts.
This post covers every decision, including the ones I changed halfway through.
What is Relowme and why start with a waitlist?
Relowme puts a business's loyalty program in its customers' phone wallet (Apple Wallet and Google Wallet) and uses an AI agent to automatically win back customers who stop coming. The loyalty card is the hook; bringing customers back is the goal.
Before opening the doors I wanted to validate three things:
- that there are businesses willing to replace the paper stamp card,
- how much they would pay,
- which countries they are in.
A well-built waitlist answers all three. A badly built one gives you a table full of test@test.com and addresses you will never be able to reach.
Which stack did I use?
- Nuxt 4 with Vue 3 and TypeScript, deployed on Netlify.
- Supabase (Postgres) for the waitlist table, the leaderboard views and the SQL functions.
- Resend for verification and referral emails.
- Cloudflare Turnstile as an invisible captcha.
- zod to validate the same schemas on the client and the server.
- @nuxt/content and @nuxtjs/seo for the blog, technical SEO and the files for AI assistants (
llms.txtand a.mdversion of every page).
How is the launch campaign structured?
The campaign has four pieces that feed each other:
- A bilingual landing page. Spanish at
/and English at/en. A Netlify edge function reads the visitor's country and picks the language on the first visit; after that, the language switcher's cookie wins. - A three-step waitlist. First, only the email (minimum friction so nobody drops off). Then the business details: country, name, type of business, optional phone number, the tool they use today, when they want to start and how much they would pay. Finally, their spot on the leaderboard and their referral link.
- A blog with lead magnets. Five articles in each language, each with a downloadable resource: a calculator for how much losing a customer costs, win-back message templates, a quiz and an anti-fraud checklist. When someone gets the resource, they are invited to the waitlist with their email already filled in.
- The founder code and referrals, the engine that makes the list grow on its own.
A detail that turned out to be really useful: step 2 records how "warm" the lead is. Someone who wants to start "as soon as it launches" and picked a high price range is the first person to call.
Why limit the founder code to 20 spots?
The founder code gives 40% off the first year of any annual plan. The first 20 businesses on each leaderboard get one.
I didn't start at 20. I started at 100, dropped to 40 and ended at 20 per leaderboard. Here's why:
- Scarcity has to be believable. A hundred spots on a list that is just getting started don't feel scarce. Twenty do, and they make sharing the link worth it.
- 40% off for a year is expensive. If a hundred businesses get it, the first year of revenue is gone. With twenty per leaderboard the cost is bounded and it is still a real reward.
- Two leaderboards so nobody competes at a disadvantage. One leaderboard is for businesses in Spanish-speaking countries and another for the United States and the rest of the world. Without this, a bigger or more active market would have taken every spot. The leaderboard depends on the business's country, not on the language it signed up in.
- It is personal and non-transferable. It is sent by email and never shown on screen, so nobody can copy it and hand it around.
- It is not sent automatically. At launch I freeze the leaderboard, review it by hand and only then send the codes. That leaves one last human filter against any trick that got past the automated checks.
How do referrals move you up the leaderboard?
Every business gets a personal link (?ref= plus the first 8 characters of its id). When someone signs up with that link and confirms their email, the person who invited them moves up one spot.
Why "move up one spot" instead of "sort by number of referrals"?
The first version sorted by referral count and then by signup date. It had a problem: a business with 3 referrals jumped over everyone with 2, no matter when they arrived. The leaderboard felt arbitrary and was easy to game with a handful of accounts.
The final version replays events in chronological order:
- When a business confirms its email, it enters at the bottom of its leaderboard.
- Each valid referral swaps the referrer with the business right above it.
- The time of a referral is the later of the invitee's confirmation and the referrer's confirmation.
Each valid referral = moving up exactly one spot.
In simplified form, the replay looks like this:
type Event =
| { type: 'confirmed', at: Date, businessId: string }
| { type: 'referral', at: Date, referrerId: string }
function replay(events: Event[]): string[] {
const board: string[] = []
for (const event of [...events].sort((a, b) => +a.at - +b.at)) {
if (event.type === 'confirmed') {
board.push(event.businessId) // enters at the bottom
continue
}
const i = board.indexOf(event.referrerId)
if (i > 0) {
// swap with the business right above
[board[i - 1], board[i]] = [board[i], board[i - 1]]
}
}
return board
}
Simplified for this article. The real logic runs in SQL and also applies the rules below.
This has three advantages: arriving early still matters, nobody makes a huge jump with a handful of accounts, and I can tell each business exactly how far it has to go: "You need 4 more verified referrals to reach the top 20 of your leaderboard."
What rules does a referral have to meet to count?
- The invitee has to confirm their email. An unverified signup doesn't move anyone.
- A business can't refer itself.
- Neither the invitee nor the referrer can be disqualified.
- A cap of 20 referrals per business (it started at 10). If you are already #1, the referral counts toward the cap but doesn't move you.
- If I disqualify a signup or revoke a referral, the replay ignores it and the leaderboard ends up as if it had never existed.
- If the leaderboard is frozen, only what was verified before the freeze date counts.
How does someone find out their referral counted?
When an invitee confirms their email, the referrer gets an email with their valid referrals, their spot and how far they are from the top 20. Each referral is announced only once, and the notifications stop at the cap (the 20th referral triggers an email saying the maximum has been reached).
The bug that almost cost me every English referral
On /en, which is a prerendered page, the Nuxt router replaces the URL during hydration. I was reading ?ref= in onMounted, by which point the parameter was already gone. The result: English signups were saved without a referrer, didn't count and nobody was notified.
The fix was to read ref and the UTM parameters in a client plugin that runs before everything else (enforce: 'pre'):
// plugins/attribution.client.ts
export default defineNuxtPlugin({
name: 'attribution',
enforce: 'pre',
setup() {
const params = new URLSearchParams(window.location.search)
const ref = params.get('ref')
if (ref) sessionStorage.setItem('ref', ref)
// ...same for utm_source, utm_medium, utm_campaign
},
})
Simplified for this article.
Lesson: on prerendered pages, capture attribution parameters as early as possible.
Which safeguards did I add against fake, mass or unreachable signups?
A referral system with a prize is an invitation to cheat. I added seven layers, in the order they run on the server.
1. Honeypot field
The form has a hidden field that a person never sees. If it arrives filled in, the server responds "success" but saves nothing. The bot thinks it worked and doesn't try anything else.
2. Per-IP rate limits
Every attempt is recorded before anything else is validated. There is an hourly and a daily signup limit per IP, even across different emails, and a separate limit for resends of the same email. Past the limit, the server responds 429 with Retry-After and saves nothing and sends no email.
- I don't store the IP. Only a SHA-256 hash of the IP with a private salt. It lets me count and detect abuse, but I can't tell who it is.
- I don't reveal whether an email already exists. The resend limit also counts the original signup, so the response is the same for a new email and an existing one.
3. Cloudflare Turnstile, with a controlled fallback
Turnstile verifies on the server that the sender is a person. The problem: some people have blockers, filtered DNS or a VPN, and the widget never loads for them. I didn't want to lose those signups.
The solution was a tightly scoped fallback:
- It only kicks in if Cloudflare's script fails to load after 2 retries. A failed challenge or a configuration error does not trigger it.
- Signups without Turnstile have much stricter limits, per IP and also global (across all IPs), so an attack can't exploit the gap.
- They are flagged in the database and still need to confirm their email.
- If the limit is exceeded, or the limit query fails, Turnstile is required with no exceptions.
4. Email normalization
Juan.Perez+relowme@gmail.com and juanperez@gmail.com are the same inbox. So nobody can refer themselves with variants, I normalize: lowercase, no +tag and, for Gmail, no dots. Uniqueness is checked against the normalized email, not the one the person typed.
function normalizeEmail(email: string): string {
const [local, domain] = email.trim().toLowerCase().split('@')
let user = local.split('+')[0]
if (domain === 'gmail.com' || domain === 'googlemail.com') {
user = user.replaceAll('.', '')
}
return `${user}@${domain}`
}
Simplified for this article.
5. No disposable emails
I reject temporary email domains (Mailinator and friends), including their subdomains, using a community-maintained list.
6. The domain has to receive email
I look up the domain's MX records (and, if there are none, A or AAAA) with a 3-second timeout. If the domain doesn't exist or doesn't receive email, the signup is rejected. Big providers (Gmail, Outlook, iCloud and so on) are accepted without a DNS lookup, and results are cached in memory for an hour. If DNS fails because of a network error, I let the signup through: I'd rather let one bad signup in than lose a real business.
7. Mandatory email verification
This is the most important lock: nothing counts until you confirm your email. Not your spot, not your referrals, not your answers in the analytics.
- The token is 32 random bytes, and the database only stores its hash, with a 7-day expiry.
- The link is idempotent: if it is opened twice (or an email security scanner opened it before the person did), it shows the confirmation instead of an error.
- A resend invalidates the previous token and is limited to one every 2 minutes and 5 per day.
Plus: the browser never reads the database
The table has RLS enabled with no public policies. Only the server reads and writes, using a secret key. The browser never touches the table; to show your spot, the server requires the id and the email to match the same row.
What about whatever still gets through?
No automated filter is perfect, so I built tools for manual review:
- A review view with the top 30 of each leaderboard: their referrals, the email domains of those referrals, the time between the first and last referral, and how many didn't complete step 2. Twenty referrals in ten minutes, all from an odd domain, stand out on their own.
- Disqualify with one line of SQL, either the whole business or only as a referrer. The replay recalculates the leaderboard as if it had never existed.
- Freeze the leaderboard at a date. From then on nothing moves it.
- Automatic cleanup with
pg_cron: every day it deletes unverified signups older than 14 days (except those with verified referrals) and attempts older than 30 days.
What did I learn?
- Start with fewer spots than you think. It's easier to open spots than to take them away.
- Make every referral worth the same. "Move up one spot" is fairer, harder to game and easier to explain than "sort by number of referrals".
- Email verification is the lock that holds up the rest. Everything else reduces noise; verification decides what counts.
- Give fallbacks their own limits. The Turnstile fallback saved real signups without opening a door for bots.
- Leave a human at the end. Codes go out after a review, not automatically.
- Test every flow in every language. The referral bug only happened in English.


