UICapsule — A curated collection of components that spark joy

UICapsule is a curated gallery of interactive React components, built and maintained by Kaiyu Hsu. Each entry is a working component rendered live in the browser, not a screenshot: the grid you see is the code running.

Components are chosen for interactions the web does not usually have — hardware gestures, operating-system motion, physical mechanisms, instruments — or for collisions between a familiar interaction and an unexpected domain. Every one has to read from motion alone.

Everything is MIT licensed and free. Each component ships as a shadcn registry item, so `npx shadcn@latest add https://uicapsule.com/r/<slug>.json` drops its source straight into your project, dependencies and all. The full source of the gallery itself is on GitHub.

When to use this

How to use it

How to call it: every component is a shadcn registry item. Fetch `https://uicapsule.com/r/registry.json` for the index, or `https://uicapsule.com/r/<slug>.json` for one item with its full source, its npm dependencies and its install targets. `npx shadcn@latest add https://uicapsule.com/r/<slug>.json` writes the files into a project directly. Nothing here requires an API key, an account, or a rate-limited token.

Reading it as an agent: send `Accept: text/markdown` to any page URL — or append `.md` to it — and the same page comes back as Markdown instead of HTML. `/llms.txt` carries this overview plus the complete component catalog in one request, and `/sitemap.xml` lists every indexable URL.

Filtering it: the home page accepts `element` and `style` query parameters, each a comma-separated list, so `https://uicapsule.com/?element=controls&style=skeuomorphism` narrows the grid to skeuomorphic controls. The full vocabulary for each is listed below.

Licensing and support: everything is MIT licensed — use it in personal and commercial work with no attribution required. The gallery itself is open source at https://github.com/kyh/uicapsule; bugs and component requests go to its issue tracker, and anything private goes to uicapsule@kyh.io.

Machine-readable endpoints

Browse by element

Browse by style

All 53 components

More about UICapsule

©2026 Kaiyu Hsu