# UI Component Search for Raycast

URL: https://www.raycast.com/tomer_meirov/ui-component-search

> Search UI components across shadcn/ui, PrimeNG, Angular Material, spartan/ui, Taiga UI, Mantine, React Spectrum and Chakra UI, and open their docs.

- Install: raycast://extensions/tomer_meirov/ui-component-search
- Author: [Tomer Meirov](https://www.raycast.com/tomer_meirov)
- Installs: 34
- Platforms: Windows, macOS
- Categories: Documentation, Developer Tools, Design Tools
- Updated: 2026-11-17
- Source: https://github.com/raycast/extensions/tree/886cbd73fe377ad1d8f0c17083e6cd4c96748a33/extensions/ui-component-search/

## Commands

- **Search Components**: Search UI components across shadcn, PrimeNG, Angular Material, spartan, Taiga, React Spectrum, Chakra and more

## README

### UI Component Search

Search and browse UI components across eight libraries from a single Raycast command:
**shadcn/ui**, **PrimeNG**, **Angular Material**, **spartan/ui**, **Taiga UI**, **Mantine**,
**React Spectrum**, and **Chakra UI**.

Results are grouped by library and can be filtered to a single library with the dropdown.
For each component you can open its documentation in the browser, copy its URL, or copy its name.

#### How this compares to other extensions

This extension optimizes for **breadth** — one place to look up components across many
libraries — rather than depth in any single one. If you work primarily in one of the
libraries below, a dedicated extension will usually give you a richer, deeper experience
(inline docs, snippets, props, etc.), and you should reach for it:

| Library   | Dedicated extension                                                                                                               |
| --------- | --------------------------------------------------------------------------------------------------------------------------------- |
| shadcn/ui | [shadcn/ui](https://www.raycast.com/luisFilipePT/shadcn-ui) — includes a Search Components command                                |
| Chakra UI | [Chakra UI Documentation](https://www.raycast.com/pgvr/chakra-ui-docs) — includes a Search Components command                     |
| Mantine   | [Mantine UI Documentation](https://www.raycast.com/EmilMalanczak/mantine-documentation) — includes a Search Documentation command |

The remaining five libraries (PrimeNG, Angular Material, spartan/ui, Taiga UI, and
React Spectrum) are not currently covered by dedicated extensions, so this is the fastest
way to browse their components inside Raycast. Reach for this extension when you want a
single cross-library search; reach for the dedicated ones when you want to live in a
single library's docs.

#### How the component lists are sourced

**For future maintainers:** component lists are fetched **live** at runtime — most from each
library's public documentation site, but three (PrimeNG, Angular Material, and Taiga UI) from
source files in the library's GitHub repository, because their docs sites no longer expose a
parseable component list (see the table below). Each list is parsed, then cached locally for
24 hours ([`src/utils/cache.ts`](https://github.com/raycast/extensions/raw/886cbd73fe377ad1d8f0c17083e6cd4c96748a33/extensions/ui-component-search//src/utils/cache.ts)). Seven providers also ship a **static fallback
list** used only when the live fetch fails (see [Failure handling](#failure-handling) below);
that fallback is never the primary source. Every library has its own provider under
[`src/providers/`](https://github.com/raycast/extensions/raw/886cbd73fe377ad1d8f0c17083e6cd4c96748a33/extensions/ui-component-search//src/providers/), the shared fetch/cache/fallback flow lives in
[`src/providers/provider-helpers.ts`](https://github.com/raycast/extensions/raw/886cbd73fe377ad1d8f0c17083e6cd4c96748a33/extensions/ui-component-search//src/providers/provider-helpers.ts), and all source URLs
live in [`src/constants.ts`](https://github.com/raycast/extensions/raw/886cbd73fe377ad1d8f0c17083e6cd4c96748a33/extensions/ui-component-search//src/constants.ts).

If a library stops returning results, its source almost certainly changed. Start by opening
that library's source URL below and comparing it against the parsing logic in the corresponding
provider file. For the three GitHub-sourced libraries (PrimeNG, Angular Material, Taiga UI),
note that the URLs are pinned to the repositories' moving `master`/`main` branches: an upstream
refactor that moves or renames those files will make the fetch fail and drop the library to its
static fallback — the visible `(fallback)` state (see [Failure handling](#failure-handling))
makes that easy to spot.

| Library          | Provider file                              | Source & parsing strategy                                                                                                       |
| ---------------- | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------- |
| shadcn/ui        | `src/providers/shadcn-provider.ts`         | Scrapes `href` links off the [components docs page](https://ui.shadcn.com/docs/components)                                      |
| PrimeNG          | `src/providers/primeng-provider.ts`        | Parses the showcase sidebar menu data from [`menu.json`](https://raw.githubusercontent.com/primefaces/primeng/master/apps/showcase/assets/data/menu.json) on GitHub (primeng.dev is client-rendered), with a static fallback list |
| Angular Material | `src/providers/material-provider.ts`       | Reads the docs [`documentation-items.ts`](https://raw.githubusercontent.com/angular/components/main/docs/src/app/shared/documentation-items/documentation-items.ts) registry on GitHub (material.angular.dev exposes no component links in its HTML), with a static fallback list |
| spartan/ui       | `src/providers/spartan-provider.ts`        | Scrapes the [components page](https://spartan.ng/components), with a static fallback list                                       |
| Taiga UI         | `src/providers/taiga-provider.ts`          | Parses the demo app route registry [`demo-routes.ts`](https://raw.githubusercontent.com/taiga-family/taiga-ui/main/projects/demo/src/pages/app/demo-routes.ts) on GitHub for `/components/{slug}` routes (taiga-ui.dev no longer serves a usable sitemap), with a static fallback list |
| Mantine          | `src/providers/mantine-provider.ts`        | Parses [`sitemap.xml`](https://mantine.dev/sitemap.xml) for `/core/{slug}` URLs, with a static fallback list                    |
| React Spectrum   | `src/providers/react-spectrum-provider.ts` | Scrapes a [component page](https://react-spectrum.adobe.com) sidebar, with a static fallback list                               |
| Chakra UI        | `src/providers/chakra-provider.ts`         | Scrapes the [components overview](https://chakra-ui.com/docs/components/concepts/overview) sidebar, with a static fallback list |

##### Failure handling

Each library is fetched **independently and fails soft**: a markup change or network error in
one library never prevents the others from loading
([`fetchAllComponents()` in `src/hooks/use-components.ts`](https://github.com/raycast/extensions/raw/886cbd73fe377ad1d8f0c17083e6cd4c96748a33/extensions/ui-component-search//src/hooks/use-components.ts) uses
`Promise.allSettled`). No degraded library is ever silently swallowed — there are two visible
states, and both cover network errors, non-OK HTTP responses, and parse failures alike:

**1. Failed** — the fetch produced no usable data at all (only shadcn/ui, which has no static
fallback). Surfaced by:

- A **"Failed to Load"** section listing each failed library with its error message.
- A red warning icon and a `(failed)` suffix on that library in the filter dropdown.
- A toast summarizing partial failures; if _every_ library fails, an error toast is shown.

**2. Using fallback data** — seven providers keep a **static fallback list** of known component
slugs (see the table above). When their live scrape fails, they serve that list so the group
stays populated, but the degraded status is **returned and cached alongside the components**
([`ProviderResult.source` in `src/types.ts`](https://github.com/raycast/extensions/raw/886cbd73fe377ad1d8f0c17083e6cd4c96748a33/extensions/ui-component-search//src/types.ts)), so a broken scraper never hides
behind stale fallback data. The shared
[`fetchWithFallback()` helper](https://github.com/raycast/extensions/raw/886cbd73fe377ad1d8f0c17083e6cd4c96748a33/extensions/ui-component-search//src/providers/provider-helpers.ts) applies this uniformly to
every fallback provider. Surfaced by:

- A **"Using fallback data"** subtitle on that library's section.
- A small yellow warning icon on each of its component rows (hover for details).
- A yellow warning icon and a `(fallback)` suffix on that library in the filter dropdown.
- A toast summarizing which libraries are on fallback data.

Because the source status is cached, a library that only ever shows the fallback state is a
signal to update that provider's scraping logic.

#### Development

```bash
npm install
npm run dev     # run the extension in development
npm run lint    # lint
npm run build   # production build
```
