appwrite
БесплатноБез исполняемых скриптовНе проверенBuild backends with Appwrite — open-source Backend-as-a-Service. Use when a user asks to set up user authentication, manage a database without writing backend…
Об этом скилле
Appwrite
Overview
Appwrite is an open-source Backend-as-a-Service (BaaS) providing authentication, databases, file storage, cloud functions, and realtime subscriptions — all through a single self-hosted Docker deployment. It's the open-source alternative to Firebase, with SDKs for web (JavaScript), mobile (Flutter, Swift, Kotlin), and server-side (Node.js, Python, PHP). This skill covers self-hosting setup, authentication, database operations, file storage, serverless functions, and realtime subscriptions.
Instructions
Step 1: Self-Hosted Deployment
The installer starts a web setup wizard on port 20080 (open it in your firewall only while installing). Use the release tag the installation docs name (2.6.1 at the time of writing).
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:2.6.1
Open http://localhost:20080, choose the hostname, the database (PostgreSQL is the default; MariaDB and MongoDB are options), save the generated secret key, and create the console account. Requirements: 2 CPU cores, 4 GB RAM, 2 GB swap, Docker Compose v2. After install the console is at http://localhost/console; create a project there and copy its project ID. Appwrite Cloud needs no install: use the endpoint https://<region>.cloud.appwrite.io/v1 shown in the console settings.
Step 2: Authentication
The Web SDK (appwrite, 29.x) takes a single object of named parameters.
// lib/appwrite.js
import { Client, Account, ID, OAuthProvider } from 'appwrite'
export const client = new Client()
.setEndpoint('http://localhost/v1')
.setProject('66f0c1a2003b7e5d9a41') // project ID from the console
export const account = new Account(client)
export async function signUp(email, password, name) {
const user = await account.create({ userId: ID.unique(), email, password, name })
await account.createEmailPasswordSession({ email, password })
return user
}
export const login = (email, password) =>
account.createEmailPasswordSession({ email, password })
// OAuth (the provider must be enabled in Auth > Settings)
export const loginWithGoogle = () =>
account.createOAuth2Session({
provider: OAuthProvider.Google,
success: 'http://localhost:3000/callback',
failure: 'http://localhost:3000/login',
})
export async function getCurrentUser() {
try { return await account.get() } catch { return null } // not logged in
}
export const logout = () => account.deleteSession({ sessionId: 'current' })
The platform (web origin or app ID) must be added under the project's Platforms, otherwise browser calls fail with a CORS error.
Step 3: Database Operations (TablesDB)
In current Appwrite releases the primary database API is TablesDB: databases contain tables, tables have columns and rows. The older Databases API (collections, attributes, documents) still exists as a legacy API with the same data model; use it only for existing code.
// lib/database.js
import { TablesDB, ID, Query, Permission, Role } from 'appwrite'
import { client } from './appwrite'
const tablesDB = new TablesDB(client)
const DATABASE_ID = 'main'
const TABLE_ID = 'posts'
export function createPost(title, content, authorId) {
return tablesDB.createRow({
databaseId: DATABASE_ID,
tableId: TABLE_ID,
rowId: ID.unique(),
data: { title, content, author_id: authorId, status: 'draft' },
permissions: [
Permission.read(Role.any()),
Permission.update(Role.user(authorId)),
Permission.delete(Role.user(authorId)),
],
})
}
export function listPublishedPosts(page = 1, limit = 10) {
return tablesDB.listRows({
databaseId: DATABASE_ID,
tableId: TABLE_ID,
queries: [
Query.equal('status', 'published'),
Query.orderDesc('$createdAt'),
Query.limit(limit),
Query.offset((page - 1) * limit),
],
})
}
export const publishPost = (rowId) =>
tablesDB.updateRow({ databaseId: DATABASE_ID, tableId: TABLE_ID, rowId, data: { status: 'published' } })
export const deletePost = (rowId) =>
tablesDB.deleteRow({ databaseId: DATABASE_ID, tableId: TABLE_ID, rowId })
Columns (title, content, status, author_id) must be created in the console or through the API before rows can be written. Every row has $id, $createdAt, $updatedAt and $permissions automatically. A list call returns 25 rows by default; use Query.limit and Query.offset or Query.cursorAfter for pagination.
Step 4: File Storage
// lib/storage.js
import { Storage, ID } from 'appwrite'
import { client } from './appwrite'
const storage = new Storage(client)
const BUCKET_ID = 'uploads'
// file: a File from <input type="file">
export const uploadFile = (file) =>
storage.createFile({ bucketId: BUCKET_ID, fileId: ID.unique(), file })
// These return a URL you can use as an ima
Установить appwrite в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл appwrite?
Build backends with Appwrite — open-source Backend-as-a-Service. Use when a user asks to set up user authentication, manage a database without writing backend code, handle file storage and uploads, add realtime subscriptions, set up cloud functions, build a mobile or web app backend, replace Firebase with an open-source alternative, or self-host a BaaS platform. Covers auth, databases, storage, functions, realtime, and SDK integration for web, mobile, and server-side.
Как установить скилл appwrite?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл appwrite запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic