# 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](https://docs.social.plus/social-plus-sdk/chat/channels/create-channel), [message](https://docs.social.plus/social-plus-sdk/chat/messaging/send-a-message), [community](https://docs.social.plus/social-plus-sdk/social/communities/create-community), and [posts](https://docs.social.plus/social-plus-sdk/social/posts/create-post)!

{% 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 %}
