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

react-native-waveform-recorder

v1.1.0

Published

High-performance React Native audio recorder with a native live waveform, multi-segment record/pause/resume, in-place preview + scrub playback, slide-to-cancel / slide-to-lock gestures, silence detection, and a WhatsApp-style 64-bucket export. Built on th

Readme

react-native-waveform-recorder

A React Native audio recorder with a native live waveform, pause and resume, in-place preview with scrubbing, continue recording after preview, slide-to-cancel and slide-to-lock gestures, silence detection and a 64-bar export ready for chat bubbles. Built for the New Architecture (Fabric); nothing runs in JavaScript per frame.

Pairs with react-native-waveform-player for playback: pass onComplete.uri and onComplete.samples to it and the player skips decoding the file. Works with Expo development builds (not Expo Go).

Demo

| iOS | Android | | :---: | :---: | | | |

Features

  • Native live waveform: bars drawn in Swift and Kotlin from the microphone level, with configurable colors, sizes, timer and placeholder ticks
  • Pause, preview, continue: pause and resume, listen back with scrubbing, then record more; segments are joined into one file
  • Slide to cancel or lock: native drag tracking with progress events for your own hints
  • Silence detection: an event after a quiet stretch, optionally stopping automatically
  • 64-bar export: onComplete.samples is ready for a chat-bubble waveform
  • Formats: m4a, aac, wav and opus
  • Raw PCM stream: opt-in 16-bit PCM chunks while recording WAV, from the /pcm-stream subpath
  • Background recording: iOS background audio and an Android foreground service

Install

npm install react-native-waveform-recorder
# or
yarn add react-native-waveform-recorder

# iOS
npx pod-install

Requires the New Architecture. Add NSMicrophoneUsageDescription to your iOS Info.plist; Android's RECORD_AUDIO is declared by the library and requested on start(). For Expo, add "react-native-waveform-recorder" to plugins and rebuild your development client. Background recording and the config plugin options are covered in the installation guide.

Quick start

import { useRef } from 'react';
import { Button, View } from 'react-native';
import {
  WaveformRecorderView,
  type WaveformRecorderViewRef,
} from 'react-native-waveform-recorder';

export function VoiceNote() {
  const ref = useRef<WaveformRecorderViewRef>(null);
  return (
    <View>
      <WaveformRecorderView
        ref={ref}
        style={{ height: 56 }}
        onComplete={(e) => {
          // Copy e.uri somewhere permanent: cancel() or unmounting the view deletes the session files.
          console.log('saved:', e.uri, e.durationMs, e.samples.length);
        }}
      />
      <Button title="Record" onPress={() => ref.current?.start()} />
      <Button title="Stop" onPress={() => ref.current?.stop()} />
    </View>
  );
}

Documentation

Everything else lives on the documentation site: https://maitrungduc1410.github.io/react-native-waveform-recorder/

A demo app with recipe screens is in example/. Design notes are in ARCHITECTURE.md and LESSONS_LEARNED.md.

Contributing

See CONTRIBUTING.md. The docs site source is in docs/; run yarn docs:dev to work on it.

License

MIT