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

3d-shape-particle-text

v1.0.4

Published

Interactive 3D particle system morphing between preset 3D shapes and text, with lightning effects and full customization.

Downloads

574

Readme

3d-shape-particle-text

NPM Version License

A high-performance React component for rendering interactive 3D particle systems that morph between preset 3D shapes and custom text. Built with React and Three.js.

Features

  • Particle Morphing: Smooth transitions between preset 3D shapes and text.
  • Interactive: Responds to mouse hover and rotation.
  • Customizable: Configurable colors, particle counts, lightning effects, and more.
  • Responsive: Automatically adjusts to container size.
  • Multiple Shapes: Built-in presets like brain, sphere, torus, knot, helix, blob, crystal, spiral, cube, orbit.

Installation

npm install 3d-shape-particle-text three
# or
yarn add 3d-shape-particle-text three

Note: This package requires react, react-dom, and three as peer dependencies.

Usage

Here is a standard configuration matching the default theme:

import { ShapeParticleText } from '3d-shape-particle-text';

function App() {
  return (
    <div style={{ height: '100vh', width: '100%' }}>
      <ShapeParticleText
        text="AI"
        shape="brain"
        particleCount={26000}
        particleSize={0.01}
        primaryColor={{ r: 0.396, g: 0.239, b: 0.820 }} // #653DD1
        secondaryColor={{ r: 0.537, g: 0.239, b: 0.820 }} // #893DD1
        backgroundColor="#000000"
        lightningColor="#ffffff"
        globeColor="#653DD1"
        morphDuration={2.5}
        rotationSpeed={0.1}
        hoverIntensity={0.05}
        lightningIntensity={1.7}
        zapSpread={0.7}
        zapWidth={0.003}
        globeOpacity={0.15}
        showGlobe={true}
        glowEffect={true}
      />
    </div>
  );
}

Examples

  • examples/landing-page/: landing page demo + built-in playground + theme presets

Run the landing-page example:

cd examples/landing-page
npm install
npm run dev

Props

| Prop | Type | Default | Description | | :--- | :--- | :--- | :--- | | text | string | 'AI' | The text to morph into. | | shape | string | 'brain' | Shape preset key (e.g. brain, crystal, spiral, torusKnot). | | shapePoints | ShapePoint[] \| Float32Array \| number[] | null | Custom point cloud to render instead of a preset. | | particleCount | number | 24000 | Total number of particles. | | particleSize | number | 0.01 | Size of individual particles. | | primaryColor | object | string | {r: 0.396, g: 0.239, b: 0.820} | Primary color of the particle form. | | secondaryColor | object | string | {r: 0.537, g: 0.239, b: 0.820} | Secondary color for gradients and connections. | | backgroundColor | string | '#000000' | Background color of the canvas. | | transparent | boolean | false | Whether the canvas background is transparent. | | morphDuration | number | 2.5 | Duration of the morph animation in seconds. | | rotationSpeed | number | 0.4 | Speed of the idle rotation. | | hoverIntensity | number | 0.05 | Intensity of the mouse hover tilt effect. | | lightningIntensity | number | 1.0 | Frequency of lightning effects (0 to disable). | | lightningColor | object | string | null | Color of lightning bolts. If null, uses random colors. | | zapSpread | number | 0.7 | Spread amplitude of lightning bolts. | | zapWidth | number | 0.02 | Thickness of lightning bolts. | | cameraDistance | number | 5.5 | Distance of the camera from the center. | | globeOpacity | number | 0.08 | Opacity of the surrounding wireframe globe. | | globeColor | object | string | null | Color of the wireframe globe. If null, uses primaryColor. | | showGlobe | boolean | true | Whether to render the wireframe globe. | | glowEffect | boolean | true | Enables additive blending for a glow effect. | | className | string | '' | Custom CSS class for the container. | | style | object | {} | Custom inline styles for the container. |

License

MIT