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

@beisen/webim

v1.2.8

Published

web IM

Downloads

39

Readme

webim 使用文档

安装

bower install webim

引入

require(['webim'], function(beisenWebim) {
    var beisenWebim = new beisenWebim({
        "accid": "5201314",
        "token": "07cb936428503274b9552c54303731d7",
        "tenantId": "100001",
        "appId": "100",
        "appKey": "",
        "resourceFileUrl": ""
        "onError":
    });
    beisenWebim.init();
});

参数说明:
  accid            用户的id,和tita账户ID相同
  token            云信token,用做登录验证
  tenantId         该账户所属的租户id
  appId            应用id(tita 的appId为1)
  appKey           该租户所属的云信应用下的appKey
  resourceFileUrl  资源文件地址(sdk基础类库cdn地址)
  onError          错误处理函数,IM报错时该函数会收到err参数

API:

init:

  webim项目初始化,用户在登陆tita的时候,需要同步调用该方法,用于webim登陆.
  用法:
      beisenWebim.init()
  参数:无
  场景:tita登录时调用

popupPanel

  激活webim操作主面板
    用法:
     beisenWebim.popupPanel()
  参数:无
  场景:右上角webim图标

newChatPanel

  激活webim聊天窗口
     beisenWebim.newChatPanel()
  参数:
      id  : userId
      type :team或者p2p
  参数示例:
      { "id" : "100001", "type" :p2p" }
  场景: 通讯录聊天入口

popupProjectPanel

  激活项目聊天面板
  beisenWebim.popupProjectPanel(data)
  参数示例:
  {
      workId:"123123",      //项目ID
      workTitle:"test",//项目名称
      appId:1          //应用ID
  }
  场景:项目群聊入口

popupTaskPanel

  激活计划聊天面板
  beisenWebim.popupTaskPanel(data)
  参数示例:
  {
      taskId:"123123",      //任务ID
      taskTitle:"test",//任务名称
      appId:1          //应用ID
  }
  场景:任务计划聊天入口

checkLoginStatus

  检查IM登录状态
  beisenWebim.checkLoginStatus()
  参数:无
  返回值:1 表示登录成功   0 表示未登录
  场景:依据登录状态控制入口图标

getPanelState

  检查IM组件面板的展开和关闭状态
  beisenWebim.getPanelState()
  参数:无
  返回值:1 表示展开   0 表示关闭
  场景:依据展开关闭的状态控制IM入口的背景色