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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@jsfather/react-dynamic-equalizer

v1.0.1

Published

A highly customizable, dynamic equalizer component for React with TypeScript support

Readme

Dynamic Equalizer

A highly customizable, dynamic audio equalizer component for React with full TypeScript support.

Features

  • 🎵 Animated Equalizer Bars - Smooth, realistic equalizer animations
  • 🎨 Fully Customizable - Colors, sizes, animation speeds, and more
  • 📱 Responsive - Works on all screen sizes
  • Performance Optimized - Efficient animations and rendering
  • 🔧 TypeScript Support - Full type definitions included
  • 🎛️ Flexible API - Easy to integrate and customize

Installation

npm install @jsfather/react-dynamic-equalizer
yarn add @jsfather/react-dynamic-equalizer

Basic Usage

import { ReactDynamicEqualizer } from '@jsfather/react-dynamic-equalizer';

function App() {
  return (
    <div style={{ height: '200px', width: '100%' }}>
      <ReactDynamicEqualizer />
    </div>
  );
}

Advanced Usage

import { ReactDynamicEqualizer, ReactEqualizerColors } from '@jsfather/react-dynamic-equalizer';

const customColors: ReactEqualizerColors = {
  primary: ['#ff6b6b', '#ee5a6f'],
  secondary: ['#4ecdc4', '#45b7aa'],
  accent: ['#ffe66d', '#ffcc5c']
};

function ReactCustomEqualizer() {
  return (
    <ReactDynamicEqualizer
      barCount={40}
      height="300px"
      colors={customColors}
      animation={{
        duration: { min: 0.3, max: 1.5 },
        easing: 'ease-out',
        scaleRange: { min: 0.1, max: 1 }
      }}
      blocksPerBar={{ min: 4, max: 12 }}
      gap="8px"
      borderRadius="4px"
      paused={false}
    />
  );
}

Props API

| Prop | Type | Default | Description | |------|------|---------|-------------| | barCount | number | 60 | Number of equalizer bars | | height | string \| number | '100%' | Height of the equalizer | | width | string \| number | '100%' | Width of the equalizer | | minBarWidth | string \| number | '24px' | Minimum width of each bar | | gap | string \| number | '10px' | Gap between bars | | colors | string[] \| EqualizerColors | DEFAULT_COLORS | Color configuration | | blocksPerBar | { min?: number; max?: number } | { min: 3, max: 9 } | Range of blocks per bar | | animation | AnimationConfig | See below | Animation configuration | | className | string | '' | Custom CSS class | | style | React.CSSProperties | {} | Custom inline styles | | paused | boolean | false | Pause animations | | visible | boolean | true | Show/hide equalizer | | blockHeightMultiplier | number | 1 | Height multiplier for blocks | | randomizeColors | boolean | true | Randomize colors vs sequential | | borderRadius | string \| number | '0px' | Border radius for blocks | | direction | 'up' \| 'down' | 'up' | Animation direction |

Animation Configuration

interface ReactAnimationConfig {
  duration?: {
    min?: number;    // Default: 0.4
    max?: number;    // Default: 1.2
  };
  easing?: string;   // Default: 'ease-in-out'
  scaleRange?: {
    min?: number;    // Default: 0.2
    max?: number;    // Default: 1
  };
}

Color Configuration

You can pass colors in two ways:

Simple Array

const colors = ['#ff0000', '#00ff00', '#0000ff'];
<ReactDynamicEqualizer colors={colors} />

Categorized Colors

const colors: ReactEqualizerColors = {
  primary: ['#ff6b6b', '#ee5a6f'],
  secondary: ['#4ecdc4', '#45b7aa'],
  accent: ['#ffe66d', '#ffcc5c']
};
<DynamicEqualizer colors={colors} />

Examples

Music Player Theme

<ReactDynamicEqualizer
  barCount={50}
  height="150px"
  colors={['#1db954', '#1ed760', '#1aa34a']}
  animation={{ duration: { min: 0.2, max: 0.8 } }}
  borderRadius="2px"
/>

Neon Theme

<ReactDynamicEqualizer
  barCount={30}
  height="200px"
  colors={['#ff00ff', '#00ffff', '#ffff00']}
  animation={{ easing: 'ease-out' }}
  gap="12px"
  borderRadius="8px"
/>

Minimal Theme

<ReactDynamicEqualizer
  barCount={20}
  height="100px"
  colors={['#333333', '#666666', '#999999']}
  animation={{ duration: { min: 0.6, max: 1.4 } }}
  gap="6px"
/>

TypeScript Support

The package includes full TypeScript definitions. Import types as needed:

import {
    ReactDynamicEqualizer,
    ReactEqualizerProps,
    ReactEqualizerColors,
    ReactAnimationConfig 
} from '@jsfather/react-dynamic-equalizer';

Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)

License

MIT © Your Name