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

sbot-test-guard

v3.2.0

Published

gathers sbot process data and uses sbot itself to report it

Downloads

3

Readme

sbot-test-guard

Does the following:

  • Runs a scuttlebot instance
  • Samples the sbot process and writes that data with message type sys-stat
  • Parses and saves stderr from sbot and writes that data with message type error-dump
  • Restarts sbot if it crashes or is killed
  • Rate limited restarts. If sbot crashes too often the guard will exit

It is assumed that scuttlebot is installed globally.

Install

$ npm install sbot-test-guard -g

Usage

Set .sbot-test-guardrc as needed:

cmd="sbot server"

Start the guard.

$ sbot-test-guard

Output. If sbot crashes the error message is saved and posted next time sbot is launched.

started server with pid 16914
sampled data {"os":{"type":"Linux","arch":"x64","platform":"linux","loadavg":[0.1884765625,0.33056640625,0.45947265625]},"process":{"name":"node","state":"S (sleeping)","tgid":"16914","ngid":"0","pid":"16914","ppid":"16912","tracerpid":"0","uid":["1000","1000","1000","1000"],"gid":["1000","1000","1000","1000"],"fdsize":"64","groups":"4 20 24 25 27 29 30 44 46 100 108 120 1000 ","vmpeak":"970140 kB","vmsize":"970140 kB","vmlck":"0 kB","vmpin":"0 kB","vmhwm":"37108 kB","vmrss":"37108 kB","vmdata":"936152 kB","vmstk":"136 kB","vmexe":"8500 kB","vmlib":"4688 kB","vmpte":"244 kB","vmswap":"0 kB","threads":"6","sigq":"2/62763","sigpnd":"0000000000000000","shdpnd":"0000000000000000","sigblk":"0000000000000000","sigign":"0000000000001000","sigcgt":"0000000180004202","capinh":"0000000000000000","capprm":"0000000000000000","capeff":"0000000000000000","capbnd":"0000001fffffffff","seccomp":"0","cpus_allowed":"f","cpus_allowed_list":"0-3","mems_allowed":"00000000,00000001","mems_allowed_list":"0","voluntary_ctxt_switches":"63","nonvoluntary_ctxt_switches":"1381"}}
server closed with code 8
started server with pid 16924
posting data "Error: wtf dude something went wrong/n    at die (/home/lms/src/ssbc/scuttlebot/bin.js:16:9)/n    at null._onTimeout (/home/lms/src/ssbc/scuttlebot/bin.js:19:3)"

License

MIT