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 🙏

© 2026 – Pkg Stats / Ryan Hefner

spaaace

v1.0.2

Published

CSS helper classes for spacing design.

Downloads

6

Readme

Spaaace

Helper classes for CSS spacing based on Space in design systems.

I found this article quite helpful, even though I'm not a designer I still am a frontender and thus sometimes I do have to make decisions related to spacing and other visual elements. This set of guidelines come in handy when a quick padding or margin has to be put in place but instead of trying "random" numbers these sizes are now a sort of go to solution. This is also a project I used to dip my feet on Stylus, even if it really was just a tiny bit.

Getting Started

There's no real science for getting started with this project.

A note on the sizes used: The base unit of measure used was 2 pixels and then an exponential function applied until the desired maximum size. The article mentioned, however, that many other systems can be adopted to calculate these sizes.

Prerequisites

To compile a new version you'll need:

Note: As of NPM v5.2, a new tool to run scripts is included, npx, which let's developers run local binaries from the node_modules folder without having to write the full path to them. The build scripts take advantage of that and thus that's the minimum required version of npm to compile this project.

Installing

There is no development environment due to the size of the project but get everything needed to compile a new version the steps are:

Install nodejs (npm is included)

Linux

curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt-get install -y nodejs

Next install the project dependencies

npm install

To test that everything is installed execute npm run compile and it should generate a new style.css file.

Deployment

To use this in a project just import the css file from node_modules/spaaace/style.css.

Usage

The classes are divided into 5 main types

  • inset - For spacing inside an element.
  • inset-stretch - Same as inset with less space on the right and left
  • inset-squish - Same as inset with less space on top and bottom
  • stack - For spacing outside the element's bottom
  • inline - For spacing outside the element's right

The following are the sizes to be used in conjunction to the previous types (ex: inset-xl)

  • xxs (excluding inset-stretch and inset-squish)
  • xs
  • ss
  • m
  • l
  • xl

Examples: For visual reference open the index.html file which has all the classes laid out in different elements.

Built With

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Telmo Alves - Initial work - blugt

License

This project is licensed under the MIT License - see the LICENSE.md file for details