Libraries.dev README

The project's README from github.com/Jakubantalik/Libraries.dev. As one markdown file: README.md.

Libraries.dev

High-crafted UI libraries for AI agents. Seven React libraries for the effects that make an interface feel alive: a beam of light travelling a card's border, orbs that think while a model works, bot avatars with living faces, shapes that merge like liquid, a glow that rises with your voice, brushed metal that catches the light, and an image loader that dissolves a pixel mosaic into a real photo.

Each one installs from npm and drops into your app as a single component that wraps the element you already have. Your markup keeps its semantics, the effect renders around or behind it, and the whole thing is tuned by props rather than hand-written WebGL.

Library What it does npm Page
Border beam A soft glow that rides the border of a card, button or input npm install border-beam libraries.dev/beam
Thinking orbs Orbs that think while you wait — nine loading states for AI interfaces npm install thinking-orbs libraries.dev/orbs
Bot avatars Animated bot avatars with living faces — eighteen glossy shapes, four states, for AI agents npm install bot-avatars libraries.dev/avatars
Gooey Pieces that merge like goo and morph like jelly while text stays crisp npm install liquid-gooey libraries.dev/gooey
Voice A glow that rises with your voice from the bottom of a chat input or phone screen npm install voice-glow libraries.dev/voice
Metal Liquid metal for buttons, icons, text and badges, with reflections and cursor light npm install metal-fx libraries.dev/metal
Image A loader that becomes the image — a WebGL pixel mosaic that settles into the picture npm install img-fx libraries.dev/image

Try each one on libraries.dev: a live preview to play with, the install command, the usage code, and a playground that copies the exact configuration.

How to use

Every library ships as a prompt. Copy it, paste it into your coding agent, and make it yours — three steps, no setup.

  1. Copy the prompt. Every library page has a Copy prompt button. One paste gives your agent the whole library: its parameter vocabulary and your current settings.
  2. Paste it into your agent. Drop it into Claude Code, Cursor or Codex. The agent installs the package and wires it in, matched to your theme.
  3. Make it yours. Open the Studio with Pro for every knob, tune it live and copy the result as props.

Or the plain way:

npm install border-beam   # or thinking-orbs, bot-avatars, liquid-gooey, voice-glow, metal-fx, img-fx
import { BorderBeam } from "border-beam";

<BorderBeam>
  <button>Get started</button>
</BorderBeam>

Each package's README documents its props.

FAQ

What do I need? React 18 or newer. Each library is a standalone package with zero runtime dependencies, except Image, which also needs three as a peer dependency.

Do they work with coding agents? Yes — that is the point. Every library installs and configures cleanly from Cursor, Claude Code and Codex, and each playground's copy-prompt button hands your agent the library's full parameter vocabulary along with your current settings.

Light and dark mode? Both, detected for you. The default theme="auto" resolves a data-theme attribute or dark class on an ancestor, then falls back to prefers-color-scheme, updating live when either changes. Pass theme="dark" or theme="light" to pin one.

What are Pro and the Studio? One plan across every library. Pro unlocks the Studio — deep, per-library customization beyond the public playgrounds, with export of the exact configuration — plus Pro presets and every future library and update. See pricing.

Commercial projects? The libraries are MIT — use them anywhere, including commercial work. Pro content (Studio exports, Pro presets and recipes) is licensed to you or your team under the plan you buy, for unlimited projects.

Working in this repo

npm workspaces: packages/ holds the published libraries (one folder per npm package, each with its own README and LICENSE), sites/ the demo sites — sites/home is libraries.dev.

npm install
npm run build:site-home         # every library + libraries.dev, as CI does
npm run dev -w @sites/home      # libraries.dev with every page and the Studio
npm run typecheck               # every workspace

The home site imports the built packages, so build a library (npm run build:beam, build:orbs, build:gooey, build:voice, build:metal, build:image) before its page or bench. The standalone demos (@sites/beam, @sites/gooey, @sites/orbs) alias their library to its source and hot-reload without a rebuild.

Releasing

