Preparing for system design interviews?  Try bugzed.com →

Classcat

JSON →
library 5.0.5 ·javascript
verified Jun 17, 2026

Classcat is a minimalist, performant JavaScript utility for constructing HTML `class` attribute strings dynamically. It allows developers to combine strings, arrays, and objects (where keys are class names and values are booleans for conditional inclusion) into a single, space-delimited class string. The current stable version is 5.0.5, with releases occurring on an as-needed basis to address bug fixes, type improvements, and modernization efforts. Key differentiators include its small bundle size (217 B minified+gzipped), high performance (up to 2.5x faster than alternatives), and framework-agnostic nature, making it suitable for any JavaScript project, including those using React, Lit-HTML, or Mithril. Version 5.x introduced a shift to ES Modules as the primary distribution, modernizing the codebase and dropping some legacy support.

total hits 19
actors 6 distinct systems
last hit 15d ago AhrefsBot
ByteDance
5
GPTBot
4
Amazonbot
4
Script
1
Search engines
1

top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France