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

soysauce

v0.1.0

Published

Pretty sauceLabs browser matrix widget

Downloads

40

Readme

Soysauce NPM version Build Status Coverage Status

Pretty sauceLabs browser matrix widget

Sauce Test Status

API

  • http://soysauce.berabou.me/u/saucelabs_username.svg
  • http://soysauce.berabou.me/u/saucelabs_username/session_name.svg

Can be render if available https://saucelabs.com/rest/v1/saucelabs_username/jobs

Provide widgets at your Express4

$ npm install express soysauce
$ node app.js
# Server running at http://localhost:59798/

app.js

// Dependencies
var express= require('express');
var soysauce= require('soysauce');

// Setup express
var app= express();
app.use(soysauce.middleware({datauri:true}));
app.listen(59798,function(){
  console.log('Server running at http://localhost:59798/');
});

Can be render at:

  • http://localhost:59798/saucelabs_username.svg
  • http://localhost:59798/saucelabs_username/session_name.svg

Middleware options

datauri: default true

Replace the url of image to datauri for avoid Mixed Content.

// Not use datauri
app.use(soysauce.middleware());
app.listen(59798,function(){
  // ...
  // <image x="7" y="2" width="21" height="21" xlink:href="http://localhost:59798/59798/chrome_64x64.png" />
  // ...
});

// Use datauri
app.use(soysauce.middleware({datauri:true}));
app.listen(59799,function(){
  // ...
  // <image x="7" y="2" width="21" height="21" xlink:href=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAYjElEQVR4Ab2ZC5RdZZXnf/v7zn3XK6lUVV6VFyQQDRAgRGzAICDEKGLDIALSPhGlm/Ex3a09ziBjtw8UQdT2bfsYHEQcp0UcBGlQgmLkTSBASEJC3lVJveu+zvm+PeW996zcOmtCKoD+19q1v3uqslb+//3fe..." />
  // ...
});

cache: default true

Cache the rendered svg. Update the cache if the jobs have been added.

CLI

soysauce url > widget.svg

Render a <svg> to stdout If url is jobs.json.

$ npm install soysauce --global
$ soysauce "https://saucelabs.com/rest/v1/59798/jobs?name=object-parser&full=true&limit=50" > widget.svg

Relevant project

multi-framework javascript browser testing

Launch any browser on SauceLabs at concurrency.

License

MIT