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

@parastud/react-native-vban

v0.2.0

Published

VBAN (VB-Audio Network) audio-over-IP for React Native / Expo — native UDP send & receive, Android system-audio capture via MediaProjection, and a pure-TypeScript VBAN codec. Interoperates with Voicemeeter and other VBAN endpoints.

Downloads

495

Readme

@parastud/react-native-vban

VBAN (VB-Audio Network) audio-over-IP for React Native / Expo. Stream audio to and from a PC running Voicemeeter (or any VBAN endpoint) over your local network — no server, just UDP.

  • Native receive — a UDP socket + AudioTrack playback run entirely on a native thread (with a large socket buffer), so you don't drop packets waiting on the JS bridge.
  • Native sendAudioRecord capture → VBAN packetization → UDP, also fully native and paced by the audio clock, so packets are evenly spaced.
  • Device (system) audio capture — capture the phone's own playback via Android MediaProjection + AudioPlaybackCapture (Android 10+).
  • Pure-TypeScript VBAN codec — encode/decode packet headers and convert PCM, usable on its own.

Platform: Android only for now. 16-bit PCM audio streams.

Install

npm install @parastud/react-native-vban

This is an Expo module — it autolinks. You need a development build (not Expo Go). After installing, rebuild the native app:

npx expo run:android

The module adds the FOREGROUND_SERVICE_MEDIA_PROJECTION permission and a mediaProjection foreground service. Make sure your app also declares RECORD_AUDIO and INTERNET.

Usage

Receive a stream (play it on the phone)

import { NativeVbanReceiver } from '@parastud/react-native-vban';

const rx = new NativeVbanReceiver();
await rx.start({ port: 6980 }, (stats) => {
  console.log(stats.streamName, stats.level, 'dropped', stats.dropped);
});
// ... later
await rx.stop();

Point Voicemeeter's outgoing VBAN stream at the phone's IP on that port.

Send audio to the PC

import { NativeVbanSender, isDeviceCaptureSupported } from '@parastud/react-native-vban';

const tx = new NativeVbanSender();
await tx.start(
  {
    host: '192.168.0.119', // the PC's IP
    port: 6980,
    streamName: 'Stream1',
    sampleRate: 48000,
    channels: 2,
    source: 'mic', // or 'device' for system audio (shows a capture consent dialog)
  },
  (level) => console.log('level', level),
);
// ... later
await tx.stop();

source: 'device' requires Android's MediaProjection consent (the OS "start recording/casting" dialog). Only audio is captured — nothing of the screen is read or sent — but the consent prompt is mandatory and cannot be suppressed.

Pure VBAN codec

import { encodePacket, decodeHeader, float32ToPcm, VbanDataType } from '@parastud/react-native-vban';

License

MIT