npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@beastjs/thinking-orbs

v1.0.1

Published

Dotted thought-orb loading indicators for Octane and Beast — nine tuned states, two sizes, auto dark/light

Readme

@beastjs/thinking-orbs

Dotted thought-orb loading indicators for Octane and Beast. Nine hand-tuned animated states, each shipped at two purpose-tuned sizes, rendered on a plain 2D canvas.

Install

bun add @beastjs/thinking-orbs

Octane libraries ship source: octane is a peer dependency, and your app's Octane compiler (e.g. beastOctane() from beast-tsrx/vite) compiles this package alongside your code. There is no build step.

Usage

import { ThinkingOrb } from "@beastjs/thinking-orbs";

ThinkingOrb(state="searching" size={64})

States

Nine verbs an agent can be doing, each a distinct animation:

// particles on tilted orbits
ThinkingOrb(state="working")
// a scan meridian sweeps a dotted globe
ThinkingOrb(state="searching")
// bands scramble, then click back solved
ThinkingOrb(state="solving")
// a waveform rolls through the rings
ThinkingOrb(state="listening")
// a constellation wires itself
ThinkingOrb(state="connecting")
// three strands plait around the sphere
ThinkingOrb(state="weaving")
// an undulating multi-band sash
ThinkingOrb(state="composing")
// a ring slowly morphing
ThinkingOrb(state="breathing")
// dotted outline: circle → triangle → square
ThinkingOrb(state="shaping")

Sizes

Two tuned presets — separate designs, not a scale factor. 64 for chat-avatar scale, 20 for inline-text scale. Each carries its own dot count, dot size and speed tuning:

ThinkingOrb(state="working" size={64})
ThinkingOrb(state="working" size={20})

Theme

Strictly monochrome — light ink for dark backgrounds, dark ink for light backgrounds — with the mode picked automatically from the host project:

// default — detects from the project
ThinkingOrb(theme="auto")
// pin: light dots for dark backgrounds
ThinkingOrb(theme="dark")
// pin: dark dots for light backgrounds
ThinkingOrb(theme="light")

auto resolves in three layers and updates live when any of them change:

  1. an ancestor data-theme="dark|light" attribute or dark/light class (the Tailwind / shadcn convention), watched via MutationObserver;
  2. otherwise prefers-color-scheme, subscribed for live OS theme switches;
  3. SSR-safe — the canvas paints only on the client, after the theme has resolved.

Other props

ThinkingOrb(
  ~ state="solving"
  ~ size={20}
  ~ speed={1.5}
  ~ paused={false}
  ~ aria-label="Analysing repository…"
  ~ )
  • speed multiplies the preset's baked speed.
  • paused freezes the current frame.
  • aria-label overrides the per-state default.

All other canvas attributes (class, style, data-*, …) pass through.

Accessibility & performance

  • role="img" with a sensible per-state aria-label out of the box.
  • prefers-reduced-motion: reduce renders a static representative frame — no animation — and still follows the live theme.
  • Every instance pauses automatically when scrolled offscreen (IntersectionObserver) or when the tab is hidden, and resumes in phase — all instances share one clock.
  • Plain 2D canvas arcs only: no ctx.filter, no SVG filters, no WebGL — the same pixels everywhere, cheap on low-end devices. Device-pixel-ratio capped at 2.

License

MIT. Beast & Octane port of thinking-orbs by Jakub Antalik.