
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-codeInstalls 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