How to get started with Appwrite for mobile developers
Appwrite offers an open-source backend alternative to Firebase and Supabase, starting at $15 per month. Mobile developers can deploy via Docker or Appwrite Cloud to manage authentication, storage, and databases with features like built-in image resizing and AI database suggestions.
Setting up the backend
Appwrite provides an open-source backend for mobile developers who want control over their infrastructure. You can run it using Docker containers or use Appwrite Cloud. Firebase provides a fully managed SaaS through Google. Supabase uses PostgreSQL as its foundation. Appwrite 2.0 runs new self-hosted instances on Postgres by default, but the setup wizard lets you choose MariaDB or MongoDB. This version also uses a combined worker topology that runs on 16 containers instead of 33. Appwrite 2.1 brings the S3 API and AutoGravity to self-hosted instances. If you develop a React Native app, you first install the Appwrite server locally or via Docker. You then create a new project in the Appwrite console at localhost:8000 to generate API keys. After installing the Appwrite SDK in your project, you initialize it with your project credentials in a dedicated file. For Flutter, you add the dependency to your pubspec.yaml file. To set up a Flutter platform, you select the appropriate platform in the wizard and provide a name and the bundle identifier from your project files. For Android, you find the package name in the android/app/build.gradle file, while iOS and macOS users find the identifier in the Runner.xcodeproj/project.pbxproj file. You know the basics of SDK initialization, so focus on the configuration details.
Mobile implementation details
Appwrite handles authentication, storage, and databases via APIs. It provides dozens of OAuth providers, including TikTok and Kakao, and supports Magic URL or Phone authentication. The Storage service allows you to resize or crop images using simple URL parameters. This functionality eliminates the need for third-party image processing services. Appwrite Functions run code in Node.js, Python, or PHP within isolated environments. You can trigger these functions through specific events or on an interval. For Android developers, the Appwrite Android SDK 29.0.0 works with R8 full mode to fix queries, Realtime, and saved sessions in release builds ahead of Google Play’s 2027 DEX rule. If you use React Native, you can integrate OneSignal to send push notifications. Appwrite’s Realtime service uses WebSockets to maintain a persistent connection. Appwrite Messaging also supports background updates, critical alerts, and priority controls for push notifications. For developers building AI applications, Appwrite includes Database AI suggestions that propose columns and indexes when you name a table. You can also send inline, atomic update instructions directly in your Update or Upsert call to avoid race conditions. Appwrite 2.6.0 also provides image metadata controls and resource descriptions for self-hosted deployments. The Appwrite Console IV puts the docs, CLI, Explorer, and your projects in one app. Appwrite Explorer also brings the Appwrite REST API into the Console to browse endpoints and build requests. Does a document-oriented database provide enough structure for your specific mobile use case?
Data models and costs
Firebase costs scale with usage and team size. A project with 10,000 active users might incur $45 per month in reads alone. Appwrite starts at $15 per month. You can run Appwrite on a $5 to $20 per month Linux VPS to eliminate recurring per-user subscription taxes. Supabase is the better choice if your data relies on complex relational joins. Firebase uses a NoSQL document model where you cannot join two collections in a single query. Appwrite uses a document-oriented approach that allows you to define attributes and set permissions at the document level. While Appwrite simplifies the workflow, the library of pre-made extensions is currently smaller than Firebase. Migrating away from Firebase requires a significant rewrite of security rules and database schemas. In contrast, Supabase allows you to export a standard Postgres dump to import into other hosted Postgres services. Firebase remains competitive for mobile-first apps with simple data models and developers who are already in the Google ecosystem. Firebase’s real-time capabilities are its original selling point, as Firestore listeners push changes to connected clients in milliseconds. Supabase supports real-time via Postgres logical replication.
| Aspect | Appwrite | Firebase | Supabase |
|---|---|---|---|
| Deployment | Self-hosted or Cloud | Managed Cloud | Managed Cloud or Self-hosted |
| License | BSD-3-Clause | Proprietary | Open Source |
| Primary Database | Document-oriented | NoSQL | PostgreSQL |