appwrite-typescript

Implements Appwrite TypeScript SDK integrations for authentication, databases, storage, and real-time subscriptions.

4|Updated Feb 5, 2025
One-click install
npx skills add https://github.com/aniruddha81/Gaali-Finder-v2 --skill appwrite-typescript-aniruddha81
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: appwrite-typescript
Source: https://github.com/aniruddha81/Gaali-Finder-v2/tree/main/.agents/skills/appwrite-typescript
Command: npx skills add https://github.com/aniruddha81/Gaali-Finder-v2 --skill appwrite-typescript-aniruddha81

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building apps with Appwrite requires knowing the correct SDK patterns across web, React Native, and server-side Node.js environments, and mistakes with auth flows, permissions, or the newer TablesDB API cause broken integrations and security holes. ## Core Features & Use Cases - Client and Server SDK Setup: Covers appwrite, react-native-appwrite, and node-appwrite installation, client configuration, and API key usage. - Authentication Flows: Implements email/password sessions, OAuth2 login (including the React Native deep-link flow with createOAuth2Token), and SSR cookie-based auth for Next.js-style apps. - Database, Storage, and Realtime: Provides TablesDB CRUD with Query methods, file uploads with InputFile, typed string columns, and real-time channel subscriptions. - Use Case: A developer building a React Native app can follow the OAuth deep-linking flow to sign users in with GitHub, then store user data in typed tables and sync changes live via realtime subscriptions. ## Quick Start Ask the AI to set up an Appwrite client with email login and a tables database for your TypeScript project.

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 a TypeScript app?

Install the appwrite package, create a Client with your endpoint and project ID, then use the Account service to call createEmailPasswordSession for login or create for signup. OAuth providers are supported via createOAuth2Session on web.

How to implement OAuth login in React Native with Appwrite?

React Native requires createOAuth2Token instead of createOAuth2Session, combined with expo-web-browser and a deep-link URL scheme. After the browser redirect, extract the userId and secret from the callback URL and call createSession.

Should I use TablesDB or Databases in the Appwrite SDK?

Use TablesDB for all new code, since the Databases class is deprecated. TablesDB provides createRow, listRows, updateRow, and related methods with the same database, table, and row identifiers.

Does Appwrite SSR authentication work with Next.js?

Yes, SSR apps use node-appwrite with two clients: an admin client holding an API key and a per-request session client. The session secret is stored in an httpOnly cookie named a_session_<PROJECT_ID> and passed via setSession.

Why do Appwrite resources become inaccessible after creation?

Appwrite grants no access by default, so rows and files without explicit permissions are inaccessible even to their creator. Set permissions using Permission and Role helpers, such as Permission.read with Role.user or Role.any.