appwrite-typescript

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Developers building apps on Appwrite often struggle with SDK differences across web, React Native, and Node.js environments, deprecated APIs, and subtle pitfalls like OAuth on mobile or missing row permissions. This Skill provides correct, up-to-date code patterns for the Appwrite TypeScript SDK so generated code works the first time. ## Core Features & Use Cases - Client and server SDK coverage: Authentication (email, OAuth, anonymous), TablesDB database operations, file storage, teams, real-time subscriptions, and serverless functions across web, React Native, and Node.js/Deno. - Platform-specific guidance: Correct OAuth flow for React Native using createOAuth2Token with deep linking, and SSR authentication patterns with admin and session clients for Next.js, SvelteKit, and similar frameworks. - Permissions and error handling: Permission/Role string construction, AppwriteException handling, and common mistake warnings such as forgotten permissions or unsafe Role.any() usage. - Use Case: You are building a Next.js app with Appwrite and need email login plus per-user row permissions. This Skill supplies the SSR session-cookie flow and the correct Permission.read(Role.user(...)) calls. ## Quick Start Use the appwrite-typescript skill to add email/password login and a protected database table 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 implement Appwrite authentication in TypeScript?

Use the Account class from the appwrite package for client-side apps or node-appwrite for servers. Call account.create for signup and account.createEmailPasswordSession for login, then account.get to fetch the current user.

How to query Appwrite database rows with filters?

Use TablesDB.listRows with Query helpers such as Query.equal, Query.greaterThan, Query.limit, and Query.orderDesc. Prefer the object-params calling style and cursor-based pagination with Query.cursorAfter for large datasets.

Does Appwrite OAuth work in React Native?

No, createOAuth2Session does not work on React Native. Use createOAuth2Token with expo-web-browser and deep linking, extract the userId and secret from the redirect URL, then call account.createSession.

Should I use Databases or TablesDB in the Appwrite SDK?

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

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 like Permission.read(Role.user(userId)) when creating rows, or configure table-level permissions.

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

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