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

generator-essentials

v0.1.9

Published

The essential boilerplate that includes a responsive grid and typography. Including full production ready task runner system.

Readme

generator-essentials

Codeship Status for S3B4S/generator-essentials

Table of contents

Description

So, I really like using very specific packages which do their job very well, Jeet and Typi for example. As I kept expanding my library of must-have small tools that make my life so much easier I started noticing that setting up the project took longer than I wanted it to be. Wouldn't it be great if I could use templates and have everything generated and installed with the command line? Yes, it would be, and that's why generator-essentials has been created. And it's all yours to use aswell! :smile:

  • No bloated stuff, only code that you actually use will be deployed.
  • Tasks out-of-the box! Refresh your browser and compile scss to your css automatically! No configuration needed.
  • Flexible, responsive grid (but really).
  • Responsive typography.
  • A scss structure that follows a philosophy, to keep all your projects consistent.

Get started

Prerequisites

Tool | If it's not installed yet :--------------------------- | :---------- npm| https://docs.npmjs.com/getting-started/installing-node Yeoman | npm install -g yo Gulp | npm install gulp-cli -g

You can check your installed global packages with npm ls -g --depth=0.

Installing generator-essentials

npm install -g generator-essentials

Generating the project

Unfortunately, at the moment npm init hasn't been configured within the generator itself. So for now this has to happen manually.

  1. Create a new directory that contains your project, this is the root directory.

  2. Navigate inside this directory from terminal.

  3. Run npm init.

  4. Run yo essentials.

    • By default, your directory name will be the project name, but you can set a new one.

npm install isn't necessary, this is taken care of by the generator.

  1. Happy coding!

Tasks

Task | Description :---- | :---------- gulp| Launces your project in browser. Auto-refresh & scss compiles to css on save.

What does this include?

What does this generate?

├── node_modules/
├─┬ src/
│ ├── js/
│ ├─┬ scss/
│ | ├── base/
│ | ├── components/
│ | ├── utils/
│ | ├── layout/
│ | └── vendor/
│ └── index.html
└── gulpfile.js

Philosophy behind scss structure and BEM

When working with scss, you really want to keep it mantained, this makes it easier for other developers to read your code, or if you have to come back to your project later on. After looking into multiple structures I went with the one that's heavily insipred from sitepoint.com.

One thing that's also very useful, is using BEM. I recommend you to seperate the css that you use for each component and the css that you use to display (the space between) each component. This way, you can easily reuse the components in later projects and all you have to do is write the css code to create the spacing in between or place them at the correct position on your site. This follows the BEM philosophy.

In short:

Directory | Purpose :------------ | :---------- base | This is where css which will apply 'globally' will end up, think of typography. components | The css for each component, best to keep each seperated in its own file. utils | This is where variables, mixins etc will end up, the utilities that come along with scss. layout | Grid, margins and paddings between components. vendor | Third-party code, keep it seperated so you can keep track of updates etc easily.

Planned features

  • [ ] Let the generator execute npm init in the way it's supposed to be.
  • [ ] Provide options and be able to pass these as flags.
    • [ ] Other preprocessor options beside SCSS.
    • [ ] Include comments in code.
  • [ ] Choose which npm packages you want.
  • [x] Let Yeoman generate empty directories

Thanks

Thanks MacMeep for testing the package! :tada: