appwrite-typescript

Implements Appwrite backend operations in TypeScript for web, React Native, and Node.js applications.

1|1|Updated Jul 31, 2026
One-click install
npx skills add https://github.com/appwrite/agent --skill appwrite-typescript-appwrite
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: appwrite-typescript
Source: https://github.com/appwrite/agent/tree/main/.agents/skills/appwrite-typescript
Command: npx skills add https://github.com/appwrite/agent --skill appwrite-typescript-appwrite

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building apps on Appwrite requires knowing the correct SDK patterns across three different environments (web, React Native, Node.js), each with different auth flows, package names, and constraints. This Skill provides working code patterns for authentication, databases, storage, teams, realtime, and functions so you avoid deprecated APIs and common permission mistakes. ## Core Features & Use Cases - Client-side auth and data: Email/password and OAuth login, TablesDB queries, file uploads, and realtime subscriptions for web and React Native apps. - Server-side administration: User management, database administration, and function execution via node-appwrite with API keys, including SSR session handling for Next.js and similar frameworks. - Permissions and error handling: Correct use of Permission/Role helpers, AppwriteException handling, and guidance on avoiding public-write misconfigurations. - Use Case: You are building a Next.js app with Appwrite and need SSR login with secure session cookies, typed database queries with Query filters, and image uploads with per-user permissions. ## Quick Start Use the appwrite-typescript skill to add email login and a tablesDB query to my Next.js 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 a TypeScript web app?▼

Install the appwrite package, create a Client with your endpoint and project ID, then use the Account service. Call account.createEmailPasswordSession for email login or account.createOAuth2Session for OAuth providers like GitHub and Google.

How do I query Appwrite database rows with filters in TypeScript?▼

Use the TablesDB service with Query helpers such as Query.equal, Query.greaterThan, Query.limit, and Query.orderDesc. Pass them in the queries array of tablesDB.listRows along with your databaseId and tableId.

Does Appwrite OAuth work in React Native apps?▼

The createOAuth2Session method does not work on React Native. Use createOAuth2Token with expo-web-browser and deep linking instead, then exchange the returned userId and secret via account.createSession.

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

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 or when explicitly required.

Why are my Appwrite rows inaccessible after creation?▼

Appwrite grants no access by default, so rows created without a permissions array are inaccessible to everyone including the creator. Pass permissions using Permission.read, Permission.update, and Role helpers when creating rows or files.

How do I handle Appwrite SSR authentication in Next.js?▼

Use node-appwrite with two clients: an admin client with an API key to create sessions, and a per-request session client using the a_session_<PROJECT_ID> cookie. Set the cookie with httpOnly, secure, and sameSite strict flags.