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

minimalify

v0.1.2

Published

Minimalify is a zero-dependency CLI/library for building blazing-fast, static HTML/CSS/JS sites

Downloads

6

Readme

Minimalify

npm version download License: Apache

Minimalify is a zero-dependency CLI/library for building blazing-fast, static HTML/CSS/JS sites with reusable components. Drop in your source, define a tiny config, run minimalify build, and get a fully inlined, minified build/ folder ready for GitHub Pages or any static host.

⏛ Usage

minimalify [options] [command]

Minimalify is a zero-dependency CLI/library for building blazing-fast, static HTML/CSS/JS sites

Options:
  -V, --version    output the version number
  -v, --verbose    Enable verbose logging (default: false)
  -j, --json       Output in JSON format (default: false)
  -h, --help       display help for command

Commands:
  init [options]   Initialize the minimalify.config.js file.
  build [options]  Build the project using the minimalify.config.js file
  dev [options]    Launch the project using the minimalify.config.js file and watch for changes.
  help [command]   display help for command

 Generate awesome static site with @minimalify. Contribute at https://github.com/ragarwalll/minimalify.git

🚀 Features

  • Fetch and bundle shared base CSS, base JS, and arbitrary assets (images, fonts, icons)
  • Concatenate & minify your project’s CSS via PostCSS + cssnano
  • Concatenate & minify your project’s JS via Terser
  • Inline reusable HTML components with dynamic {{param}} and {{children}}
  • Scan HTML/CSS for remote URLs (<link>, <script>, <img>, url(...)) and download them locally
  • Purge unused CSS selectors (PurgeCSS) for minimal CSS footprint
  • Minify final HTML (html-minifier-terser)
  • Zero runtime dependencies in your final build/
  • Incremental builds via a dependency DAG + BFS
  • Caching of transform results (LRU caches) and HTTP assets (Bloom filter)
  • Parallel transforms (p-limit worker pool)
  • Merkle-style content-hash checks
  • Dev server with HMR: CSS hot-swap, JS reload, page-diff via Morphdom

🎯 Installation

npm install --save-dev minimalify

🚧 Project Layout

my-site/
├── src/
│   ├── css/
│   │   ├── base.min.css        ← shared, auto-downloaded
│   │   └── site.css            ← your custom styles
│   ├── js/
│   │   ├── base.min.js         ← shared, auto-downloaded
│   │   └── site.js             ← your custom scripts
│   ├── img/
│   │   └── logo.svg            ← project-specific images
│   ├── templates/
│   │   └── contacts.html       ← reusable component template
│   ├── index.html
│   └── about.html
├── minimalify.config.js        ← build configuration
└── package.json

🧑🏻‍🔧 Configuration (minimalify.config.js)

module.exports = {
    srcDir: 'src',
    outDir: 'dist',
    sharedDomains: ['https://therahulagarwal.com'],
    html: {
        minify: true,
    },
    css: {
        minify: true,
    },
    js: {
        minify: true,
        minifyOptions: {},
    },
    images: {
        optimize: true,
        supportedFormats: ['jpg', 'jpeg', 'png', 'gif', 'webp', 'svg'],
        ignore: [],
    },
    templates: {
        dir: 'templates',
        sharedUri: [],
    },
    dev: {
        port: 3000,
    },
    cache: true,
    plugins: [
        'accessibility',
        'bundle-analyzer',
        'custom-domain',
        'image-optimizer',
        'markdown',
        'perf-monitor',
        'seo',
        'sitemap',
        'spa',
        'version-assets',
    ],
};

📦 Usage

CLI

Add to your package.json:

{
    "scripts": {
        "build": "minimalify build",
        "dev": "minimalify dev"
    }
}

Then:

npm run build    # production build
npm run dev      # dev server + HMR

Programmatic API

import { build, dev } from 'minimalify';

// production build
await build('minimalify.config.js');

// start dev server
await dev('minimalify.config.js');

Components & Templates

Define a template with {{param}} and {{children}} in src/templates/contacts.html:

<section class="contacts">
    <h2>Contact Us</h2>
    <ul>
        <li>Email: <a href="mailto:{{email}}">{{email}}</a></li>
        <li>Phone: <a href="tel:{{phone}}">{{phone}}</a></li>
    </ul>
    <div class="extra">{{children}}</div>
</section>

Use it in any page:

<include-contacts email="[email protected]" phone="+1234567890">
    <p>Office hours: Mon–Fri, 9am–5pm.</p>
</include-contacts>

Minimalify inlines, replaces {{…}}, and nests inner HTML automatically.

📑 GitHub Pages

  1. Push the build/ folder to gh-pages branch (or point Pages to /build on main).
  2. Your site is live at https://<user>.github.io/<repo>/.

📄 License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.