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

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.

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

<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>

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.

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