appwrite avatar

Appwrite Swift

This is your go-to when you're building Swift apps that talk to Appwrite's backend. It covers the full stack: client-side auth with email and OAuth, database operations using the newer TablesDB API (not the deprecated Databases class), file uploads, real-time subscriptions with async/await, and server-side admin tasks like user management. The examples are practical and show named parameters, which is the recommended style. One nice touch: it actually explains the difference between varchar, text, and mediumtext string columns so you don't blow your row size budget. If you're doing iOS, macOS, or server-side Swift with Appwrite, this beats digging through the official docs every time.

skills.sh installs
213
GitHub stars
20
last updated
Jun 3, 2026

Install

$ npx -y skills add appwrite/agent-skills --skill appwrite-swift --agent claude-code

Installs into .claude/skills of the current project.

Files

Appwrite Swift SDK

Installation

// Swift Package Manager — Package.swift
.package(url: "https://github.com/appwrite/sdk-for-swift", branch: "main")

Setting Up the Client

Client-side (Apple platforms)

import Appwrite

let client = Client()
    .setEndpoint("https://<REGION>.cloud.appwrite.io/v1")
    .setProject("[PROJECT_ID]")

Server-side (Swift)

import Appwrite

let client = Client()
    .setEndpoint("https://<REGION>.cloud.appwrite.io/v1")
    .setProject(ProcessInfo.processInfo.environment["APPWRITE_PROJECT_ID"]!)
    .setKey(ProcessInfo.processInfo.environment["APPWRITE_API_KEY"]!)

Code Examples

Authentication (client-side)

let account = Account(client)

// Signup
let user = try await account.create(userId: ID.unique(), email: "user@example.com", password: "password123", name: "User Name")

// Login
let session = try await account.createEmailPasswordSession(email: "user@example.com", password: "password123")

// OAuth
try await account.createOAuth2Session(provider: .google)

// Get current user
let me = try await account.get()

// Logout
try await account.deleteSession(sessionId: "current")

Sponsors

Details

Repository
github.com/appwrite/agent-skills
Categories
AI & Agent Building, Mobile Development
First seen
Jun 3, 2026

More from appwrite/agent-skills

All 10
1buiducnhat avataraskbuiducnhat/agent-skillsask213skills.sh installs
2jorgealves avatark8s-resource-optimizerjorgealves/agent_skillsAnalyzes Kubernetes resource usage metrics and historical data to suggest optimal CPU and Memory requests and limits. Use to reduce cloud costs, prevent OOMKill213skills.sh installs
3unclecatvn avatarpayment-integrationunclecatvn/agent-skillsIntegrate payments with SePay (VietQR), Polar, Stripe, Paddle (MoR subscriptions), Creem.io (licensing). Checkout, webhooks, subscriptions, QR codes, multi-prov213skills.sh installs
4daffy0208 avatarlivestream-engineerdaffy0208/ai-dev-standardsExpert in live streaming, WebRTC, and real-time video/audio212skills.sh installs
5fabriciofs avatarsqlserver-expertfabriciofs/mcp-sql-serverExpert in Microsoft SQL Server development and administration. Use when writing T-SQL queries, optimizing database performance, designing schemas, configuring S212skills.sh installs
6github avatarui-screenshotsgithub/awesome-copilotCapture screenshots of web apps during development using Playwright and PIL. Supports full-page captures, interactive states, and an iterate-on-crop workflow th212skills.sh installs