Publishing is per package (publish.yml, npm publish -w <package>): run the workflow by hand with the package name, or publish a GitHub release whose tag is <package>@<version> ([email protected]). A version the registry already has is skipped.

Deploys

The two sites are hosted separately, because GitHub Pages serves one custom domain per repo:

.node-version pins Node 20 for the Cloudflare builds, matching the version the GitHub workflows use; Cloudflare's default is older.

Cloudflare's Retry deployment replays the same commit rather than fetching the branch tip, so a build that failed on an outdated commit keeps failing. Push a new commit to get a fresh one.

Only the beam site carries a public/CNAME; that file is a GitHub Pages mechanism. The Cloudflare-hosted sites bind their domain in the Pages project instead, and the DNS record itself lives at the registrar (inetadmin), not Cloudflare — jakubantalik.com is not on Cloudflare's nameservers.

thinking-orbs arrived by git subtree, so its full history is in this repo — but those commits touched src/…, not packages/thinking-orbs/src/…. git log -- packages/thinking-orbs therefore stops at the merge. To read the real history, log from the commit the merge names:

git log --oneline 9c6d5c3 -- ports/ios/PillsDemo/Sources/PillsApp.swift
git log --follow packages/thinking-orbs/src/index.ts

thinking-orbs also carries native ports under packages/thinking-orbs/ports — a React Native package and a SwiftUI package, kept in step with the web renderer by the golden vectors in spec/. Neither is published yet.

Libraries.dev (Jakubantalik/Libraries.dev)

Searching Database…

这是什么?Libraries.dev 是一个 monorepo,收录了七个用于构建带动画的 AI 智能体界面的 React UI 库:边框光束(border beam)、思考球体(thinking orbs)、机器人头像(bot avatars)、液态黏连形状(liquid gooey shapes)、语音光晕(voice glow)、液态金属(liquid metal),以及图片马赛克加载器(image mosaic loader)。
这是一个库,还是一组独立的包?它是一个基于 npm workspaces 的 monorepo,包含七个可独立发布的 npm 包,每个效果一个文件夹,各自带有自己的 README 和 LICENSE,此外还有演示站点。
如何把其中一个添加到我的项目里?用 npm 安装你需要的包(例如 npm install border-beam),然后把它包裹在你已有的元素外面;也可以点击每个库页面上的 Copy prompt 按钮,把安装和配置步骤交给编程智能体完成。
使用它们需要什么——对框架版本有要求吗?你需要 React 18 或更高版本。每个包都是独立的,没有任何运行时依赖,只有 Image 库例外——它还需要 three 作为 peer 依赖。
这里的一切都可以免费使用吗?这七个库本身免费并采用 MIT 许可证;更深度的按库自定义和配置导出功能位于 Studio 中,需要付费的 Pro 计划。
可以在商业项目中使用它们吗?可以——这些库本身采用 MIT 许可证,可在任何地方使用,包括商业项目;只有 Studio 导出和预设等 Pro 专属内容带有与你的订阅计划绑定的单独许可。
深色模式是自动生效的吗,还是需要我自己配置?是的——默认的 theme='auto' 会检测祖先元素上的 data-theme 属性或 dark 类,然后回退到 prefers-color-scheme 并实时更新;你也可以手动固定为 theme='dark' 或 theme='light'。
复制提示词的工作流可以配合任何编程智能体使用吗?每个库页面都有一个 Copy prompt 按钮,会把该库完整的参数清单连同你当前的设置一起交给 Claude Code、Cursor 或 Codex,让智能体帮你安装并接入。
付费的 Pro 计划额外提供什么?Pro 会解锁 Studio,让你能在公开的 playground 之外进行更深度的按库自定义,可以把确切的配置导出为 props,还包含 Pro 预设以及未来所有的库和更新。
Thinking orbs 的 React Native 和 SwiftUI 原生版本准备好了吗?还没有——原生移植版本位于 packages/thinking-orbs/ports 目录下,并通过黄金测试向量(golden vectors)保持同步,但两者均尚未发布。
Size
91 MB
Stars
4.3K
Age
6mo
Commits · 90 Days