Master prompt builds a full pay-to-rank app: schema, Stripe, RLS included

aliscodes · x · 2026-08-23

The author shares a Master Prompt for Cursor / Claude Code / Antigravity that builds a real-time pay-to-rank leaderboard: Next.js 14 App Router + TypeScript, Supabase Postgres, Stripe Checkout, no auth. It includes the full schema — an entries table (url, unique urlkey, amountcents, firstpaidat), a payments table (unique stripeeventid for idempotency), a partial index on amountcents desc, and RLS enabled. URLs are normalized (lowercase, strip www, drop query/hash) to collapse duplicates; payments flow through an applypayment Postgres function.

Related event: Indie Hackers Ship Pay-to-Rank Leaderboards in a Day, One Shares the Full Blueprint(6 posts)→

Original post →

More from coding & agent

coding & agent channel →