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 🙏

© 2024 – Pkg Stats / Ryan Hefner

piggy-bro

v1.0.0

Published

An open-source wechaty based chatting bot

Downloads

2

Readme

二师兄逗乐机器人

基于 Wechaty 开发开源的二师兄社群逗乐机器人。

运行环境

Node >= 12 且 Node < 14,或 Node >= 14.1.0

有关于特定Node版本的问题,请参阅:Chrome is downloaded but fails to launch on Node.js 14

调试与安装部署

  1. 在任意终端中切换到此文件所在文件夹,如:

    cd /opt/git/piggy-bro
  2. 安装依赖。

    npm i
  3. 启动运行脚本。

    npm run start

如果您遇到了无法启动的问题,请按照下面的条目确认:

  • 运行启动脚本提示 tsc: not found

    这是由于您没有全局安装typescript的npm包造成的。您只需在终端中执行:

    npm install -g typescript
      
    # 或者您在linux系统上运行,需要更高的命令执行权限……
    sudo npm install -g typescript

    安装完成后即可解决该问题。

  • 运行启动脚本提示创建浏览器进程失败

    报错信息类似于:

    [E] Piggy Bro 00:00:00 ERR PuppetWeChatBridge start() exception: Error: Failed to launch the browser process!
    /your/repo/path/node_modules/puppeteer/./local-chromium/linux-848005/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

    这是由于您的系统缺少必备的运行库导致的。

    您只需要检查您的系统中缺少的运行库即可,可以参照 Chrome headless doesn't launch on UNIX

    当然您也可以运行仓库根目录下已经配置好的脚本。如果您的操作系统是Debian系(如Ubuntu),请运行debian-preinstall.sh;如果是CentOS,请运行centos-preinstall.sh

反馈交流

如果您在使用过程中发现任何问题,或是有一些好的点子,欢迎直接为本仓库发送 issue。