# Install TypeScript SDK

### **Installation**

Add the SDK to your repository with this code:

**npm:**

```typescript
npm install @amityco/ts-sdk --save
```

**yarn:**

```
yarn add @amityco/ts-sdk
```

## Getting Started

The very first thing to do once you have installed the SDK, is to creating an instance of the client and logging in.

{% embed url="<https://gist.github.com/aa3621b494cc798cdd8ccfd05acddbdd>" %}

Once the client has been instantiated and you are logged in. You can now use API's to create a [channel](/social-plus-sdk/chat/channels/create-channel.md), [message](/social-plus-sdk/chat/messaging/send-a-message.md), [community](/social-plus-sdk/social/communities/create-community.md), and [posts](/social-plus-sdk/social/posts/create-post.md)!

{% hint style="danger" %}
Our SDK is designed for browser use only and is not compatible with server-side environments such as Node.js.
{% endhint %}

#### Browser Support

* Chrome: **38+**
* Firefox: **42+**
* Microsoft Edge: **13+**
* Safari: **9+**
* Opera: **25+**

{% hint style="danger" %}
social.plus Web SDK probably won't work great in Internet Explorer 11. We generally support the recent versions of the major browsers listed above.
{% endhint %}

Since social.plus Web SDK uses local cache for performance and user experience reasons, server-side rendering is not supported. To use social.plus Web SDK with NextJS, social.plus Web SDK must be imported using [Dynamic Import with SSR disabled](https://nextjs.org/docs/advanced-features/dynamic-import#with-no-ssr).

## React Native Framework

Use our **TypeScript SDK** natively to support your applications built using the **React Native** framework.

To support older JavaScript runtime, you need to include a global polyfill for your bundled package.

First, install `core-js` in your project.

```bash
npm install core-js
```

Then, import `fromEntries` in the root of your project.

```typescript
import 'core-js/features/object/from-entries';
```

{% hint style="info" %}
You can check out our React Native sample application [here](https://github.com/AmityCo/Amity-Social-Cloud-React-Native-Sample-App).
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.social.plus/getting-started/installation-and-authentication/install-ts-reactnative-sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
