> For the complete documentation index, see [llms.txt](https://sdk.sageapp.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sdk.sageapp.xyz/getting-started/installation.md).

# Installation

## Install

To use this library in your own project pull it in from npm:

```sh
npm i @sage-app/sdk
```

The SDK is written with TypeScript and exposes all the types needed for integration.

## Usage

The Sage SDK is expected to run within one of two different contexts: either in a [server](/getting-started/server.md) or [frontend](/getting-started/frontend.md) environment.

Depending on your use case, the following imports are available:

```typescript
import { SageClient } from '@sage-app/sdk/client';

import {
  SageProvider,
  useChannel,
  usePost,
  useUser
} from '@sage-app/sdk/react';
```
