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

customer-service-system

v1.0.3

Published

A customizable customer service system UI component

Readme

客服系统

js实现客服系统,不使用框架,导出umd格式文件,文件名customer-service-system.js,导出默认函数名为customService

功能

  1. 客服弹窗,
  2. 客服列表
  3. 客服分类

域名切换

  1. 通过路径上的参数来切换域名,默认域名是customer.bitbrowser.net,当路径上有browser911=true时域名切换为customer.911browser.net
  2. 调用时通过props参数切换,当props.browser911为布尔值true时,域名切换为customer.911browser.net;当props.browser911为域名时,则切换为props.browser911的值;

使用方法

1. 传统项目

1. 下载文件,将文件放入项目中,在html文件中引入文件,使用方法如下:
2. 引入文件,使用方法如下:
<script src="./customer-service-system.js"></script>

使用方法
<script>
    customService({
        projectId: 'xxx', // 项目ID,必填
        lang: 'en', // 语言,默认en
    })
</script>

2. vue项目

1. npm下载文件
npm install customer-service-system
2. 在main.js文件中引入文件,使用方法如下:
import customService from './customer-service-system.js'

使用方法
customService({
    projectId: 'xxx', // 项目ID,必填
    lang: 'en', // 语言,默认en 
})

参数说明

type: "", // 1.客服 2.商务合作 3.投诉建议
count: "", // 客服数量
projectId: "2e64b8e0d65b4c0d7cd8d84bb36c5e57", // 项目ID
lang: "en",
zIndex: 9999, // 层级
isApp: false, // 是否是APP
groupTypes: 'SocialMedia,WeChat,Telegram', // SocialMedia:社交媒体, EnterpriseWeChat:企业微信, EnterpriseWeChat_en:企业微信(英), WeChat:微信, WeChat_en:微信(英), OfficialAccounts:公众号, OfficialAccounts_en:公众号(英), Telegram:Telegram, Telegram_en:Telegram(英), WhatsApp: WhatsApp, WhatsApp_en: WhatsApp(英)
position: "right-bottom", // 位置 left-top left-bottom right-top right-bottom
customPosition: { // 自定义位置
 top: "100px",
 left: "10px",
 bottom: "100px",
 right: "100px",
},