












Registries can now handle search server-side.
Registries can now handle search server-side.
When you run shadcn search, the CLI forwards the search parameters to your
registry as query params:
GET /r/registry.json?q=button&limit=50&offset=0Return the matching items with a pagination object and the CLI uses your
results as-is. This makes search fast for large registries: no more downloading
the full catalog to search it.
{
"name": "acme",
"homepage": "https://acme.com",
"items": [
{
"name": "button",
"type": "registry:ui",
"description": "A button component."
}
],
"pagination": {
"total": 12,
"offset": 0,
"limit": 1,
"hasMore": true
}
}Dynamic search is opt-in. Static registries ignore the query params and keep working without any changes.
See the Dynamic Search docs for the full guide.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。