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 🙏

© 2024 – Pkg Stats / Ryan Hefner

mni

v0.5.0-alpha

Published

Mnimal frontend framework

Downloads

5

Readme

mni

Latest Version on NPM npm Software License

mni (as in "mini") is a mostly unopinionated SCSS and JavaScript framework built with simplicity and efficiency in mind.

The main goal of mni is to eliminate unnecessary bloat caused by using conventional frameworks (like Bootstrap) while still providing plenty of common features. This is achieved by a highly modular architecture that encourages you, the developer, to use only what you need.

mni is meant to be used as a base library for you to extend on and not a "plug-and-play" production-ready solution.

Features

  • Minimal styling by default so you don't waste time overriding vendor styles
  • Interactive CLI setup tool with integrated support for Laravel projects
  • Easy configuration and compilation via Laravel Mix (even without Laravel!)
  • Out-of-the-box integration of Autoprefixer, clean-css and Modernizr
  • Mobile-first and responsive styling
  • Plenty of common features you know and love like a sophisticated grid system, responsive navigation bars, buttons, lightweight and mobile-ready lazy loading and lightboxes for images, and many more
  • JavaScript components as ES6 modules
  • Well documented and clean code

Work in progress

This is a WIP and not ready for use in production.

Detailed documentation will follow.

Please use npm run docs to generate a sassdoc documentation page in the meantime.

Installation and setup

First, navigate to the root of your project and run:

npm i mni

After mni and its dependencies were installed successfully, run the setup:

mni setup

The setup will ask you to choose the desired paths for the source and destination files and create a boilerplate for your project:

  • Public path (location of mix-manifest.json): This is the directory for the compiled stylesheets and scripts that is publicly available. This is also where the mix-manifest.json will be created when compiling.
  • Source Sass/SCSS file: This is the main entry point of your stylesheets. It will already contain imports of everything that mni has to offer. You can choose if you want to use the SCSS or Sass syntax by giving this file the corresponding file extension (.scss/.sass).
  • Output CSS file: This is the compiled output CSS file. It should be located somewhere inside the public path.
  • Source JS file: This is the main entry point of your JavaScripts. It will already contain imports of every available mni ES6 module.
  • Output JS file: This is the compiled output JS file. It should be located somewhere inside the public path.

If you run the setup in the root directory of a Laravel project, the setup will detect that and suggest the default Laravel paths so you can just press ↵ Enter.

The setup will generate a custom webpack.mix.js config file based on your inputs that is used by Laravel Mix for the compilation of your project.

Furthermore, the setup script will create these utility files if they don't already exist: