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

chaistrap

v1.1.0

Published

Lightweight utility CSS engine like Tailwind (by Rohit Chornele)

Downloads

1,031

Readme

🚀 ChaiStrap

ChaiStrap is a lightweight utility-first CSS engine (inspired by Tailwind) that applies styles dynamically using custom class names — no CSS files required.


✨ Features

  • ⚡ Zero CSS setup
  • 🎯 Utility-first class system
  • 🔥 Works with plain HTML, React, and any JS framework
  • 🧠 Runtime style engine (no build step required)
  • 🌐 CDN + npm support

📦 Installation

Using npm

npm install chaistrap

🚀 Usage

1️⃣ React / JavaScript

import { chaistrap } from "chaistrap";

chaistrap(); 

👉 In React:

import { useEffect } from "react";
import { chaistrap } from "chaistrap";

function App() {
  useEffect(() => {
    chaistrap();
  }, []);

  return <div className="chai-bg-red chai-p-4">Hello 🚀</div>;
}

export default App;

2️⃣ CDN (HTML)

<script src="https://cdn.jsdelivr.net/npm/chaistrap/dist/chaistrap.umd.js"></script>

<script>
  chaistrap.chaistrap();
</script>

🎨 Example

<div class="chai-bg-blue chai-text-white chai-p-4 chai-m-2">
  Hello from ChaiStrap 🚀
</div>

🧠 How It Works

ChaiStrap scans the DOM, finds classes starting with chai-, and dynamically applies styles using JavaScript.

Class → Parse → Convert → Apply inline styles

📚 Available Utilities

🎨 Background Colors

chai-bg-red
chai-bg-blue
chai-bg-green
chai-bg-black
chai-bg-white

🎯 Text Colors

chai-text-white
chai-text-black
chai-text-gray
chai-text-green

📏 Spacing

chai-p-1 → padding: 8px
chai-m-2 → margin: 16px
chai-pt-4 → padding-top: 32px

📐 Layout

chai-flex
chai-flex-col
chai-justify-center
chai-items-center

📦 Width / Height

chai-w-full
chai-h-full
chai-w-10 → width: 40px

💡 Example Component

<div class="chai-bg-darkgray chai-p-6 chai-w-60 chai-m-4">
  <h2 class="chai-text-white chai-mb-2">Pro Plan</h2>
  <p class="chai-text-lightgray chai-mb-4">Perfect for developers</p>
  <button class="chai-bg-green chai-text-black chai-p-3 chai-w-full">
    Get Started
  </button>
</div>

⚠️ Important Notes

Call chaistrap.chaistrap() after DOM is loaded,

Works by applying inline styles

Dynamic DOM updates require re-running chaistrap()

🤝 Contributing

Contributions are welcome! Feel free to open issues or submit PRs.

📄 License

MIT License

👨‍💻 Author

Rohit Chornele

⭐ Support

If you like this project, give it a ⭐ on GitHub!