appwrite-typescript

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

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

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 misconfigured permissions. ## Core Features & Use Cases - Client & Server SDK Setup: Covers appwrite, react-native-appwrite, and node-appwrite installation, client configuration, and SSR session handling with secure cookies. - Auth, Database, Storage & Realtime: Provides working examples for email/OAuth login, TablesDB CRUD with Query filters, file uploads with InputFile, and channel-based real-time subscriptions. - Permissions & Error Handling: Explains Permission/Role strings, AppwriteException handling, and common pitfalls like forgetting row-level permissions. - Use Case: You are adding GitHub OAuth login to a React Native app. The Skill guides you to use createOAuth2Token with deep linking instead of the web-only createOAuth2Session, including the exact expo setup steps. ## Quick Start Ask the AI to write Appwrite code for your task, for example: implement email login and a paginated list of rows from a table using the Appwrite TypeScript SDK.

Frequently Asked Questions about appwrite-typescript

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

FAQPage Schema
How do I implement Appwrite authentication in a TypeScript app?

Use the Account class from the appwrite package to create users with account.create and log in with account.createEmailPasswordSession. For OAuth on web, call account.createOAuth2Session with a provider like OAuthProvider.Github and success/failure redirect URLs.

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

Use the TablesDB class and call listRows with databaseId, tableId, and a queries array built from Query helpers like Query.equal, Query.limit, and Query.orderDesc. Prefer TablesDB over the deprecated Databases class for all new code.

Does Appwrite OAuth work in React Native apps?

No, createOAuth2Session does not work on React Native. You must use createOAuth2Token with expo-web-browser and deep linking, then exchange the returned userId and secret via account.createSession.

How do I handle Appwrite authentication in Next.js or other SSR frameworks?

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

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

Appwrite grants no access by default, so rows without explicit permissions are inaccessible even to their creator. Pass a permissions array using Permission.read and Role.user or Role.team when creating rows, or configure table-level permissions.

What string column type should I use in Appwrite tables?

The legacy string type is deprecated. Use varchar for short indexed fields up to 16,383 characters stored inline, and text, mediumtext, or longtext for larger content stored off-page without consuming the 64 KB row size limit.