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

@makay/flexbox

v3.0.0

Published

Tiny flexbox library.

Readme

@makay/flexbox

npm (scoped) license

Tiny flexbox library (1.65KB gzipped) to help you build responsive layouts quickly and without writing any CSS.

Goals of this library:

  • To expose most of flexbox's properties as human-readable CSS classes.
  • To not change any properties of classes/elements outside the library.
  • To be able to be used alongside other CSS libraries and frameworks without breaking anything*.
  • To be as small as possible while still achieving all the previous goals.

* There might be collisions with the class names of some libraries or frameworks (like Bootstrap's ".row"). If possible, exclude the grid systems offered by these as you will not be needing them anyway. If you really have to keep them, make sure this library is loaded after them and things might still work for the most part.

What is flexbox?

Flexbox provides tools to allow rapid creation of complex, flexible layouts, and features that historically proved difficult with CSS. [Source]

If you're unfamiliar with flexbox be sure to take a look at the following resources (in no specific order):

  • http://cssreference.io/flexbox/
  • https://css-tricks.com/snippets/css/a-guide-to-flexbox/
  • https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox
  • https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Basic_Concepts_of_Flexbox

Installation

npm (recommended)

Run npm install @makay/flexbox or yarn add @makay/flexbox to install the latest version.

Include node_modules/@makay/flexbox/flexbox.css or node_modules/@makay/flexbox/flexbox.min.css in your bundle using your preferred bundler.

CDN

Include one of the following stylesheets in your page:

https://cdn.jsdelivr.net/npm/@makay/[email protected]/flexbox.css

https://cdn.jsdelivr.net/npm/@makay/[email protected]/flexbox.min.css

Documentation

After installing the library, you can start using it by adding the classes listed below to the elements of your page.

Container classes

Class|CSS properties ---|--- row|display: flex;flex-shrink: 0;flex-direction: row; column|display: flex;flex-shrink: 0;flex-direction: column;

Container modifiers

Class|CSS properties ---|--- reverse|flex-direction: row-reverse;orflex-direction: column-reverse; shrink|flex-shrink: 1; wrap-reverse|flex-wrap: wrap-reverse; wrap|flex-wrap: wrap; nowrap|flex-wrap: nowrap; align-start|align-items: flex-start; align-center|align-items: center; align-end|align-items: flex-end; align-baseline|align-items: baseline; align-stretch|align-items: stretch; align-content-start|align-content: flex-start; align-content-center|align-content: center; align-content-end|align-content: flex-end; align-content-stretch|align-content: stretch; align-content-space-between|align-content: space-between; align-content-space-around|align-content: space-around; justify-start|justify-content: flex-start; justify-center|justify-content: center; justify-end|justify-content: flex-end; justify-space-between|justify-content: space-between; justify-space-around|justify-content: space-around;

Child classes

Class|CSS properties ---|--- (any)|max-width: 100%; align-self-auto|align-self: auto; align-self-start|align-self: flex-start; align-self-center|align-self: center; align-self-end|align-self: flex-end; align-self-baseline|align-self: baseline; align-self-stretch|align-self: stretch; flex-none|flex: none; flex|flex-grow: 1; flex-X|flex-basis: calc(X*100%/12);

X can range from 1 to 12, inclusive.

Child media queries

Class|max-width|CSS properties ---|---|--- flex-lg-X|1199px|flex-basis: calc(X100%/12); flex-md-X|991px|flex-basis: calc(X100%/12); flex-sm-X|767px|flex-basis: calc(X100%/12); flex-xs-X|575px|flex-basis: calc(X100%/12);

X can range from 1 to 12, inclusive.

Utility classes

Class|CSS properties ---|--- padded|padding: 16px; hidden|display: none;

Utility media queries

Class|max-width|CSS properties ---|---|--- hidden-lg|1199px|display: none; hidden-md|991px|display: none; hidden-sm|767px|display: none; hidden-xs|575px|display: none;

Class|min-width|CSS properties ---|---|--- hidden-gt-lg|1200px|display: none; hidden-gt-md|992px|display: none; hidden-gt-sm|768px|display: none; hidden-gt-xs|576px|display: none;

Contribute!

Found an issue or want to add a new feature? Feel free to open an issue or make a pull request!