---
title: "Search the registry"
description: "Search the public Gelatin UI registry over plain HTTP. Use curl, a script, or the shadcn CLI, with no account and no key."
url: https://gelatinui.com/docs/registry-search
markdown_url: https://gelatinui.com/docs/registry-search.md
docs_index: https://gelatinui.com/docs/llms.txt
prompt: "Read https://gelatinui.com/docs/registry-search.md. Search the Gelatin UI registry over HTTP for the item I describe, with limit=3. Done: you show the three best matches, each with its name, its description, and its add command."
---

> Docs index: https://gelatinui.com/docs/llms.txt

# Search the registry

> Search the public Gelatin UI registry over plain HTTP. Use curl, a script, or the shadcn CLI, with no account and no key.

One URL lists each public item as shadcn registry JSON. Query parameters on that URL find and filter items, with no account and no key.

## Get the full index

Send no query, and you get the full index.

```bash
curl https://gelatinui.com/r/registry.json
```

## Search from the shadcn CLI

First, put `@gelatin-ui` in the `registries` block of `components.json`. The CLI then searches the registry for you. It sends your words as `q`, with `limit` and `offset`.

```bash
npx shadcn@latest search @gelatin-ui --query "date picker"
```

## Search by keyword

Add `q` to search the registry. The search reads the name, title, description, and use of each item. The answer lists the matches, best match first, with a `pagination` object.

```bash
curl "https://gelatinui.com/r/registry.json?q=date%20picker&limit=3"
```

A keyword search finds only items that have a page, not helpers. To get helpers too, send `type` with no `q`. You then get each item of those types.

## Parameters

| Name     | Type       | Default   | Value                                                                                                                                                   |
| -------- | ---------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `q`      | string     | none      | The words to search for, at most 200 characters.                                                                                                        |
| `type`   | comma list | all types | Registry types to keep: `registry:ui`, `registry:component`, `registry:block`, `registry:hook`, `registry:lib`, `registry:example`, or `registry:item`. |
| `limit`  | 1 to 100   | 20        | How many items to return.                                                                                                                               |
| `offset` | 0 or more  | 0         | How many items to skip, for the next page.                                                                                                              |

## Limits

- **Rate limit:** 60 searches a minute from one address. Above the limit, the answer is **429** Too many requests, with a `Retry-After: 60` header. Wait 60 seconds, then send the request again.
- **Shared cache:** a shared cache keeps an answer fresh for **5 min**. After that, it can serve the old answer for up to **1 hour** more while it gets a new one.

## Use the MCP server instead

An agent can use the `search_items` tool of the [Connect the MCP server](https://gelatinui.com/docs/mcp-server.md) instead. It gives the same results, with the add command of each item.

## Next steps

- [Connect the MCP server](https://gelatinui.com/docs/mcp-server.md): let your agent search items and plan an install.
- [Install](https://gelatinui.com/docs/install.md): put the registry in `components.json`, so the CLI can search it.
