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

chi-css-engine

v1.0.4

Published

Lightweight utility-first CSS engine

Readme

☕ Chai CSS Engine

A lightweight utility-first CSS engine built with vanilla JavaScript.

Chai CSS dynamically scans the DOM, parses chai-* utility classes, and applies corresponding inline styles at runtime — inspired by utility-first CSS frameworks.

🚀 Features No CSS files required Pure JavaScript (no dependencies) Utility-first class syntax Automatic DOM scanning Works with npm and CDN Easy to extend and customize

📦 Installation (npm)

npm install chi-css-engine

🔧 Usage (npm / Vite / Bundlers) 1️⃣ Import the package import "chi-css-engine";

⚠️ No function call required The engine runs automatically after DOMContentLoaded.

2️⃣ Use utility classes in HTML

🌐 Usage via CDN (No Build Tools)

Full CDN Example

<div class="chai-p-3 chai-bg-blue chai-text-center chai-rounded-md">
  Hello Chai CSS ☕
</div>

<script src="https://unpkg.com/chi-css-engine@latest"></script>

✅ No Node.js ✅ No npm ✅ No bundler

🧠 How It Works Waits for DOMContentLoaded Traverses all DOM elements Detects class names starting with chai- Parses utility patterns Applies inline styles dynamically

📐 Supported Utilities 🧱 Spacing

| Class | Effect | | -------- | ------------- | | chai-p-0 | padding: 0px | | chai-p-1 | padding: 4px | | chai-p-2 | padding: 8px | | chai-p-3 | padding: 12px | | chai-p-4 | padding: 16px | | chai-m-2 | margin: 8px |

🎨 Colors

| Class | Effect | | --------------- | ---------------------- | | chai-bg-red | background-color: red | | chai-bg-blue | background-color: blue | | chai-text-black | color: black |

✔ Any valid CSS color value is supported.

✍ Typography Text Alignment

| Class | Effect | | ---------------- | ------------------ | | chai-text-center | text-align: center | | chai-text-left | text-align: left | | chai-text-right | text-align: right |

Font Size

| Class | Font Size | | ------------ | --------- | | chai-text-sm | 12px | | chai-text-md | 16px | | chai-text-lg | 18px | | chai-text-xl | 24px |

🧩 Borders

| Class | Effect | | ------------- | --------------- | | chai-border-1 | 1px solid black | | chai-border-2 | 2px solid black |

🔵 Border Radius | Class | Radius | | --------------- | ------ | | chai-rounded-sm | 4px | | chai-rounded-md | 6px | | chai-rounded-lg | 12px | | chai-rounded-10 | 10px |

📦 Layout Utilities

| Class | Effect | | ------------------- | ----------------------- | | chai-flex | display: flex | | chai-items-center | align-items: center | | chai-justify-center | justify-content: center |

🧪 Example Layout

🛠 Customization

You can extend utilities by editing:

spacingScale fontSizeMap radiusMap

Add new rules inside the applyUtility() switch to support more utilities.

⚠️ Limitations Uses inline styles (overrides external CSS) No responsive utilities (yet) No hover / pseudo-class support (yet) 📄 License

MIT License © 2026

⭐ Author

Built with ☕ by Nitesh Shedge