MCP ConfigsApr 3, 2026·3 min read

Appwrite — Open-Source Backend for AI Apps

Complete cloud backend with auth, database, storage, functions, and messaging in one platform. Self-hostable. 55K+ GitHub stars.

TO
TokRepo精选 · Community
Quick Use

Use it first, then decide how deep to go

This block should tell both the user and the agent what to copy, install, and apply first.

docker run -it --rm \
  --volume /var/run/docker.sock:/var/run/docker.sock \
  --volume "$(pwd)/appwrite:/usr/src/code/appwrite:rw" \
  --entrypoint="install" \
  appwrite/appwrite:latest

Open http://localhost/console — admin console is ready.

Or use the CLI:

npm install -g appwrite-cli
appwrite login
appwrite init project

SDK usage:

import { Client, Databases, Account } from 'appwrite';

const client = new Client()
    .setEndpoint('http://localhost/v1')
    .setProject('my-project');

const account = new Account(client);
await account.createEmailPasswordSession('user@example.com', 'password');

const db = new Databases(client);
const doc = await db.createDocument('main', 'chats', 'unique()', {
    prompt: 'What is RAG?',
    response: 'Retrieval Augmented Generation...',
    model: 'gpt-4o',
    tokens: 342
});

Intro

Appwrite is an open-source backend platform with 55,500+ GitHub stars that provides authentication, databases, file storage, serverless functions, messaging, and real-time subscriptions in a single self-hostable package. With SDKs for 12+ languages and frameworks, it's the fastest way to build a production backend for AI applications — store conversations, manage user accounts, handle file uploads, run background functions, and push notifications. Backed by a large community with 800+ contributors, Appwrite is the most complete open-source alternative to Firebase.

Works with: JavaScript, Python, Flutter, React, Vue, Swift, Kotlin, PHP, Ruby, Deno, any REST client. Best for teams building AI-powered apps that need a complete backend without managing separate services. Setup time: under 5 minutes.


Appwrite Platform Services

Complete Backend in One Platform

Service Description
Auth Email/password, OAuth (30+ providers), JWT, MFA, teams
Databases Document database with collections, queries, permissions
Storage File upload, image transforms, CDN, encryption at rest
Functions Serverless functions in any language (Node, Python, Dart, etc.)
Messaging Email, SMS, push notifications via providers
Realtime WebSocket subscriptions for live updates

AI App Use Cases

Use Case Appwrite Services
AI Chat App Auth + Database (conversations) + Realtime (streaming)
RAG Platform Storage (documents) + Functions (embedding generation) + Database (vectors)
Agent Dashboard Auth + Database (agent configs/logs) + Functions (agent execution)
LLM API Gateway Functions (proxy + rate limit) + Database (usage tracking)

Serverless Functions for AI

// functions/generate/src/index.js
export default async ({ req, res }) => {
    const { prompt } = JSON.parse(req.body);

    const response = await fetch('https://api.openai.com/v1/chat/completions', {
        method: 'POST',
        headers: {
            'Authorization': `Bearer ${process.env.OPENAI_API_KEY}`,
            'Content-Type': 'application/json'
        },
        body: JSON.stringify({
            model: 'gpt-4o',
            messages: [{ role: 'user', content: prompt }]
        })
    });

    const data = await response.json();
    return res.json({ answer: data.choices[0].message.content });
};

SDKs (12+ Languages)

# Web/Node.js
npm install appwrite

# Python
pip install appwrite

# Flutter/Dart
flutter pub add appwrite

# React Native, Swift, Kotlin, PHP, Ruby, Deno...

Self-Hosting

Appwrite runs anywhere Docker runs:

  • Single server deployment
  • Kubernetes (Helm charts available)
  • Cloud VMs (AWS, GCP, Azure, DigitalOcean)

FAQ

Q: What is Appwrite? A: Appwrite is an open-source backend platform with 55,500+ GitHub stars providing auth, databases, storage, functions, messaging, and real-time in one self-hostable package. SDKs for 12+ languages.

Q: How is Appwrite different from Supabase or PocketBase? A: Supabase is PostgreSQL-centric with SQL. PocketBase is a single binary with SQLite. Appwrite is a full platform with more services (messaging, teams, MFA) and SDKs for more languages. Appwrite is best for multi-platform apps (web + mobile + server).

Q: Is Appwrite free? A: Yes, open-source under BSD-3-Clause. Self-host for free. Appwrite Cloud has a generous free tier.


🙏

Source & Thanks

Created by Appwrite. Licensed under BSD-3-Clause.

appwrite — ⭐ 55,500+

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets