
Appwrite
Self-hosted backend: auth, databases, storage, and functions
Replaces Firebase, Aws Amplify, Back4app

Who it's for
Appwrite provides auth, database, and storage through a single SDK without requiring a backend engineer. A solo developer can ship a full-featured web app with user accounts, file uploads, and real-time features by connecting the JavaScript SDK to a self-hosted Appwrite instance, skipping the need to configure Cognito, S3, and DynamoDB as separate AWS services.
Your SaaS requires complex relational data with joins and transactions. Appwrite's document database does not support SQL joins; teams with heavy relational requirements are better served by Supabase or a dedicated PostgreSQL setup.
Official Flutter and React Native SDKs let mobile teams use Appwrite auth, storage, and real-time subscriptions without writing custom API endpoints. Push notification delivery through the messaging module removes the need for a separate FCM/APNs integration layer on top of the backend.
Your app requires offline-first sync with automatic conflict resolution. Appwrite does not offer a local-first sync mechanism comparable to Firebase Firestore's offline persistence mode.
Teams whose Firebase bills have grown unpredictably can migrate to Appwrite to shift from per-operation pricing to fixed server costs. Appwrite's data model is similar to Firestore (document collections with permission scopes), making migration more incremental than a full rewrite of the data layer.
Your team has no one comfortable with Docker and server administration. Appwrite Cloud mitigates this, but full cost savings require self-hosting, which carries ongoing maintenance responsibility.
Appwrite's functions runtime and SDK support for MCP-compatible agents (Claude, OpenAI, Cursor) lets developers wire backend storage, auth, and messaging into AI application workflows without building custom middleware. The serverless functions layer handles integration between AI agent calls and Appwrite's data services.
Your application requires vector storage or embedding search. Appwrite does not include native vector database capabilities; RAG or semantic search workloads need a separate vector store paired with the Appwrite backend.
The problem
Building backend infrastructure from scratch takes weeks away from product work. Authentication flows, file storage, database connections, and serverless function pipelines each require separate services, separate billing, and separate maintenance cycles. Teams on Firebase or AWS Amplify trade that complexity for vendor dependence: pricing that scales unpredictably, data locked inside proprietary systems, and no path to self-hosting if requirements change. The problem sharpens at scale. Firebase's Blaze plan charges per read, write, and delete operation, making cost forecasting difficult for read-heavy applications. AWS Amplify requires provisioning and managing IAM permissions across Cognito, S3, DynamoDB, and Lambda separately. Developers who want the convenience of an integrated backend platform, without the lock-in, have historically had limited options.
How it works
Ships with 30+ sign-in methods including email/password, OAuth2 providers (Google, GitHub, Apple, and more), phone/SMS OTP, anonymous sessions, and JWT tokens. Multi-factor authentication is built in and session management is handled server-side, with no third-party auth service required.
Provides a document-oriented database with collection-level permissions, attribute indexing, and real-time event subscriptions via WebSocket. Clients subscribe to collection or document events and receive updates pushed from the server, removing the need to poll for data changes.
Stores files with automatic compression, AES-256 encryption at rest, and on-delivery image transformations (resize, crop, format conversion). Permissions are scoped per bucket and per file. Storage backends include local disk and S3-compatible providers.
Runs custom backend logic in Node.js, Python, PHP, Ruby, Go, Dart, Swift, and more. Functions trigger on HTTP requests, Appwrite internal events (user signup, file upload, database change), or scheduled cron jobs. Execution logs and history are visible in the Appwrite console.
Sends push notifications (APNs, FCM), emails (Mailgun, Sendgrid, SMTP), and SMS (Twilio, Vonage, Textmagic) through a single messaging API. Topics let you segment subscribers for targeted delivery without managing a separate notification service alongside your backend.
Features
- Multi-provider authentication with MFA
- Document database with real-time subscriptions
- File storage with encryption and image transformation
- Serverless functions in 13+ runtimes
- Integrated messaging for push, email, and SMS
How to install
# Self-hosted (Docker, Unix/macOS)
docker run -it --rm \
--publish 20080:20080 \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
--entrypoint="install" \
appwrite/appwrite:1.9.0After the interactive setup wizard completes, access the Appwrite console at `http://localhost` (or your configured domain). Minimum requirements: 2 CPU cores, 4GB RAM, 2GB swap, Docker Compose v2. One-click deployments are also available on DigitalOcean, Akamai Compute, and AWS Marketplace.
Recommended for this setup
Strengths
- BSD-3-Clause license with no usage restrictions: The BSD-3-Clause license permits commercial use, modification, and redistribution without requiring source disclosure. Unlike Firebase (proprietary) or tools under AGPL (which requires sharing modifications when running a modified version as a service), Appwrite's license imposes no usage restrictions on self-hosted deployments.
- Single Docker deployment for the full backend stack: One Docker command brings up the complete Appwrite stack: API server, database, storage, functions runtime, and messaging. This contrasts with AWS Amplify, which requires provisioning separate AWS services (Cognito, DynamoDB, S3, Lambda) and managing IAM permissions across all of them before writing a single line of application code.
- SDK coverage across web, mobile, and backend runtimes: Official SDKs cover React, Next.js, Vue, Angular, iOS (Swift), Android (Kotlin), Flutter, and server-side runtimes including Node.js, Python, PHP, Go, and Rust. Most Firebase competitors offer a subset of these; Appwrite's breadth lets a cross-platform team use consistent APIs across all targets from the same backend instance.
- Predictable infrastructure cost at scale: Self-hosted Appwrite costs are bounded by server capacity, not by operation count. Firebase's Blaze plan charges per database read, write, and delete, which creates unpredictable bills for read-heavy applications. With Appwrite on a fixed server, the marginal cost of additional reads is zero beyond the base server cost.
Trade-offs
- Requires at least 2 CPU cores and 4GB RAM: Appwrite's Docker stack is not lightweight. Documented minimums are 2 CPU cores, 4GB RAM, and 2GB swap. A shared $5/month VPS will not run it reliably. You need a dedicated instance on providers such as DigitalOcean, AWS, or Hetzner with at least a 2-core plan before expecting a stable deployment.
- Self-hosting transfers the maintenance burden to your team: You are responsible for upgrades, backups, SSL certificate renewal, and uptime monitoring. Appwrite Cloud exists as a managed option, but teams that self-host for cost savings need someone comfortable with Docker and server administration. Firebase and AWS Amplify handle all infrastructure concerns on your behalf.
- No offline-first sync for mobile clients: Firebase Firestore has built-in offline persistence with automatic conflict resolution when connectivity returns. Appwrite does not offer a comparable local-first sync mechanism. Mobile apps that require offline data access and sync need to implement their own caching layer or choose a backend that ships this capability.
- Document database does not support SQL joins or transactions: Appwrite's database is document-oriented, not relational. Applications with complex relational data models requiring multi-table joins or ACID transactions are not well served by Appwrite's data layer. Teams with those requirements are better served by Supabase (PostgreSQL-backed) or a dedicated relational database alongside a lighter auth layer.
Tech stack
FAQ
Yes. The self-hosted version is open source under the BSD-3-Clause license and free to run on your own infrastructure with no usage limits or per-operation fees. Appwrite Cloud offers a free starter tier with usage caps, with paid plans above that. Most development and small-production workloads run comfortably on a self-hosted instance once a qualifying server is provisioned.
Appwrite covers the same core services: authentication, document databases, file storage, and serverless functions. The key differences are ownership and cost structure. Appwrite is self-hosted (or optionally cloud-hosted) with no per-operation pricing, while Firebase is Google-managed and charges per read, write, and delete on its Blaze plan. Appwrite's database is document-oriented like Firestore, so the data model translates directly, but Firebase has a larger ecosystem of third-party integrations and offline sync that Appwrite does not match.
Yes, with appropriate server sizing. The documented minimum for a stable deployment is 2 CPU cores and 4GB RAM. Production workloads with significant concurrent traffic benefit from dedicated instances or Appwrite's multi-instance configuration for horizontal scaling. Appwrite has been in production use since 2019 and version 1.9.0 is the current stable release.
Appwrite uses MariaDB for storing collections and documents, Redis for caching and real-time pub/sub, and InfluxDB for usage metrics. The database engine is abstracted behind the Appwrite API: you interact with collections and documents through the SDK or REST API rather than directly with MariaDB. You select the storage backend during the interactive install wizard.
Yes. The self-hosted setup includes a built-in Traefik reverse proxy that provisions SSL certificates via Let's Encrypt when you configure a custom domain during installation. No separate nginx or Caddy configuration is required for basic HTTPS on a self-hosted deployment.