appwrite-kotlin

Implements Appwrite backend operations in Kotlin for Android apps and JVM servers.

Updated Sep 13, 2026
One-click install
npx skills add https://github.com/aadilmallick/myfitness-pal-clone --skill appwrite-kotlin-aadilmallick
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: appwrite-kotlin
Source: https://github.com/aadilmallick/myfitness-pal-clone/tree/main/.agents/skills/appwrite-kotlin
Command: npx skills add https://github.com/aadilmallick/myfitness-pal-clone --skill appwrite-kotlin-aadilmallick

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building Android apps or Kotlin/JVM backends with Appwrite requires knowing the correct SDK patterns for authentication, database queries, file storage, real-time subscriptions, and server-side administration, which are easy to get wrong without a reference. ## Core Features & Use Cases - Client-side Android integration: Email/password and OAuth authentication, database CRUD with the TablesDB API, file uploads via InputFile, and coroutine-friendly real-time subscriptions. - Server-side administration: API-key-based user management, database and table creation with explicit string column types, storage management, and serverless function execution. - SSR authentication patterns: Admin and session client separation, secure session cookie handling, and OAuth2 token exchange flows for Ktor and Spring Boot. - Use Case: You are building an Android app that needs user login, a queryable data table, and profile image uploads. Use this Skill to generate the correct Kotlin SDK calls with proper permissions and error handling. ## Quick Start Ask the AI to write Kotlin code that connects to your Appwrite project and creates a row in a database table with the correct permissions.

Frequently Asked Questions about appwrite-kotlin

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I authenticate users with the Appwrite Kotlin SDK?

Use the Account service to call createEmailPasswordSession for email login or createOAuth2Session with an Activity reference for OAuth providers like Google. On the server, use createSession with a userId and secret to establish sessions.

How do I query database rows in Appwrite with Kotlin?

Use the TablesDB service with listRows and pass Query helpers such as Query.equal, Query.greaterThan, Query.orderDesc, and Query.limit. Prefer cursor pagination with Query.cursorAfter for large datasets, and use TablesDB rather than the deprecated Databases class.

Does the Appwrite Kotlin SDK support real-time subscriptions?

Yes, the Realtime service supports subscribing to channels for table rows, storage files, teams, and function executions. Subscriptions deliver events and payloads through callbacks and work with coroutines, and you close them with subscription.close().

Can I use the Appwrite Kotlin SDK on a server with Ktor or Spring Boot?

Yes, use the sdk-for-kotlin artifact with an API key for server-side admin operations. For SSR auth, maintain a reusable admin client and create a per-request session client that reads the a_session_<PROJECT_ID> cookie.

Why do users get permission errors on Appwrite rows and files?

Appwrite grants no access by default, so resources without explicit permissions are inaccessible even to their creator. Set permissions using Permission and Role helpers, such as Permission.read(Role.user(id)), and avoid combining Role.any() with write, update, or delete.