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

chaisheet

v1.0.0

Published

A runtime-first utility CSS engine inspired by tea and speed.

Readme

☕ Chai CSS Engine

A runtime-first utility CSS engine inspired by tea and speed. Skip the build step and generate functional CSS utilities on the fly using a robust, rule-based engine.


⚡ Key Features

  • Instant Runtime: Class names are parsed into styles immediately upon DOM injection, requiring no pre-compilation.
  • Dynamic Rules: Define properties like padding, margins, and borders with simple logic-based rules.
  • Zero Config: No configuration files or PostCSS required.
  • Lightweight: A single-file JavaScript engine that handles utility generation automatically.

🚀 Installation

Option 1: CDN (Easiest)

For a quick setup, include the script directly in your HTML. The engine will automatically initialize and run once the DOM is loaded.

<script src="[https://unpkg.com/[email protected]/chaisheet.js](https://unpkg.com/[email protected]/chaisheet.js)"></script>

Option 2: NPM

Install the package via npm to use it in modern JavaScript environments:

npm install chaisheet

🛠️ Usage

1. Static Utilities

Chai CSS comes with built-in static utilities for common layouts and colors:

<div class="chai-flex chai-items-center chai-justify-between chai-bg-dark">
  <h1 class="chai-text-orange chai-fw-bold">Brewing Speed</h1>
  <p class="chai-text-gray">Utility-first, runtime-ready.</p>
</div>

2. Dynamic Rules

Generate specific styles by appending values directly to the utility prefix:

Padding/Margins: chai-p-20 (20px padding), chai-m-10 (10px margin).

Dimensions: chai-w-200 (200px width), chai-h-50 (50px height).

Typography: chai-font-18 (18px font size).

Visuals: chai-rounded-12 (12px border radius), chai-opacity-50 (0.5 opacity).

⚙️ JavaScript API

If you are importing the engine as a module, you can manually control when it runs.

import { ChaiEngine } from 'chaisheet';

const chai = new ChaiEngine();

// Styles the entire document
chai.run(); 

// Or style a specific container
const myElement = document.querySelector('#app');
chai.run(myElement);

📝 Configuration Reference The engine supports several dynamic prefixes out of the box:

| Prefix | CSS Property | Example | |----------|----------|----------| | chai-p- | padding | chai-p-30 | | chai-m- | margin | chai-m-15 | | chai-w- | width | chai-w-100 | | chai-h- | height | chai-h-100 | | chai-font- | fontSize | chai-font-12 | | chai-bg- | backgroundColor | chai-bg-red | | chai-border- | border | chai-border-2 |

🤝 Community & Support

Author: Saurabh Jagtap

Repository: chaisheet

License: MIT

© 2026 Chai CSS Engine. Built for the modern web.