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

@orb3d/react-native

v0.3.0

Published

Glass orb with states for React Native, drawn with React Native Skia (3.x on Vulkan and Metal, or 2.x): the <Orb3D> component

Downloads

427

Readme

@orb3d/react-native

A glass orb with states for React Native, drawn with React Native Skia. The same orb as the web packages: one shader, compiled to Skia's dialect, and the same runtime, run on the UI thread.

pnpm add @orb3d/react-native react-native-skia react-native-reanimated react-native-worklets

It runs on either React Native Skia, and uses whichever the app has installed:

  • Skia 3, the react-native-skia package: Graphite, on Vulkan on Android (API 26 and up) and Metal on iOS. It is native code, so it needs a development build, not Expo Go.
  • Skia 2, the @shopify/react-native-skia package: OpenGL ES on Android, Metal on iOS. This is the one Expo Go ships, so it is what runs there.
import { Orb3D } from "@orb3d/react-native";

<Orb3D preset="aura" state={agent.state} style={{ width: 96, height: 96 }} />;

Props: preset (clear, the default, aura, landscape, sunset, dawn, storm, night), config (merged over the preset, block by block), program (a compiled orb from Orb Studio's export or compileOrb, instead of preset and config), source, state, level (0 to 1), paused and style. Changing state springs the orb to it.

For a picture or clip in the glass, the contents' src is a URL; source takes its place with anything useImage takes, a required asset included, or for a clip a local file URI:

<Orb3D config={{ contents: { type: "image" } }} source={require("./avatar.jpg")} />
<Orb3D config={{ contents: { type: "video", src: "https://example.com/loop.mp4" } }} />

A picture is drawn through a child image shader, scaled toward the orb's size so Skia samples a mipmap; a clip through Skia's useVideo. A shader of your own is compiled to SkSL on the device; if it does not compile there, the orb shows clear glass and warns.

The frame loop runs on the UI thread through Reanimated, so a busy JS thread does not stall it. For audio, drive the level through the ref, so nothing re-renders per frame:

const orb = useRef<Orb3DHandle>(null);
// in your audio loop:
orb.current?.setLevel(rms * 6);
<Orb3D ref={orb} preset="aura" state="speaking" />;

Uniform objects and their arrays are reused between frames. Reanimated's modify explicitly notifies Skia after an in-place update; gradient definitions are copied only when the program changes, while their state weights remain reactive.

Under Reduce Motion it holds a still frame and cuts between states. The worklets Babel plugin, which Expo configures for you, turns the runtime in @orb3d/core into UI-thread code.

Metro reads this package from its source (the react-native condition), because the choice between the two Skia packages is an optional require that Metro has to see as written. TypeScript reads the built declarations first. The public OrbSource type describes the image sources shared by both Skia versions, so either installation typechecks on its own.