A Background-remover application finished by Ai
I Built a Free AI Background Remover Using Cloudflare Workers + D1 I spent my weekend building an AI background remover website, with both frontend and backend deployed on Cloudflare, costing almos...

Source: DEV Community
I Built a Free AI Background Remover Using Cloudflare Workers + D1 I spent my weekend building an AI background remover website, with both frontend and backend deployed on Cloudflare, costing almost nothing. Here's my development journey and some lessons learned. 🌟 Project URL https://zmjjkk.xyz 🔧 Tech Stack Frontend: Static HTML + JavaScript (Cloudflare Pages) Backend: Cloudflare Workers Database: Cloudflare D1 AI Background Removal: Remove.bg API Payment: PayPal 🚀 Features Free to Use: 3 free uses per day, no login required Google Login: Cross-device sync after login Credit Packs: Purchase credits via PayPal Membership: Monthly/Yearly unlimited plans 💡 Key Highlights 1. Benefits of D1 Database Previously I used localStorage, so users would lose their data when switching devices. After switching to D1, once a user logs in, their credits and membership sync across all devices. -- User table structure CREATE TABLE users ( id INTEGER PRIMARY KEY, google_id TEXT UNIQUE, email TEXT, cr