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

shuss

v1.1.0

Published

Super simple yet comprehensive static files server. Shuss

Downloads

1

Readme

shuss - super http u* static server NPM version

Super simple yet comprehensive static files server. Shuss :ski:

u*: pick one

  • uber
  • unicorn
  • universal
  • ubuesque
  • unix
  • uhuhuh

Installation

Shuss requires Node.js to run.

npm install shuss

You'd probably want it in available globally, with:

npm install -g shuss

Livereload

To enjoy the pleasure of the livereload feature, just follow the official browser extension installation guide. Easy.

Settings

Shuss loads settings in that order:

  1. defaults
  2. env
  3. -f <file>
  4. cli args

There are very few settings, all defaulted.

  • port: 1234
  • dir: '.'
  • livreload: false
  • livereloadport: 35729
  • verbose: false

CLI usage

$ > shuss -h
shuss [options...]

Options:
  -d, --dir          Served files directory                 [default: "."]
  -p, --port         Runs Shuss on the specified port       [default: "1234"]
  --verbose          Speak to me
  -l, --livereload   Enables LiveReload
  --livereload_port  Runs LiveReload on the specified port  [default: "35729"]
  -f, --file         Config file path
  -v, --version      Return actual Shuss version
  -h, --help         Displays Shuss help

Default usage:

$ > shuss
info: serving /Users/arnaud/projects/shuss on http://0.0.0.0:1234

Specific port and livereload (on default port):

$ > shuss -p 6543 -l
info: serving /Users/arnaud/projects/shuss on http://0.0.0.0:6543

Now with verbose, specified, port and livereload port

$ > shuss -p 6543 --verbose -l --livereload_port 6523
info: serving /Users/romain/Projects/shuss on http://0.0.0.0:6543
debug: starting server on port 6543
debug: starting livereload server on port 6523

ENV variables

Shuss can load settings from these self-explanatory values:

  • SHUSS_PORT
  • SHUSS_LR
  • SHUSS_LR_PORT
  • SHUSS_DIR
  • SHUSS_VERBOSE

JSON File

You can specify a config file to load:

$ > shuss -f config.json

It is expected to contain json, like in this:

$ > cat config.json
{
  "port":8000,
  "livereload": true,
  "livereloadport": 9854,
  "verbose": true,
  "dir": "./public"
}

plugins

While being very simple, Shuss can handle complexe plugins.

Using a plugin

To use a plugin, you will probably have to install them in the same scope as shuss. Chances are you must install them globaly:

npm i -G shuss-my-awesome-plugin

Then, you just have to specify the comma separated list of plugins you want to use, along with their own arguments. Here is an example with shuss-basic-auth

shuss --plugins basic-auth --username admin --password foobar

Available plugins

Writing a plugin

A plugin is a npm package prefixed by shuss-. Plugins can act on:

You are allowed to add your own cli args.

All they have to define is a load(app, express, config) function. See the basic-auth example.

Development

All Shuss Node.js module are written in CoffeeScript.

In order to use correctly the shuss binary, you have to compile them in JavaScript.

It can be done through:

$ grunt coffee:compile

Or more easily:

$ grunt

Todo

Features

  • test config solver, urgent, not how to do it yet, maybe node-env-file
  • any idea?

Integration

So much to do!

  • grunt-shuss
  • gulp-shuss
  • atom-shuss
  • sublime-shuss
  • younameit-shuss

Contributing

Contributors and CONTRIBUTING

License

Released under the MIT License. See the LICENSE file for further details.