Knowledge Base updated: 2026-11-17
SDK for React Native Knowledge Base
Orientation
This repository is the Appwrite SDK for React Native. Its public surface centers on Client, service classes under src/services/, typed models and enums, and helpers for queries, permissions, roles, and IDs.
src/client.ts owns shared SDK configuration, request construction, HTTP transport, response conversion, cookies, and realtime subscriptions. Services build Appwrite API calls on top of that client.
Service implementations are organized by Appwrite domain: identity, applications and integrations, data and files, realtime utilities, and shared value types. Generated model classes and enums provide the typed values returned from and accepted by those services.
Architecture
flowchart TD
App[React Native application] --> Client[Client]
Client --> Transport[Request transport]
Client --> Realtime[Realtime subscriptions]
Client --> Services[Service classes]
Services --> Account[Account / Teams / Organizations]
Services --> Integrations[Apps / OAuth / Analytics / Push]
Services --> Data[Databases / Storage / Functions]
Services --> Utility[Locale / Avatars / Presence]
Services --> Values[Queries / IDs / Permissions / Roles]
Services --> Models[Models and enums]
Transport --> API[Appwrite API]
Realtime --> API
API --> Models
sequenceDiagram
participant App as React Native app
participant Service as Service method
participant Client as Client
participant API as Appwrite API
App->>Service: invoke SDK operation
Service->>Client: call request()
Client->>API: serialized HTTP request
API-->>Client: response or API error
Client-->>Service: converted payload or exception
Service-->>App: typed result
Glossary
- Client: Shared SDK object that holds endpoint, project, session-related configuration, transport behavior, and realtime state.
- Service: Domain-specific SDK class that exposes Appwrite API operations through the shared
Client. - Model hydration: Conversion of API response objects into SDK model instances.
- Query helper: Builder that serializes list, search, ordering, and filtering operators for service request inputs.
- Installation: Application-associated resource used by Appwrite application and organization integration APIs.
Invariants
- Service classes use the shared client request path rather than owning independent HTTP transport; see src/client.ts and
src/services/**. - Typed resource results are represented through model and enum exports under
src/models/**andsrc/enums/**. - List and filtering inputs are expressed through query helper values rather than ad hoc endpoint-specific serializers; see src/query.ts.
- Access-control strings are composed through permission and role helpers; see src/permission.ts and src/role.ts.
- Realtime subscriptions are managed by
Client, alongside normal request configuration; see src/client.ts.
Routing table
-
src/…/organizations.ts -> Identity and collaboration services
-
src/…/analytics-tracking.ts -> Application and integration services
-
src/…/documents-db.ts -> Data, files, and execution services
-
src/…/databases.ts -> Databases, DocumentsDB, and TablesDB records
-
src/…/documents-db.ts -> Databases, DocumentsDB, and TablesDB records
-
src/…/tables-db.ts -> Databases, DocumentsDB, and TablesDB records
-
src/models/**-> SDK value types and query building -
src/enums/**-> SDK value types and query building -
src/models/**-> Models and enumerations -
src/enums/**-> Models and enumerations