npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@corvesta/chat-widget

v19.1.1

Published

* This repository provides a unified chat widget library supporting multiple chat platforms * This component should be used across portals to allow for consistent chat functionality and easy integration of different chat providers

Downloads

163

Readme

Chat Widget Library

What is this repository for?

  • This repository provides a unified chat widget library supporting multiple chat platforms
  • This component should be used across portals to allow for consistent chat functionality and easy integration of different chat providers

Features

Multi-Platform Support Using the ChatWidgetType enum, you can easily switch between different chat platforms including Talkdesk and Genesys, or disable chat entirely.

Co-browsing Integration Built-in support for Auvious co-browsing functionality that can be configured to work alongside chat widgets with automatic margin adjustments.

Dynamic Script Loading All chat platforms are loaded dynamically, ensuring optimal performance by only loading the necessary scripts when needed.

Flexible Configuration Each chat platform can be configured independently through the ChatConfig interface, allowing for customized branding, regions, and client settings.

CSS Variable Integration Automatic CSS variable management for proper widget positioning and responsive design integration.

Components

ChatWidgetComponent Main orchestrator component that renders different chat widgets based on configuration. Uses Angular's ngSwitch to conditionally display chat implementations.

TalkdeskChatComponent Implements Talkdesk chat widget functionality with full SDK integration and customizable branding options.

GenesysScriptComponent Dynamically injects Genesys chat scripts with configurable environments and deployment settings.

AuviousCobrowseComponent Provides co-browsing functionality through the Auvious platform with automatic chat widget integration.

How do I get set up?

Local Development

  • Run ng build chat-widget --watch from the main project to build in watch mode
  • Assuming the dependency is already in the portal's package.json, add the following code to your tsconfig.json file under paths. Double check that the relative path used for the chat widget library matches your repository location
"@angular/*": [
"./node_modules/@angular/*"
],
"@corvesta/chat-widget": [
"../chat-widget/dist/corvesta/chat-widget"
]
  • If the package is not already installed then run npm install "../chat-widget/dist/corvesta/chat-widget", again making sure that the path matches for the chat-widget

Usage Example

// In your component
export class AppComponent {
  chatType = ChatWidgetType.TALKDESK;
  chatConfig: ChatConfig = {
    chatClientId: 'your-client-id',
    chatClientRegion: 'us-east-1',
    chatBranding: {
      primaryColor: '#007bff',
      // ... other branding options
    }
  };
}
<!-- In your template -->
<lib-chat-widget 
  [chatType]="chatType" 
  [chatConfig]="chatConfig">
</lib-chat-widget>

<!-- For co-browsing -->
<lib-auvious-cobrowse 
  applicationId="your-app-id"
  [isTalkdeskChatEnabled]="chatType === ChatWidgetType.TALKDESK">
</lib-auvious-cobrowse>

Relevant Models

ChatConfig

interface ChatConfig {
  chatClientId: string;
  chatClientRegion: string;
  chatBranding: any;
}

ChatWidgetType

enum ChatWidgetType {
  OFF = 'OFF',
  TALKDESK = 'TALKDESK'
}

Build

Run ng build chat-widget to build the project. The build artifacts will be stored in the dist/ directory.

Publishing

After building your library with ng build chat-widget, go to the dist folder cd dist/chat-widget and run npm publish.

Running unit tests

Run ng test chat-widget to execute the unit tests via Karma.