aidenybai/cnfast
Fast drop in replacement for `cn` observed · 2026-09-01
Health v2 · maintenance only
58/100
- Activity 100
- Release rhythm 35
- Longevity 5
Flags: no_releases young no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 75
- days_rel: n/a
- days_push: 2
- n_releases_24m: 0
Adoption not part of the score
1199 stars · 14 forks observed · 2026-09-01
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
cnfast is a fast drop-in replacement for the popular `cn` utility (clsx + tailwind-merge) that produces byte-identical output while running several times faster. It supports the same API including tagged template usage and offers a migration command for existing projects.
Use cases
- replace tailwind-merge with a faster cn utility
- merge tailwind css class names conditionally
- speed up class name merging in react components
- migrate a clsx or classnames project to cnfast
- optimize shadcn/ui cn helper performance
- deduplicate conflicting tailwind classes
When to choose
- you use tailwind-merge or clsx and class merging is a rendering bottleneck
- you want byte-identical output to tailwind-merge with better performance
- you have a shadcn/ui project and want a one-command swap
When to avoid
- you don't use tailwind css or class merging utilities
- you need a long-proven stable library rather than a young fast-moving one
- bundle size matters more than speed since cnfast is slightly larger
Facets
library · maturity experimental
ui-components developer-tools frontend web-development browser cross-platform tailwindcss clsx tailwind-merge class-names drop-in-replacement performance nodejs
2 sources
- readme: https://github.com/aidenybai/cnfast · fetched 2026-09-01 · 7fd60a9a4c91
- registry_npm: https://registry.npmjs.org/cnfast · fetched 2026-08-29 · d3f13fb960bb
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| aidenybai/cnfast | main | 58 |
For agents
markdown · JSON · MCP: product_card(name="aidenybai/cnfast")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem