Firebase Alternative You Can Self-Host
Appwrite is an open-source BaaS (Backend as a Service). Cloud free tier: 75K requests/month, 2GB storage, 10GB bandwidth. Self-hosted: unlimited.
Cloud Setup
npm install appwrite
import { Client, Databases, Account } from "appwrite";
const client = new Client()
.setEndpoint("https://cloud.appwrite.io/v1")
.setProject("your-project-id");
const account = new Account(client);
const databases = new Databases(client);
Auth
// Create account
await account.create("unique()", "user@example.com", "password", "John");
// Login
await account.createEmailPasswordSession("user@example.com", "password");
// OAuth
await account.createOAuth2Session("github");
Database
// Create document
const doc = await databases.createDocument(
"database-id", "collection-id", "unique()",
{ title: "Hello", content: "World", published: true }
);
// Query
const results = await databases.listDocuments(
"database-id", "collection-id",
[Query.equal("published", true), Query.limit(10)]
);
Appwrite vs Firebase vs Supabase
| Feature | Appwrite | Firebase | Supabase |
|---|---|---|---|
| Database | Document | NoSQL | Postgres |
| Self-hosted | Yes | No | Yes |
| Auth providers | 30+ | 15+ | 20+ |
| Functions | Yes | Yes | Yes |
| Storage | Yes | Yes | Yes |
| Free tier | 75K req/mo | Generous | 50K MAU |
| Open source | Yes | No | Yes |
More from me: 10 Dev Tools I Use Daily | 77 Scrapers on a Schedule | 150+ Free APIs
Top comments (0)