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

vue-streaming

v2.0.1

Published

Comprehensive Vue 3 streaming library with composables for WebSocket, Socket.IO, HLS, Laravel Echo, WebRTC, Point Cloud, and Data Streaming.

Downloads

212

Readme

vue-streaming


Features

  • useWebSocket - Native WebSocket with auto-reconnect and heartbeat
  • useSocketIO - Full Socket.IO support with rooms and events
  • useHLS - HTTP Live Streaming with quality control
  • useLaravelEcho - Pusher/Reverb broadcasting integration
  • useWebRTC - Peer connections with data channels for point cloud/detection
  • usePointCloud - LiDAR/3D point cloud streaming and decoding
  • useDataStream - Generic data streaming with buffering and deduplication
  • Components - StreamViewer, HLSPlayer, PointCloudViewer, WebRTCViewer
  • TypeScript - Full TypeScript support with exported types
  • Tree-shakeable - Import only what you need

Installation

`bash npm install vue-streaming

yarn

yarn add vue-streaming

pnpm

pnpm add vue-streaming `

Optional Dependencies

Install based on the features you need:

`bash

For HLS streaming

npm install hls.js

For Socket.IO

npm install socket.io-client

For Laravel Echo

npm install laravel-echo pusher-js

For Point Cloud visualization

npm install three @types/three

For DRACO compression

npm install draco3d `


Quick Start

WebSocket

`vue

`

Socket.IO

`vue

`

HLS Streaming

`vue

Laravel Echo

`vue

`

WebRTC with Point Cloud

`vue

`

Point Cloud Decoding

`vue

`

Data Streaming

`vue

`


Components

StreamViewer

Generic stream viewer for displaying real-time data:

vue <template> <StreamViewer :data="streamData" :max-lines="100" :auto-scroll="true" :show-timestamps="true" /> </template>

HLSPlayer

HLS video player with quality controls:

vue <template> <HLSPlayer src="https://example.com/stream.m3u8" :auto-play="true" :controls="true" :low-latency="true" @ready="onReady" @level-change="onQualityChange" /> </template>

PointCloudViewer

3D point cloud visualization (requires three.js):

vue <template> <PointCloudViewer :points="pointCloudData" :point-size="0.02" :auto-rotate="true" :show-grid="true" /> </template>

WebRTCViewer

WebRTC stream viewer with connection controls:

vue <template> <WebRTCViewer signaling-url="wss://example.com/signaling" :enable-point-cloud="true" :enable-detections="true" :auto-connect="true" @pointcloud="onPointCloud" @detections="onDetections" /> </template>


API Reference

useWebSocket

| Option | Type | Default | Description | | ---------------------- | -------------------- | -------- | ---------------------------- | | url | string | required | WebSocket URL | | protocols | string \| string[] | - | Subprotocols | | autoConnect | boolean | true | Auto-connect on mount | | autoReconnect | boolean | true | Auto-reconnect on disconnect | | maxReconnectAttempts | number | 5 | Max reconnection attempts | | reconnectDelay | number | 1000 | Initial reconnect delay (ms) | | heartbeatInterval | number | - | Heartbeat interval (ms) |

useSocketIO

| Option | Type | Default | Description | | ------------- | --------- | -------- | ------------------------ | | url | string | required | Server URL | | options | object | - | Socket.IO client options | | autoConnect | boolean | true | Auto-connect on mount |

useHLS

| Option | Type | Default | Description | | ---------------- | --------- | -------- | ----------------------------- | | url | string | required | HLS manifest URL | | autoPlay | boolean | true | Auto-play on attach | | lowLatencyMode | boolean | false | Enable low-latency mode | | startLevel | number | -1 | Initial quality (-1 for auto) |

useLaravelEcho

| Option | Type | Default | Description | | ------------- | ------------------------------------- | -------- | ---------------- | | broadcaster | 'pusher' \| 'socket.io' \| 'reverb' | required | Broadcaster type | | key | string | - | Pusher app key | | cluster | string | - | Pusher cluster | | wsHost | string | - | WebSocket host | | wsPort | number | - | WebSocket port |

useWebRTC

| Option | Type | Default | Description | | ------------------ | ---------------- | -------- | -------------------------- | | signalingUrl | string | required | Signaling server URL | | iceServers | RTCIceServer[] | STUN | ICE servers | | enablePointCloud | boolean | true | Enable point cloud channel | | enableDetections | boolean | true | Enable detection channel |

usePointCloud

| Option | Type | Default | Description | | ------------------ | ------------------ | -------- | --------------------- | | format | PointCloudFormat | 'auto' | Point cloud format | | maxPoints | number | - | Max points to decode | | downsampleFactor | number | 1 | Downsample factor | | dracoPath | string | - | Path to DRACO decoder |

useDataStream

| Option | Type | Default | Description | | ------------- | --------- | ------- | ------------------------ | | bufferSize | number | 1000 | Max buffer size | | throttleMs | number | - | Throttle interval | | deduplicate | boolean | false | Enable deduplication | | batchSize | number | - | Batch size for callbacks |


Legacy Support

The package still exports the legacy StreamPlayer component for backward compatibility:

`vue


License

MIT (c) Kerolos Zakaria