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

shadersmith-r3f

v1.0.5

Published

A modular and customizable animated gradient component for React applications.

Readme

shadersmith-r3f

optimized-liquid-bg

Modular/animated shader gradient components for React apps.

npm downloads

Check it out: https://shadersmith.vercel.app/. Customize your own art and drop into your app!

Dependencies

react, three.js, @react-three/fiber are required to use this package. Support is for React 18/19 applications.

Installation

1. Install Peer Dependencies (if you don't have them already!)

To avoid any errors or warnings you must ensure the following is installed in your React app:

npm install three @react-three/fiber

If using React 18, install @react-three/fiber@8 instead

2. Install Shadersmith

npm install shadersmith-r3f

Basic Usage

import { Shadersmith } from "shadersmith-r3f";

export default function App() {
  return (
    <div style={{ width: "100vw", height: "100vh" }}>
      <Shadersmith
        preset="valley"
        amplitude={20}
        animationSpeed={0.5}
        grain={25}
        colors={[
            [0.8, 0.8, 1.0, 1.0],
            [1.0, 0.78, 0.96, 1.0],
            [0.0, 0.93, 0.93, 1.0],
            [0.29, 0.29, 0.55, 1.0],
            [0.22, 0.22, 0.4, 1.0],
        ]}
      />
    </div>
  );
}

NOTE: The gradient component scales to full height and width of its parent, so if you are having issues seeing your component, ensure that its parent DOM element has explicit height and width.

Arguments / Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | preset | "valley" \| "liquid" \| "gloss" | "valley" | Shader preset, each has a unique visual style. | | amplitude | number (0-100) | 20 | Intensity of the gradient. 0 = flat, 100 = extreme. | | animationSpeed | number (0-1) | 0.5 | Controls how fast the gradient animates. | | colors | RGBA[5] | Default palette | Array of 5 RGBA colors. Low amplitude may hide some colors. | | grain | number (0-100) | 25 | Grain overlay for softer, distorted, or “film-like” effect. |

Web Application

You can find the source code for the web app here:

GitHub Repo

Credit

Stefan Gustavson & Ian McEwan for their work on a 3D Simplex Noise Function in WebGL https://github.com/ashima/webgl-noise https://github.com/stegu/webgl-noise

Collaboration

Feel free to open up any pull requests or issues for the web-app/package!