Velora — Server-Authoritative Progression Platform
Real-Time Gamified Task Execution with Zero-Trust Authorization & Review Automation
Executive Overview
Velora is a production-grade gamified task execution and daily mission platform engineered with Next.js 16, React 19, TypeScript, and Supabase. Players tackle curated real-world challenges, submit photo proofs, build persistent streaks, and climb dynamic leaderboards. Incorporates strict server-authoritative reward distribution, reviewer audit workflows, automated 24-hour mission publication crons, and mobile progressive web app (PWA) installation.
The Challenge & Solution
The Core Problem: Gamification web platforms commonly suffer from client-side exploitation where users manipulate JavaScript memory state to spoof completed tasks or artificially inflate leaderboard scores.
The Engineering Solution: Engineered a strict server-authoritative architecture using Next.js Server Actions and Supabase PostgreSQL Row Level Security (RLS). Rewards (XP and coins) can only be minted via backend database functions triggered upon administrative review approval. Automated daily missions are scheduled and deployed through Vercel Cron jobs running on 24-hour cycles.
System Architecture & Data Flow
Key Engineering Highlights
Server-Authoritative Progression
Players cannot alter their XP, coin balances, or quest states; all mutations are guarded by PostgreSQL RLS.
Comprehensive Admin Review Suite
High-efficiency dashboard allowing administrators to audit submission photo proof, approve/reject, and award bonus XP.
Automated 24-Hour Rotation
Zero-maintenance mission cycle powered by automated Vercel Cron API routes.
Real-Time Global Leaderboards
Live player rankings computed directly via indexed database views and updated dynamically upon mission approval.
Progressive Web App (PWA)
Seamless offline caching and standalone home-screen launch on mobile devices.