Introducing a new way to review your PRs.

Read the announcement

appwrite / sdk-for-react-native

[READ ONLY] Official Appwrite React Native SDK 💙 ⚛︎

View on GitHub

24 documents · Updated Nov 18, 2026

overview

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/** and src/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