appwrite-kotlin

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

Updated Jul 29, 2026
One-click install
npx skills add https://github.com/SMGolamAlif/Orbit --skill appwrite-kotlin-smgolamalif
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: appwrite-kotlin
Source: https://github.com/SMGolamAlif/Orbit/tree/main/.agents/skills/appwrite-kotlin
Command: npx skills add https://github.com/SMGolamAlif/Orbit --skill appwrite-kotlin-smgolamalif

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Developers building Android apps or Kotlin/JVM backends with Appwrite need correct, up-to-date SDK patterns for authentication, databases, storage, and real-time features, and this Skill provides working Kotlin code for every major Appwrite service. ## Core Features & Use Cases - Client and Server SDK Coverage: Includes Android client-side auth (email, OAuth with Activity integration) and server-side admin operations via API keys for users, databases, storage, and functions. - Modern Database API: Uses the TablesDB API with named arguments, explicit string column types (varchar, text, mediumtext, longtext), and the full Query builder for filtering, sorting, and pagination. - SSR Authentication: Provides complete Ktor-based SSR auth flows with admin and session clients, secure cookie handling, and OAuth2 token exchange. - Use Case: You are building an Android app that needs user login, a synced task list, and file uploads. Use this Skill to generate the correct Kotlin code for email auth, TablesDB row queries with permissions, and real-time subscriptions. ## Quick Start Use the appwrite-kotlin skill to write Kotlin code that creates an Appwrite client, logs a user in with email and password, and queries rows from a database table.

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 with an email and password, or createOAuth2Session with an Activity and OAuthProvider for social login. On the server, use createSession with a userId and secret to exchange OAuth tokens.

How do I query database rows in Appwrite with Kotlin?

Use TablesDB.listRows with a list of Query objects such as Query.equal, Query.greaterThan, Query.orderDesc, and Query.limit. Prefer cursor pagination with Query.cursorAfter for large datasets, and always use named arguments for method calls.

Should I use TablesDB or Databases in the Appwrite Kotlin SDK?

Use TablesDB for all new code, as the Databases class is deprecated. Only use Databases if the existing codebase already relies on it or it is explicitly requested.

Does the Appwrite Kotlin SDK support server-side rendering with Ktor?

Yes, SSR uses two clients: an admin client with an API key for creating sessions and a per-request session client that reads the a_session_<PROJECT_ID> cookie. Set httpOnly, secure, and SameSite=Strict on session cookies.

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, and avoid combining Role.any() with write, update, or delete.

How do I upload files to Appwrite Storage from Kotlin?

Use Storage.createFile with a bucketId, a fileId from ID.unique(), and an InputFile created via InputFile.fromPath or InputFile.fromBytes. Attach read, update, and delete permissions to control who can access the uploaded file.