Skip to content

Methodology

How it works

Every preview on Kesai is built from a library's published code and checked by a machine before it's shown. Nothing is hand-ranked.

What gets listed

  • Registries in shadcn's public registry index that resolve and aren't marked unavailable, plus a curated list of popular npm and HTML/CSS libraries.
  • Each library's GitHub repository is resolved for its licence, stars, last push and archive status; its items are classified into component types (date picker, dialog, data table…) so the same type can be compared across libraries.
  • Libraries we can't build previews for (other frameworks, closed or paid kits, unclear licences) are listed with a link, without previews.
  • Anyone can submit a library.

How previews are built

  1. For each library we create a clean project, install its setup items, then add each component with its own install command (npx shadcn add or npm i), exactly as you would.
  2. Each component is built into a small page in the library's own styling, with React and shared code loaded once per library.
  3. A quality gate opens every preview in Chromium at desktop width in light and dark, and at phone width. It must render within 8 seconds, throw no uncaught errors, load its fonts and CSS, show at least 24px of content and not be blank. Previews that fail are never shown.
  4. Passing previews get light, dark and phone thumbnails, and are served from a separate origin inside sandboxed frames, so one library's CSS can never affect another.

What we measure

For each preview: the headless primitive it builds on (Radix UI, Base UI, React Aria, Ark UI or none), the engines it uses (for example react-day-picker or TanStack Table), the npm packages it adds and their pinned versions, the number of files it adds, and its gzipped size beyond code shared with the rest of the library. Keyboard and accessibility behaviour is shown as the library ships it; we don't score it.

How entries are ordered

Featured libraries first, then by ranking score, then alphabetically. The ranking score combines the shadcn index ranking, GitHub stars (logarithmic), the number of items, and recent activity, with a penalty for archived repositories. Featuring is a curation list that is never paid for. We never rank by taste.

Licence policy

  • We build previews only from code with a clear open-source (OSI) licence, read from the library's repository.
  • A short, reviewed list of source-available licences that allow use as part of a website is also previewed, with the exact licence name shown.
  • Libraries without a stated licence are listed as "Licence not stated", without previews.
  • Each library appears in its own styling. Theme controls on Kesai change the page around a preview, never copied code.
  • Every copy of code starts with a header naming the library, author, licence and source.

Corrections and opt-out

Authors can correct an entry or remove a library at any time. Use the opt-out form and we'll stop indexing it and remove its previews.