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

@nikhilpakhloo/react-native-audio-visualizer

v0.1.1

Published

An npm package for React Native that captures live microphone input and shows real-time audio visualization

Readme

@nikhilpakhloo/react-native-audio-visualizer 🎙️✨

A high-performance, real-time audio visualization library for React Native, powered by Nitro Modules. Capture live microphone input and render beautiful, fluid visualizations with native performance.

🚀 Features

  • Blazing Fast: Uses Native Nitro Modules for low-latency audio processing and optimized native rendering.
  • 7 Premium Visualization Styles:
    • strings: Elegant Siri-inspired wave lines with Gaussian tapering.
    • bars: Modern solid DJ-style LED pillars with high-frequency reactivity.
    • waves: Fluid, multi-layered colorful waves.
    • thin-bars: Minimalist professional recorder-style lines.
    • particles: Cinematic floating particles that react to audio energy.
    • orbit: Pulsating circular arcs for circular/centered UIs.
    • waveform: iOS Voice Memos style scrolling history waveform.
  • Advanced Analysis: High-resolution 7-band frequency analysis and non-linear amplitude scaling (sqrt) for organic movement.
  • Customizable: Real-time control over color, sensitivity, smoothing, and style.
  • Safe & Clipless: Built-in vertical padding to ensure visuals never clip on notched devices.

📦 Installation

npm install @nikhilpakhloo/react-native-audio-visualizer react-native-nitro-modules

Note: react-native-nitro-modules is a required peer dependency.

Permissions

Android

Add this to your AndroidManifest.xml:

<uses-permission android:name="android.permission.RECORD_AUDIO" />

iOS

Add this to your Info.plist:

<key>NSMicrophoneUsageDescription</key>
<string>This app needs access to your microphone to visualize audio.</string>

🛠️ Usage

1. The Visualization Component

import { AudioVisualizerView } from '@nikhilpakhloo/react-native-audio-visualizer';

// ...

<AudioVisualizerView
  type="strings"        // strings, bars, waves, thin-bars, particles, orbit, waveform
  color="#00D9FF"       // Hex color string
  sensitivity={1.0}     // 0.0 - 2.0
  smoothing={0.7}       // 0.0 - 1.0
  style={{ width: '100%', height: 200 }}
/>

2. Audio Control Module

import { AudioVisualizerModule } from '@nikhilpakhloo/react-native-audio-visualizer';

// Start capturing audio
const start = async () => {
  const granted = await AudioVisualizerModule.requestPermission();
  if (granted) {
    await AudioVisualizerModule.startRecording();
  }
};

// Stop capturing
const stop = async () => {
  await AudioVisualizerModule.stopRecording();
};

// Check state
const recording = AudioVisualizerModule.isRecording();

// Get real-time data in JS (if needed)
const amp = AudioVisualizerModule.getAmplitude();
const bands = AudioVisualizerModule.getFrequencyBands();

📖 API Reference

AudioVisualizerView Props

| Prop | Type | Default | Description | | :--- | :--- | :--- | :--- | | type | VisualizationStyle | 'strings' | The visual style to render. | | color | string | '#00D9FF' | Hex color of the visualization. | | sensitivity | number | 1.0 | Multiplier for the audio amplitude (0.0 to 2.0). | | smoothing | number | 0.7 | How smoothly the visualization changes (0.0 to 1.0). |

AudioVisualizerModule Methods

  • startRecording(): Promise<void>
  • stopRecording(): Promise<void>
  • isRecording(): boolean
  • getAmplitude(): number (returns 0.0 - 1.0)
  • getFrequencyBands(): number[] (returns 7-element array)
  • requestPermission(): Promise<boolean>

📜 License

MIT


Made with ❤️ by nikhilpakhloo