Skip to main content

Getting Started

Install Appwrite SDK​

Install the latest version of the Appwrite SDK. You can find the latest version here.

npm install appwrite@14.0.1

Initialize SDK​

Use the following code to initialize the SDK with your project endpoint and project ID, and to create instances of the Appwrite services to be used in the application.

import { Account, Avatars, Client, Databases, Functions, Locale, Messaging, Storage } from "appwrite";

export const client = new Client();

client.setEndpoint("ENDPOINT")
.setProject("PROJECT_ID");

export const account = new Account(client);
export const database = new Databases(client);
export const storage = new Storage(client);
export const functions = new Functions(client);
export const messaging = new Messaging(client);
export const avatars = new Avatars(client);
export const locale = new Locale(client);
export { ID } from 'appwrite';