Loading…
Roboflow.com choose Supabase to power Paint.wtf leaderboard
SupabaseRory Wilding
Summary
Brad Dwyer and Erik Dunteman created Paint.wtf to experiment with OpenAI's CLIP model, allowing users to draw images evaluated against text prompts and scored on a leaderboard. While the team initially considered Firebase, the platform lacked built-in document counting functionality essential for their leaderboard architecture. To avoid implementing custom workarounds or exporting data to external systems, they selected Supabase to leverage PostgreSQL's native counting capabilities. After launching on Hacker News, Reddit, and Product Hunt, the platform experienced viral traffic that peaked at over two drawing submissions per second and surpassed one hundred thousand participating users within twenty-four hours. The PostgreSQL-backed infrastructure maintained reliable performance throughout the surge, delivering accurate and up-to-date score rankings under heavy load.
Context
Brad Dwyer and Erik Dunteman sought to build a weekend project called Paint.wtf to experiment with OpenAI's CLIP model for ranking user drawings against text prompts. To power the application, they needed a leaderboard system capable of ranking submissions, but initial tool candidate Firebase lacked built-in functionality for counting collection documents without external exports or custom increment triggers.
Approach / What changed
The team chose Supabase to take advantage of PostgreSQL's native counting capabilities for the leaderboard architecture without needing extra add-ons. They built the application overnight and deployed it to support user submissions evaluated by OpenAI's CLIP model.
Takeaways
- OpenAI's CLIP model evaluates drawings by converting image classification into a text similarity task, avoiding the constraints of fixed category labels and traditional supervised learning.
- Firebase lacked native support for counting documents within a collection, whereas PostgreSQL provided built-in counting suitable for real-time leaderboard rankings.
- Built with Supabase and launched overnight, Paint.wtf scaled across Hacker News and Reddit traffic spikes, handling more than 100,000 user submissions within 24 hours.
Related reading
Supabase ·
Supabase Beta January 2021
Supabase released a collection of platform updates during January 2021 covering database tools, authentication integrations, regional availability, and infrastructure performance. Client libraries added support for PostgREST exact, planned, and estimated count queries to eliminate counting friction commonly experienced in platforms like Firebase. Authentication capabilities expanded to include Facebook and Azure login providers, an in-dashboard GoTrue audit trail, a helper function for user emails, and a prebuilt React Auth Widget. The platform also enabled new database hosting regions in London and Sydney while transitioning storage to GP3 for improved throughput. Furthermore, migrating API subdomains to Route53 alongside custom Let's Encrypt certificates yielded read performance benchmark gains of up to twelve percent.
Paul CopplestoneSupabase ·
Supabase Beta February 2021
Supabase published its February 2021 beta update marking one year of development as an open-source Firebase alternative. The release introduces dashboard interface improvements across the Table view, Auth section, and SQL Editor, which now features autocomplete suggestions for tables and columns. Authentication updates allow user redirection to specific site routes upon invoking signIn and signUp, while a new database management interface lets users configure Postgres replication settings and events for the realtime API. Infrastructure additions include a new deployment region in South Africa and a Docker Compose configuration intended to power local development in the forthcoming CLI. Documentation expanded with resources for GoTrue and Google OAuth, alongside ongoing RFCs covering connection pooling and local workflows.