The Product & Mission
WaitPage is a premium B2B micro-SaaS designed to help startups, creators, and businesses launch new products by building highly engaging, viral waitlists. Instead of a standard email form, it generates a full referral loop where subscribers are assigned a live position in a queue and are incentivized to invite friends to jump ahead.
Target Audience
Startup Founders, SaaS Companies, Creators, and Indie Hackers launching new products who need to capture pre-launch hype and build a massive email list with zero advertising spend.
The Core Problem
Traditional waitlists are static—users sign up and immediately lose interest. WaitPage solves this by gamifying the waitlist. Users are assigned a live position in a queue and given unique referral links; every friend they invite pushes them higher up the ranking, turning a static list into a self-sustaining viral growth engine.
Architectural Deep Dive
Single Page Application (SPA) Engine & Live Editor
Zero-Reload Hash RoutingRecycled and enhanced the core authenticated dashboard from LeadDrop as a highly optimized, zero-reload Single Page Application (SPA) using React 19 state architecture.
- Real-Time Split-Screen Synchronization: Engineered a dual-pane editor where complex form mutations (custom waitlist themes, referral rewards) instantly re-render within a live mock-device preview.
- Client-Side State Persistence: Eliminated costly server round-trips during the editing phase, ensuring the waitlist builder feels native, fluid, and completely frictionless.
- Edge-Rendered Delivery: While the dashboard is an SPA, the public `/[slug]` waitlist pages are fully server-rendered at the Edge, ensuring maximum speed for prospects and perfect crawlability.
Viral Loop Referral Engine
Cryptographic Queue TrackingEngineered a complex cryptographic tracking system to handle live queue positions, referral code generation, and automated ranking adjustments.
- Algorithmic Position Calculation: Built a highly efficient queue engine that calculates a user's true position based on their initial signup timestamp minus their referral bonuses (e.g., jump 10 spots per invite).
- Unique Referral Hash Generation: Autonomously generated cryptographically unique referral codes for every subscriber, ensuring accurate attribution when their friends sign up.
- Live WebSockets Feedback: Utilized Supabase Real-Time to instantly push queue position updates directly to the client's browser whenever a successful referral is registered.
Supabase Relational Security & Margin Optimization
99.9% Profit MarginsArchitected a secure, multi-tenant database using PostgreSQL to manage profiles, waitlists, and subscribers, deliberately optimizing for extreme profit margins.
- Zero-Cost Cloud Architecture: Pivoted away from heavy S3 file hosting, storing purely text-based email queues in PostgreSQL. This architectural decision drops monthly server maintenance costs to virtually $0.00.
- Strict RLS Policies: Guaranteed absolute data privacy for captured subscriber lists by enforcing rigorous PostgreSQL Row-Level Security policies. Users can cryptographically never access emails belonging to other tenants.
- Automated Auth Synchronization: Implemented custom database triggers (`handle_new_user`) to autonomously synchronize Auth state with the public Profiles table upon sign-up.
Cryptographic Billing & Access Management
HMAC-SHA256 Webhook SecurityEngineered a highly secure webhook fulfillment pipeline to unlock premium Pro features (unlimited subscribers, CSV exports).
- Timing-Safe Signature Verification: Engineered a Next.js API route that verifies the origin of every Lemon Squeezy payment event using HMAC-SHA256 hashing, completely neutralizing malicious upgrade exploits.
- Direct Database Mutation: Processed verified subscription activations natively in milliseconds using the Supabase Service Role Key, securely bypassing standard RLS.
- Pro-Gated Export Capabilities: Built a secure, server-side CSV generation endpoint exclusively accessible by active Pro subscribers, enabling them to seamlessly migrate their viral email list to Mailchimp or ConvertKit.
Mastery & Skills Acquired
Post-Mortem: What I Learned
Building WaitPage reinforced the power of product-led growth and gamification in B2B software. By engineering a system where the end-users actively market the product for the creator in exchange for queue status, I learned how to build self-sustaining viral loops that drastically reduce customer acquisition costs (CAC).
Notes for Technical Recruiters
WaitPage demonstrates my ability to engineer complex algorithmic tracking (viral queues and referral jumps) wrapped in an exceptionally polished UI. The pivot from a file-hosting platform to a text-only database system showcases my understanding of cloud unit economics and margin optimization (achieving near 100% profit margins by eliminating S3 storage overhead).
