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

@ibrahim-org/react-3d-ai-assistant

v1.1.0

Published

A reusable React Three Fiber 3D AI voice assistant sphere with iridescent glass shader, blinking eyes, sparkle particles, and radar ripple rings.

Readme

react-3d-ai-assistant  ·  Live Demo

npm license demo

A reusable React Three Fiber component that renders an interactive 3D voice assistant sphere — iridescent glass material, blinking eyes, fire-ember sparkles, and blink-triggered radar ripple rings.


Installation

npm install @ibrahim-org/react-3d-ai-assistant

Peer dependencies (install separately if not already present)

npm install three @react-three/fiber @react-three/drei react react-dom

Usage

import { AIVoiceAssistant } from '@ibrahim-org/react-3d-ai-assistant';

export default function App() {
  return (
    <div
      style={{
        width: 'min(100%, 960px)',
        height: 'min(78dvh, 760px)',
        minHeight: 320,
        margin: '0 auto',
      }}
    >
      <AIVoiceAssistant />
    </div>
  );
}

The component owns its own <Canvas> and adapts to its parent container size. Use any responsive CSS strategy for the parent (grid, flex, aspect-ratio, clamp, media queries).


Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | scale | number | 1 | Scale multiplier for the sphere | | colorPalette | string[] | see below | Array of 4 hex colors seeding the shader palette | | animationSpeed | number | 1 | Multiplier for all animations (noise, bobbing, ripples) | | enableMouseTracking | boolean | true | Sphere rotates to follow the cursor | | onFirstHit | () => void | undefined | Callback fired once on the first click/hit | | style | CSSProperties | {} | CSS overrides on the container <div> | | className | string | — | Class applied to the container <div> |

Default color palette

['#00e5ff', '#ff00ff', '#ff2200', '#4400aa']
// Cyan, Magenta, Red, Deep Purple

Custom palette example

<AIVoiceAssistant
  scale={1.3}
  animationSpeed={1.2}
  colorPalette={['#00ffcc', '#ff00aa', '#ff4400', '#220066']}
  enableMouseTracking={true}
/>

Using only the sphere inside your own Canvas

import { Canvas } from '@react-three/fiber';
import { IridescentSphere } from '@ibrahim-org/react-3d-ai-assistant';

export default function Scene() {
  return (
    <Canvas camera={{ position: [0, 0, 4], fov: 45 }}>
      <ambientLight intensity={0.4} />
      <IridescentSphere scale={1.2} animationSpeed={1} enableMouseTracking />
    </Canvas>
  );
}

Features

  • Custom GLSL vertex + fragment shader — 3D Simplex noise, Fresnel rim glow, Blinn-Phong specular
  • 6 vivid flowing color zones (cyan, blue, purple, magenta, red, orange) that slowly morph
  • 5 floating white semi-transparent glass-reflection overlay layers
  • Pill-shaped blinking eyes with natural random timing and double-blink
  • Fire-ember sparkle particles that spawn on the sphere surface and fall with gravity
  • Blink-triggered radar ripple rings
  • Dark transparent outer shell
  • Smooth mouse-tracking rotation with lerp
  • Sine-wave bobbing animation
  • All visual computation on the GPU
  • Memoized geometries and materials — no re-instantiation on render
  • Click/tap hit reaction — eyes squeeze to an angry "><" expression with squash-stretch animation, sphere recoils, white flash overlay
  • Pointer cursor on hover

Links


License

MIT © 2026 Ibrahim Bensaadoune