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

jng_framework

v1.0.6

Published

a css and js styles collection

Readme

Set of features to handle flex grid layouts and JS components

Intended to be required as a CommonJS module

GUIDE

CSS

.flex class

Simple display flex shortcut

.row class

Create a row that represent 100% of the container

.row element with data-items attribute

Tells the row element how many items can be flexible accommodate without breaking in another line

<div class="row" "data-items="3">

.col class

Create a display flex column element

.col-1 to col-12 class

Col-X where X is the number of grids which the element will occupy within a row

.center-v class

Align container content vertically (or horizontally if the direction is changed)

.center-h class

Align container content horizontally (or vertically if the direction is changed)

.tap-element class

Touchable element with recommended specifications on mobile view port

.img-responsive class

Does not allow the image element overflow the container

.card class

Simple card element

JS

Dependencies

  • Window object injected or present on global
  • JSDom (or equivalent) to simualate window object on Node env

Instantiating Framework

npm install jng_framework --save
  • from browser
var jngFramework = require("jng_framework")();
  • from node
 var jsdom = require("jsdom").jsdom,
        options = {},
        window = jsdom("<html><head></head><body></body></html>", options).defaultView;
var jngFramework = require("jng_framework")(window);

DOM Handler

Set of methods that can handle gracefully DOM manipulations

Exposed as domHandler object

CSS Injector

Methods of domHandler exposed as domHandler.cssInjector([cssFile1, cssFile2])

Accepts an array of filePaths that will create a link element to each file and append it to Head element

Handle duplicated imports

Append Child

Methods of domHandler exposed as domHandler.appendChild(parentEl, childEl)

Accepts a parent target to insert dependencies just a suggar to window.appendChild() to handle errors

Modal Box

A clean implementation of a Modal Box to be fulfilled with a custom HTML template

Exposed as modalBox constructor which will accept a configuration object (TODO)

var modal1 = jngFramework.modalBox();
openModal

Method of Modal Box exposed as modal1.openModal({}).

Accept a custom JSON configuration that will customize the modal box (TODO CUSTOMISATIONS)

element.addEventListener("click", function () {
    modal1.openModal({});
});
closeModal

Method of Modal Box exposed as modal1.closeModal().

Closes the modal box cleaning it out the customized HTML and listeners attached on open

closeBtn.addEventListener("click", function () {
    modal1.closeModal();
});

Social Box

A simple and responsive box that can be attached to a container element with your social media information

Exposed as socialBox constructor which provide the socialBox object to be further configured

var socialBox = jngFramework.socialBox();
renderSocialBox

Method of socialBox that will accept three parameters:

  • an array of JS object in the format declared below
  • a DOM node that will be the parent container
  • the side which the socialBox should be appended - accepted "left" or "right"
var socialMedias = [{
    "type": "facebook",
    "profileLink": "https://www.facebook.com/daniel.abrao.35"
}, {
    "type": "github",
    "profileLink": "https://github.com/jungleBadger"
}, {
    "type": "linkedin",
    "profileLink": "https://br.linkedin.com/in/daniel-ceragioli-abrão-92935675"
}];

var socialBoxParent = document.getElementById("parentContainer");

socialBox.renderSocialBox(socialMedias, socialBoxParent, "right");

TODO

  • MORE FEATURES
  • Implement traditional HTML script import as Window object
  • Unit test
  • Library documentation
  • Features Demos