# aidenybai/cnfast

Fast drop in replacement for `cn`

Repository: https://github.com/aidenybai/cnfast
Canonical: https://ross.abutalabs.com/products/cnfast
Homepage: https://cn.aidenybai.com
Language: TypeScript
License: NOASSERTION
License Family: other
Topics: clsx, cn, tailwindcss
Last push: 2026-09-01T01:35:00+00:00

## Health v2 (maintenance only)
Score: 58/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 35, longevity 5
- inputs: {"age_days": 75, "days_push": 2, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, young, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1199, forks 14 (observed 2026-09-01T02:13:58.529032+00:00)

## What it is
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
- artifact type: library
- maturity: experimental
- function: ui-components, developer-tools
- domain: frontend, web-development
- platform: browser, cross-platform
- tags: tailwindcss, clsx, tailwind-merge, class-names, drop-in-replacement, performance, nodejs

## Member repositories
- aidenybai/cnfast (main) score 58

## Provenance
- Observed fields: from GitHub, fetched 2026-09-01T02:13:58.529032+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:23:23.218370+00:00, confidence not recorded.
  - readme: https://github.com/aidenybai/cnfast (fetched 2026-09-01T02:13:58.529032+00:00, sha 7fd60a9a4c91)
  - registry_npm: https://registry.npmjs.org/cnfast (fetched 2026-08-29T12:30:31.364504+00:00, sha d3f13fb960bb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
