{"adoption": {"forks": 184, "observed_at": "2026-08-28T04:10:37.416072+00:00", "stars": 9832}, "canonical_url": "https://ross.abutalabs.com/products/clsx", "card": {"archived": false, "artifact_type": "library", "description": "A tiny (239B) utility for constructing `className` strings conditionally.", "domain": ["frontend", "web-development"], "enriched": true, "function": ["ui-components", "frontend-framework"], "health_score": 26, "homepage": null, "language": "JavaScript", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["lukeed/clsx"], "name": "lukeed/clsx", "platform": ["browser", "cross-platform"], "pushed_at": "2024-06-10T15:48:22+00:00", "repo": "lukeed/clsx", "stars": 9832, "tags": ["classnames", "css-classes", "conditional-classes", "tiny-utility", "drop-in-replacement", "tailwind", "nodejs"], "topics": [], "urls": [], "use_cases": ["conditionally combine css class names in react", "build className strings from objects and arrays", "replace classnames with a smaller faster alternative", "toggle tailwind classes conditionally", "join css classes while filtering falsey values"], "what_it_is": "A tiny (239B) JavaScript utility for conditionally constructing CSS className strings from strings, objects, and arrays. It serves as a faster and smaller drop-in replacement for the classnames module.", "when_to_avoid": ["you need CSS-in-JS or style object handling rather than class name strings", "you rely on classnames plugins or features clsx does not implement"], "when_to_choose": ["you need a minimal, dependency-free classname builder for any frontend framework", "you want a drop-in classnames replacement with better performance and size", "you only need string concatenation and can use the 140-byte lite build"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/clsx", "repo": "lukeed/clsx", "role": "main", "score": 23}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:10:37.416072+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T17:20:55.678537+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e375b5696209102218e350d2144bee4992ff260761fc0c1b4d2d54305a5a869d", "fetched_at": "2026-08-28T04:10:37.416072+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lukeed/clsx"}, {"content_hash": "64c68908580525e4de3f8b0efdbbad77028e7d57315a1bbcb20872f4d4b92a49", "fetched_at": "2026-08-29T08:20:42.137753+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/clsx"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:10:37.416072+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T17:20:55.678537+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e375b5696209102218e350d2144bee4992ff260761fc0c1b4d2d54305a5a869d", "fetched_at": "2026-08-28T04:10:37.416072+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lukeed/clsx"}, {"content_hash": "64c68908580525e4de3f8b0efdbbad77028e7d57315a1bbcb20872f4d4b92a49", "fetched_at": "2026-08-29T08:20:42.137753+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/clsx"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T17:20:55.678537+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e375b5696209102218e350d2144bee4992ff260761fc0c1b4d2d54305a5a869d", "fetched_at": "2026-08-28T04:10:37.416072+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lukeed/clsx"}, {"content_hash": "64c68908580525e4de3f8b0efdbbad77028e7d57315a1bbcb20872f4d4b92a49", "fetched_at": "2026-08-29T08:20:42.137753+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/clsx"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:10:37.416072+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:10:37.416072+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:10:37.416072+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T17:20:55.678537+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e375b5696209102218e350d2144bee4992ff260761fc0c1b4d2d54305a5a869d", "fetched_at": "2026-08-28T04:10:37.416072+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lukeed/clsx"}, {"content_hash": "64c68908580525e4de3f8b0efdbbad77028e7d57315a1bbcb20872f4d4b92a49", "fetched_at": "2026-08-29T08:20:42.137753+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/clsx"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:10:37.416072+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:10:37.416072+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T17:20:55.678537+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e375b5696209102218e350d2144bee4992ff260761fc0c1b4d2d54305a5a869d", "fetched_at": "2026-08-28T04:10:37.416072+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lukeed/clsx"}, {"content_hash": "64c68908580525e4de3f8b0efdbbad77028e7d57315a1bbcb20872f4d4b92a49", "fetched_at": "2026-08-29T08:20:42.137753+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/clsx"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:10:37.416072+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:10:37.416072+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:10:37.416072+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T17:20:55.678537+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e375b5696209102218e350d2144bee4992ff260761fc0c1b4d2d54305a5a869d", "fetched_at": "2026-08-28T04:10:37.416072+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lukeed/clsx"}, {"content_hash": "64c68908580525e4de3f8b0efdbbad77028e7d57315a1bbcb20872f4d4b92a49", "fetched_at": "2026-08-29T08:20:42.137753+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/clsx"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:10:37.416072+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:10:37.416072+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T17:20:55.678537+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e375b5696209102218e350d2144bee4992ff260761fc0c1b4d2d54305a5a869d", "fetched_at": "2026-08-28T04:10:37.416072+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lukeed/clsx"}, {"content_hash": "64c68908580525e4de3f8b0efdbbad77028e7d57315a1bbcb20872f4d4b92a49", "fetched_at": "2026-08-29T08:20:42.137753+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/clsx"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T17:20:55.678537+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e375b5696209102218e350d2144bee4992ff260761fc0c1b4d2d54305a5a869d", "fetched_at": "2026-08-28T04:10:37.416072+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lukeed/clsx"}, {"content_hash": "64c68908580525e4de3f8b0efdbbad77028e7d57315a1bbcb20872f4d4b92a49", "fetched_at": "2026-08-29T08:20:42.137753+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/clsx"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T17:20:55.678537+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e375b5696209102218e350d2144bee4992ff260761fc0c1b4d2d54305a5a869d", "fetched_at": "2026-08-28T04:10:37.416072+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lukeed/clsx"}, {"content_hash": "64c68908580525e4de3f8b0efdbbad77028e7d57315a1bbcb20872f4d4b92a49", "fetched_at": "2026-08-29T08:20:42.137753+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/clsx"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T17:20:55.678537+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "e375b5696209102218e350d2144bee4992ff260761fc0c1b4d2d54305a5a869d", "fetched_at": "2026-08-28T04:10:37.416072+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lukeed/clsx"}, {"content_hash": "64c68908580525e4de3f8b0efdbbad77028e7d57315a1bbcb20872f4d4b92a49", "fetched_at": "2026-08-29T08:20:42.137753+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/clsx"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 8}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2809, "days_push": 814, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 23, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}