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 🙏

© 2025 – Pkg Stats / Ryan Hefner

soft-serve

v0.2.0

Published

"A small, vanilla javascript ui and utility library"

Downloads

15

Readme

Softserve

A simple, dependency-free, Javascript UI component and utility library written in vanilla, es6 Javascript

Usage and Installation

First, install the package using npm:

npm install -S soft-serve

Then you have a couple of options on how to include the package. Soft-serve supports ES6 imports, CommonJS Modules, and the AMD module system. If all else fails, you can include the script in your document like in the old-days

  1. Using ES6 Imports

    The package can be inclued using the standard ES6 import statement

    import s from '/path/to/modules/soft-serve/dist/scripts/soft-serve.min'

    Then you just need to include the base css file from the downloads

    <link rel='stylesheet' href='/path/to/modules/soft-serve/dist/styles/main.min.css'>
  2. Using CommonJs

    Using CommonJS is essentially the same as using the ES6 import pattern

    var s = require('/path/to/modules/soft-serve/dist/scripts/soft-serve.min')

    And then include the styles

    <link rel='stylesheet' href='/path/to/modules/soft-serve/dist/styles/main.min.css'>
  3. Using AMD

    Using AMD is a bit more complicated, but is still simple

    define(['soft-serve'], function(softserve) {
    	const s = softserve;
    });

    And again, incude the styles

    <link rel='stylesheet' href='/path/to/modules/soft-serve/dist/styles/main.min.css'>

Customization

Softserve gives you the ability to highly modularize your development project by not relying on any dependencies even among the seperate components, so you can import individuals modules that you not without worrying about whether they work or not.

  1. Using just the notifications component

    import s.notifications from '/path/to/modules/soft-serve/dist/scripts/soft-serve.min'
  2. If you are using Sass as a preprocessor for your CSS you can even import select sass files. The Sass files do have interwoven dependencies, but these just consist of a reset file and some other base styles. You should be able to easily replace these and leaving them out shouldn't break any of the components. In your Sass file you can simple do

    @import "/path/to/modules/soft-serve/src/styles/components/notifications"

    And that will only include the styles for the notifications component

Contribute

The library is currently open-source with me only being able to work on it when I find the time. If you have any cool ideas for additions/modifications, feel free to fork the repo and make a pull-request!