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

nativeorbs

v0.0.2

Published

Dotted thinking-orb loading indicators for React Native + Expo AI/agent UIs — nine animated states, Skia-rendered. A port of thinking-orbs.

Readme

nativeorbs

npm version license

Dotted thinking-orb loading indicators for React Native + Expo — for AI & agent UIs. Nine hand-tuned animated states, each an honestly-3D dotted sphere, rendered on Skia. Monochrome, theme-aware, two tuned sizes.

nativeorbs is a React Native port of thinking-orbs: the entire animation engine (nine mode painters, density profiles, presets, and the shared 3D/noise math) ports near-verbatim; the pixel layer is rebuilt on @shopify/react-native-skia.

import { ThinkingOrb } from 'nativeorbs'

<ThinkingOrb state="searching" size={64} />

Install

Skia is a native module — nativeorbs runs on an Expo dev client / prebuild / EAS build, not Expo Go.

npm install nativeorbs
npx expo install @shopify/react-native-skia

@shopify/react-native-skia (≥1.5) is the only peer — no Reanimated / Gesture Handler.


States

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

<ThinkingOrb state="working" />     {/* particles on tilted orbits */}
<ThinkingOrb state="searching" />   {/* a scan meridian sweeps a dotted globe */}
<ThinkingOrb state="solving" />     {/* bands scramble in quarter turns, then click back */}
<ThinkingOrb state="listening" />   {/* a waveform rolls through latitude rings */}
<ThinkingOrb state="connecting" />  {/* a constellation wires itself, packets on the edges */}
<ThinkingOrb state="weaving" />     {/* three strands plait around the sphere */}
<ThinkingOrb state="composing" />   {/* an undulating multi-band sash */}
<ThinkingOrb state="breathing" />   {/* a face-on ring slowly morphing */}
<ThinkingOrb state="shaping" />     {/* a dotted outline: circle → triangle → square */}

Each ships a sensible per-state accessibilityLabel (e.g. "Searching…"); override with the prop.


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 dots on dark backgrounds, dark dots on light — with the mode following the device color scheme by default:

<ThinkingOrb theme="auto" />   {/* default — follows useColorScheme(), live */}
<ThinkingOrb theme="dark" />   {/* pin: light dots (for dark backgrounds) */}
<ThinkingOrb theme="light" />  {/* pin: dark dots (for light backgrounds) */}

The canvas is transparent, so an orb sits on any background.


Props

| Prop | Type | Default | Description | |---|---|---|---| | state | OrbState | 'working' | Which of the nine animations to show. | | size | 64 \| 20 | 64 | Tuned size preset. | | theme | 'auto' \| 'dark' \| 'light' | 'auto' | Dot palette; auto follows the OS scheme. | | speed | number | 1 | Multiplier on the preset's baked speed. | | paused | boolean | false | Freeze on the current frame. | | accessibilityLabel | string | per-state | Overrides the default label. | | style | ViewStyle | — | Style on the wrapping view. |


Accessibility & performance

  • accessibilityRole="image" with a per-state accessibilityLabel out of the box.
  • Reduced motion (AccessibilityInfo) renders a single static representative frame — no loop — and still follows the theme.
  • One shared wall clock keeps every mounted orb in phase.
  • Plain Skia arcs only — no blur, no filters — cheap on low-end devices.

Power-user surface

Everything the component uses is exported, for driving your own Skia canvas:

import { resolvePreset, MODE_DRAWS, paint, type Dot } from 'nativeorbs'

const { mode, opts, speed } = resolvePreset('searching', 64)
// MODE_DRAWS[mode](skCanvas, size, t, dark, opts) — draw a frame yourself

How it works

state → a mode painter + fully-scaled options (resolvePreset, cached). Each painter computes an array of depth-sorted dots (and, for connecting, edges) on a rotated 3D sphere, then hands them to paint() — the only pixel code, which draws grayscale Skia circles with depth carried by size and ink weight. A requestAnimationFrame loop records one SkPicture per frame.

The engine (mode painters, profiles, presets, 3D/noise math) is ported near-verbatim from thinking-orbs; only paint/paintLines and the component are Skia.


Development

npm install
npm test          # vitest — preset resolution + scaling machinery
npm run typecheck
npm run build     # tsup → dist (ESM + CJS + d.ts)

License

MIT. Ported from thinking-orbs (MIT, © Jakub Antalik) — see LICENSE.