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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@centro-paghe/cp-chatbot-ai-ui

v0.1.25

Published

This library add the possibility to connect to the Centro Paghe ChatBot

Downloads

45

Readme

cp-chatbot-ui

This library add the possibility to connect to the Centro Paghe ChatBot

installation

npm i @centro-paghe/cp-chatbot-ai-ui

Parameteres (web component attributes)

  • user-cf: fiscal code of the logged user, its not mandatory

  • company-id: company id of the logged user, its not mandatory

  • application-id: the two letter ID that identify the application inside Centro Paghe (e.g. "AU" anagrafica unica)

  • document-id: this is a field for future implementation, ignore it for now

  • z-index: the zindex of the button and the popup in case there are some element in the page with a higher z-index

  • bottom: the distance form the bottom of the page to the button in pixel

  • right: the distance form the right of the page to the button in pixel

usage

import '@centro-paghe/cp-chatbot-ai-ui';

Here some example on how you can use the web component

Vanilla js and angularjs

you can put the web component directly in the html.

<body>
  
  <!--  ...  -->
  
  <cp-chat-bot-ui
      user-cf="RNEDVD"
      company-id="CC"
      application-id="APPID"
      document-id="document-id"
      z-index="999999"
  ></cp-chat-bot-ui>

  <!--  ...  -->

</body>

If you dont have npm you can download this repo of this package and get the dist/index.js file

<head>
  <script src="/path/to/index.js" />
</head>

Angular 2+

import this libraty in the root module

import '@centro-paghe/cp-chatbot-ai-ui';

then create a component and module like the following


import { Component } from '@angular/core';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';

@Component({
  selector: 'app-cp-chat-bot-ui-wrapper',
  standalone: true,
  imports: [],
  template: `<cp-chat-bot-ui
    user-cf="RNEDVD"
    company-id="CC"
    application-id="APPID"
    document-id="document-id"
  />`,
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
export class CpChatBotUiWrapperComponent {}

import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CpChatBotUiWrapperComponent } from './cp-chat-bot-ui-wrapper.component';

@NgModule({
  declarations: [CpChatBotUiWrapperComponent],
  exports: [CpChatBotUiWrapperComponent],
  imports: [CommonModule],
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
export class CpChatBotUiWrapperModule {}

Vue

<script setup>
import '@CentroPagheSrl/cp-chatbot-ai-ui';
</script>

<template>

  <cp-chat-bot-ui
      user-cf="RNEDVD"
      company-id="CC"
      application-id="APPID"
      document-id="document-id"
      z-index="999999"
      bottom="40"
      right="40"
  ></cp-chat-bot-ui>

</template>

React

import '@CentroPagheSrl/cp-chatbot-ai-ui';

const Compoennt = () => {

  return <>

    {/* ---------- */}

      <cp-chat-bot-ui
          user-cf="RNEDVD"
          company-id="CC"
          application-id="APPID"
          document-id="document-id"
          z-index="999999"
          bottom="40"
          right="40"
      ></cp-chat-bot-ui>


    {/* ---------- */}

  </>

}