appwrite-typescript

Implements Appwrite TypeScript SDK patterns for auth, databases, storage, and real-time subscriptions.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building apps on Appwrite requires knowing the correct SDK methods, calling conventions, and platform-specific quirks across web, React Native, and server-side Node.js environments. This Skill provides accurate, up-to-date code patterns so you avoid deprecated APIs, broken OAuth flows, and permission misconfigurations. ## Core Features & Use Cases - Client and server setup: Correct initialization for web (appwrite), React Native (react-native-appwrite), and Node.js/Deno (node-appwrite), including SSR session handling with admin and per-request session clients. - Auth, database, storage, and real-time: Email/password and OAuth login (including the React Native createOAuth2Token deep-link flow), TablesDB CRUD with Query builders, file uploads with InputFile factories, and channel-based real-time subscriptions. - Permissions and error handling: Permission/Role string construction, AppwriteException handling, and guidance on common mistakes like missing permissions or unsafe Role.any() writes. - Use Case: You are building an Expo app with email OTP login and a food diary database. Use this Skill to generate the correct client setup, typed TablesDB queries, and row-level permissions without consulting external docs. ## Quick Start Use the appwrite-typescript skill to set up an Appwrite client with email login and a TablesDB query for my React Native app.

Frequently Asked Questions about appwrite-typescript

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

FAQPage Schema
How do I set up Appwrite authentication in React Native?

Install react-native-appwrite and create a Client with your endpoint and project ID. For OAuth, use createOAuth2Token with expo-web-browser deep linking instead of createOAuth2Session, which does not work on React Native.

How do I query rows in an Appwrite database with TypeScript?

Use the TablesDB class with listRows and pass Query helpers like Query.equal, Query.limit, and Query.orderDesc in the queries array. Prefer the object-params calling style such as { databaseId, tableId, queries }.

What is the difference between the appwrite and node-appwrite SDKs?

The appwrite package is for client-side web apps, while node-appwrite is for server-side code and adds API key support via setKey plus admin services like Users. SSR apps typically use node-appwrite with separate admin and session clients.

Why does Appwrite OAuth login fail in my Expo app?

createOAuth2Session does not work on React Native. Use createOAuth2Token to get a login URL, open it with WebBrowser.openAuthSessionAsync, then exchange the returned userId and secret via account.createSession.

Why can't users read rows I created in Appwrite?

Appwrite grants no access by default, so rows without explicit permissions are inaccessible to everyone. Add permissions like Permission.read(Role.user(userId)) at row creation or configure table-level permissions.

Should I use the Databases or TablesDB class in Appwrite?

Use TablesDB for all new code since the Databases class is deprecated. Only use Databases when maintaining an existing codebase that already relies on it.