[FEAT]: Component `tags` are empty on all 166 entries, and search only matches the title
Share your suggestion
Every component's tags array is empty, and component search only matches the title.
src/constants/Information.js declares tags as part of ComponentMetadata:
/**
* @property {string[]} tags
*/
but all 166 of 166 entries ship tags: []. Nothing populates it, so the field is currently dead weight.
Separately, src/components/common/ComponentList.jsx filters with:
return categoryOk && fuzzyMatch(title, term);
Only the title. Description and tags are mapped into the item (ComponentList.jsx line ~125 sets tags, description) but never searched.
The practical effect: searching the component index for what an effect is rather than what it is named returns nothing. "particles", "gooey", "webgl", "shader", "parallax", "cursor", "marquee", "hover" all miss components that obviously match. You have to already know the name to find it, which is the opposite of what a 166-component browse page needs.
Proposed change
- Populate
tagsfor all 166 entries inInformation.js— technique (webgl,shader,canvas,svg,gsap,three,css-only), interaction (hover,scroll,cursor,click,drag) and visual family (particles,gradient,glitch,blur,distortion,3d). - Extend the filter in
ComponentList.jsxto match title + description + tags, keeping the existing fuzzy behaviour and title-first ranking. - Surface the tags where they already have a natural home:
scripts/generateLlmsText.js— append tags to each catalogue line inllms.txt.jsrepo.config.ts— it already forwardsmetato every registry item (meta: component.meta), butcomponentMetadatanever setsmeta, so it is alwaysundefined. Passing{ tags }through means the tags land inpublic/r/*.jsonand become visible to anyone browsing the registry through the shadcn MCP server, which is the flow the MCP docs page recommends.
Step 3 is the part I think is most valuable and it costs almost nothing, because the plumbing already exists — it is just never fed.
Steps 1 and 2 stand alone if you would rather keep the scope small; step 3 can follow separately.
Additional context
Related: I've opened #1058 about the prop tables having drifted from the component sources. Both come from the same audit — happy to keep them as independent PRs.
I'd like to work on this if you're open to it. Since step 1 is a judgement call across 166 entries, I'd rather agree the tag vocabulary with you here first than send a large PR you then have to re-tag.
Validations
- [X] I have checked other issues to see if my issue was already discussed or addressed
No need to worry about this :)