appwrite-dotnet

Implements server-side Appwrite integrations in C# covering users, databases, storage, and SSR authentication.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building .NET backends against Appwrite requires knowing the correct SDK patterns for user management, table CRUD, file storage, permissions, and SSR session handling, and mistakes like using deprecated classes or missing permissions cause broken or insecure apps. ## Core Features & Use Cases - Server SDK Patterns: Set up API-key clients and perform user management, TablesDB CRUD with typed string columns, and full Query filtering, sorting, and cursor pagination. - Storage, Teams, and Functions: Upload files via InputFile factories, manage teams and memberships, execute serverless functions, and write .NET function handlers. - SSR Authentication: Implement ASP.NET and Blazor login flows with admin and session clients, secure a_session cookies, and OAuth2 token exchange. - Use Case: You are building an ASP.NET Minimal API backed by Appwrite and need email/password login with secure session cookies plus row-level permissions on database records. ## Quick Start Use the appwrite-dotnet skill to scaffold an ASP.NET login endpoint that creates an Appwrite email/password session and sets the secure session cookie.

Frequently Asked Questions about appwrite-dotnet

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

FAQPage Schema
How do I connect a .NET app to Appwrite?

Install the Appwrite NuGet package with dotnet add package Appwrite, then create a Client configured with SetEndpoint, SetProject, and SetKey using your project ID and API key. From there you instantiate services like Users, TablesDB, or Storage.

How do I implement Appwrite authentication in ASP.NET?

Use an admin client with an API key to call account.CreateEmailPasswordSession, then store the session secret in an HttpOnly, Secure, SameSite=Strict cookie named a_session_<PROJECT_ID>. Create a per-request session client with SetSession for authenticated calls.

Should I use Databases or TablesDB in the Appwrite .NET SDK?

Use TablesDB for all new code because the Databases class is deprecated. TablesDB provides CreateRow, ListRows, GetRow, UpdateRow, and DeleteRow methods and supports explicit string column types like varchar, text, mediumtext, and longtext.

Why do Appwrite rows become inaccessible after creation?

Appwrite grants no access by default, so rows created without explicit permissions are inaccessible to everyone including the creator. Pass Permission and Role strings such as Permission.Read(Role.User(userId)) when creating rows or configure table-level permissions.

How do I upload files to Appwrite Storage from C#?

Use the Storage service's CreateFile method with a bucket ID, unique file ID, and an InputFile built via FromPath, FromBytes, or FromStream. You can attach permission strings in the same call to control read, update, and delete access.

How do I handle Appwrite errors in .NET?

Catch AppwriteException, which exposes Message, HTTP status Code, error Type such as document_not_found, and the full Response body. Common codes include 401 for invalid credentials, 403 for insufficient permissions, and 429 for rate limiting.