Skip to content

About

A React component library of animated AI agent status orbs. Thinking, searching, compacting and more, built with attention to detail on every state and variant.

Resources

Stars

82 stars

Watchers

0 watching

Forks

Latest commit

 

History

35 Commits

Folders and files

Repository files navigation

Thinking Orbs

Thinking Orbs

A React component library of animated AI agent status indicator orbs. Thinking, searching, compacting, using a browser and more well-thought-out orbs built with attention to detail on every state and variant. 9 states, 23 variants, 5 shapes and 8 render styles to fit every state an agent goes through and your design style.

Works in React or plain JS, with no dependencies.

See them all at thinkingorbs.com, and try every shape and render in the playground.

Install

npm i @yogesharc/thinking-orbs
import { Orb } from "@yogesharc/thinking-orbs";

<span className="flex items-center gap-2">
  <Orb state="reasoning" />
  Thinking
</span>

Or copy the source into your project with shadcn, yours to change:

npx shadcn@latest add https://thinkingorbs.com/r/orb.json

Props, every state and variant, shapes and renders, and use without React are all in the package README.

SwiftUI

For iOS 17 and macOS 14. In Xcode, File › Add Package Dependencies, and paste https://github.com/yogesharc/thinking-orbs.

import ThinkingOrbs

Orb(state: .reasoning)

It takes the same props as the React Orb, except shapes and renders. Tint it with .foregroundStyle.

Working on it

apps/web/               the site at thinkingorbs.com, which also serves the shadcn registry
  registry/orb/         the orb itself: orb-core.ts draws it, orb.tsx wraps it for React
packages/thinkingorbs/  the npm package, compiled from apps/web/registry/orb
packages/swift/         the SwiftUI package, a hand port of orb-core.ts (its manifest is Package.swift at the root)

The orb's source lives once, in apps/web/registry/orb. The site imports it, the registry serves it, and the package compiles it.

cd apps/web && pnpm install && cd ../..
pnpm dev                                     # the site on localhost:3000
cd packages/thinkingorbs && pnpm install && pnpm build   # the npm package

License

MIT

About

A React component library of animated AI agent status orbs. Thinking, searching, compacting and more, built with attention to detail on every state and variant.

Resources

Stars

82 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages