Developer Builds AI Photo Restoration App Using Next.js, Supabase, and Replicate
A software developer created PixRestorer, an AI-powered photo restoration web app, after finding faded family photographs from the 1980s. The application is built on Next.js 16, uses Supabase for authentication and database management, Cloudflare R2 for image storage, and Replicate to run AI restoration models. The app features an atomic credit-deduction system using a single SQL update to prevent race conditions, and automatically refunds credits if an AI model call fails. Migrating from a VPS to Cloudflare Workers introduced challenges around middleware naming, request body size limits, and in-memory rate limiting. PixRestorer is publicly accessible at pixrestorer.com, and the developer has shared the full technical walkthrough for others building similar tools.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in