# How can i use amity chat without any package manager? I want a client side js library/framework which can be used without npm or yarn package manager

**URL:** <https://forum.social.plus/t/how-can-i-use-amity-chat-without-any-package-manager-i-want-a-client-side-js-library-framework-which-can-be-used-without-npm-or-yarn-package-manager/335>\
**Category:** Web\
**Created:** [October 21, 2021, 5:26am UTC](https://forum.social.plus/t/how-can-i-use-amity-chat-without-any-package-manager-i-want-a-client-side-js-library-framework-which-can-be-used-without-npm-or-yarn-package-manager/335 "2021-10-21T05:26:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vibhorMaheshwari](https://avatars.discourse-cdn.com/v4/letter/v/db5fbb/32.png) [@vibhorMaheshwari](https://forum.social.plus/u/vibhorMaheshwari)\
**Post date:** [October 21, 2021, 5:26am UTC](https://forum.social.plus/t/how-can-i-use-amity-chat-without-any-package-manager-i-want-a-client-side-js-library-framework-which-can-be-used-without-npm-or-yarn-package-manager/335/1 "2021-10-21T05:26:54Z")

</div>

How can i use amity chat without any package manager? I want a client side js library/framework which can be used without npm or yarn package manager.

---

<div class="post-metadata">

**Author:** ![touchaponk](https://avatars.discourse-cdn.com/v4/letter/t/ec9cab/32.png) [@touchaponk](https://forum.social.plus/u/touchaponk)\
**Post date:** [October 21, 2021, 10:12am UTC](https://forum.social.plus/t/how-can-i-use-amity-chat-without-any-package-manager-i-want-a-client-side-js-library-framework-which-can-be-used-without-npm-or-yarn-package-manager/335/2 "2021-10-21T10:12:27Z")

</div>

Hi @vibhorMaheshwari - yes you can import the js file directly with the following snippet:

```auto
<script src="https://unpkg.com/@amityco/js-sdk">
<script>
const amitySdk = window['@amityco/js-sdk']
const { default: AmityClient, ApiEndpoint } = amitySdk

const client = new AmityClient(
     { apiKey: "<YOUR_API_KEY>", apiEndpoint: "<YOUR_APP_REGION>" }
);
</script>

```

---

<div class="post-metadata">

**Author:** ![vibhorMaheshwari](https://avatars.discourse-cdn.com/v4/letter/v/db5fbb/32.png) [@vibhorMaheshwari](https://forum.social.plus/u/vibhorMaheshwari)\
**Post date:** [October 21, 2021, 11:45am UTC](https://forum.social.plus/t/how-can-i-use-amity-chat-without-any-package-manager-i-want-a-client-side-js-library-framework-which-can-be-used-without-npm-or-yarn-package-manager/335/3 "2021-10-21T11:45:29Z")

</div>

hi @touchaponk thanks for reply, i am trying with your given code, but i am getting an error on line: “const { default: AmityClient, ApiEndpoint } = amitySdk”.  
cna you please look here and please let me know if there is any error on this line.

---

<div class="post-metadata">

**Author:** ![vibhorMaheshwari](https://avatars.discourse-cdn.com/v4/letter/v/db5fbb/32.png) [@vibhorMaheshwari](https://forum.social.plus/u/vibhorMaheshwari)\
**Post date:** [October 21, 2021, 11:55am UTC](https://forum.social.plus/t/how-can-i-use-amity-chat-without-any-package-manager-i-want-a-client-side-js-library-framework-which-can-be-used-without-npm-or-yarn-package-manager/335/4 "2021-10-21T11:55:49Z")

</div>

Hi @touchaponk, sorry there was my mistake, now error is not coming, once again thanks for your support.  
🙂
