Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
SvelteKit boilerplate using Appwrite and Azure AI to remove image backgrounds, with auth and image history.
Background Remover is an open-source SvelteKit boilerplate that uses Appwrite Cloud for authentication, storage, and database, and Azure AI Vision to remove backgrounds from headshots and other images.
Background Remover is a SvelteKit application that accepts an uploaded image, sends it to Azure AI Vision's background removal endpoint, and returns a background-free version saved to Appwrite Cloud storage. The project was created by adityaoberai and is published on GitHub with 21 stars. It is configured for deployment on Vercel via the SvelteKit adapter, with instructions to switch to other platforms like Cloudflare or Azure.
The app uses Appwrite for user accounts (email registration and guest login), a database collection with userId and fileId attributes to associate saved images with users, and two Appwrite storage buckets — one for input images that are deleted after processing and one for output images that persist for logged-in users. As of the README, the project is not functional because the Azure Background Removal API has been deprecated, so the live site at bgremover.in may not be processing images.
The flow is: a user uploads an image through the SvelteKit frontend, the file is stored in the "input" Appwrite bucket, a server action sends it to the Azure AI Vision background removal endpoint, the output is written to the "output" bucket, and for registered users the output file ID is saved in the database. The README walks through creating the Azure Computer Vision resource, setting up two Appwrite buckets, defining the database collection, and deploying the Delete Account function.
The repository includes a .env.example file listing every required variable. For Vercel, no adapter changes are needed; for other PaaS platforms, install @sveltejs/adapter-auto and replace svelte.config.js with the provided snippet. The Delete Account function lives on the appwrite-functions Git branch and is deployed via Appwrite's CLI.
The README explicitly warns: "The project is currently not functional as the Azure Background Removal API has been deprecated." That means the background removal endpoint used by the app is no longer available, so the demo and any deployments that depend on it will fail at the Azure call.
Yes. You must create an Azure Computer Vision resource (from the Azure Marketplace) and provide its endpoint and API key as the SECRET_VISION_ENDPOINT and SECRET_VISION_KEY environment variables.
Yes, the app allows guest login. Guests can process images, but the result is not saved to a profile and no shareable link is generated; those features require email registration.
The database has a single collection with two required string attributes: userId (length 255) and fileId (length 255). The collection and both storage buckets must have the exact permissions shown in the README's screenshots for the app to function.
