Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/channel-io/channel-web-sdk-loader

Official Channel Web SDK Loader
https://github.com/channel-io/channel-web-sdk-loader

branding channel channel-io channel-talk channel-web-sdk chat chat-application chatbot crm crm-platform customer-relationship-management customer-service japanese-language korean-language live-chat live-chat-sdk marketing-tools messenger sales user-management

Last synced: 3 days ago
JSON representation

Official Channel Web SDK Loader

Awesome Lists containing this project

README

        



Channel Talk

# channel-web-sdk-loader

[![npm](https://img.shields.io/npm/v/%40channel.io%2Fchannel-web-sdk-loader)](https://www.npmjs.com/package/@channel.io/channel-web-sdk-loader)
[![NPM](https://img.shields.io/npm/l/%40channel.io%2Fchannel-web-sdk-loader)](https://github.com/channel-io/channel-web-sdk-loader/blob/main/LICENSE)
[![npm](https://img.shields.io/npm/dm/%40channel.io/channel-web-sdk-loader)](https://www.npmjs.com/package/@channel.io/channel-web-sdk-loader)
[![minzip](https://img.shields.io/bundlephobia/minzip/@channel.io/channel-web-sdk-loader)](https://bundlephobia.com/[email protected]/channel-web-sdk-loader)

> The Official [Channel SDK](https://developers.channel.io/docs/sdk) Loader for Web

## Quick Links
- [📄 Official Developer Documentation](https://developers.channel.io/docs/web-channelio)
- [📄 TypeDoc API Reference](https://channel-io.github.io/channel-web-sdk-loader/)
- [📦 Playground - React Demo](https://codesandbox.io/p/sandbox/ch-web-sdk-playground-xm8ls8)

## Installation
### NPM
```bash
npm install @channel.io/channel-web-sdk-loader
```

### Yarn
```bash
yarn add @channel.io/channel-web-sdk-loader
```

### PNPM
```bash
pnpm install @channel.io/channel-web-sdk-loader
```

## Usage
> ⚠️ Note: This SDK is designed for client-side use only and should not be invoked on the server-side.

### Step1: Import the ChannelService Module
```typescript
import * as ChannelService from '@channel.io/channel-web-sdk-loader';
```

### Step2: Load the Channel Web SDK
```typescript
ChannelService.loadScript()
```

### Step3: Initialize the Channel Web SDK
```typescript
ChannelService.boot({
pluginKey: 'YOUR_PLUGIN_KEY'
})
```
- Obtain your [plugin key](https://developers.channel.io/docs/web-boot-option#pluginkey) from the [Desk application](https://developers.channel.io/docs/glossary#desk).
- For additional information, please consult the [the official documentation](https://developers.channel.io/docs/sdk#get-a-plugin-key).

## API Documentation
- [📄 TypeDoc API Reference](https://channel-io.github.io/channel-web-sdk-loader/)

## Playground
- [📦 CodeSandbox - React Demo](https://codesandbox.io/p/sandbox/ch-web-sdk-playground-xm8ls8)