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

mie-webconf-app

v1.2.6

Published

This is a mediasoup based web conferencing app with socket.io for signalling

Readme

MIE WebConf App - Mediasoup Server Library

NPM Version

mie-webconf-app is a powerful and flexible mediasoup-based server library for building scalable video conferencing applications. It provides a ready-to-use signaling server with Socket.IO, optional Redis integration for multi-server deployments, and a pre-built client for demonstration purposes.

This package is designed to be integrated into your own Node.js applications, giving you a robust backend for your WebRTC projects with minimal setup.

Key Features

  • Ready-to-Use Mediasoup Server: A fully functional signaling server that handles mediasoup room and transport management.
  • Optional Redis Integration: Use Redis for multi-server scalability or fall back to in-memory storage for simple, single-instance setups.
  • Flexible Configuration: Configure the server using environment variables (.env) and a YAML file for advanced transport settings.
  • Graceful Shutdown: The server and all its mediasoup workers shut down cleanly, preventing orphaned processes.
  • Automatic Name Conflict Resolution: If two users join with the same name, the server automatically ensures uniqueness.
  • Rejoin Meetings: Allows users to leave and rejoin meetings.
  • Demo Client Included: Comes with a pre-built React client to demonstrate functionality out of the box.

Installation

Install the package using npm:

npm install mie-webconf-app

Quick Start: Running the Server

Create a file (e.g., index.js) in your project and add the following code:

const { startServer, stopServer } = require('mie-webconf-app');

// Start the server
startServer();

console.log('Mediasoup server is running.');
console.log('Access the demo client at http://localhost:5001');

// Implement a graceful shutdown
process.on('SIGINT', () => {
  console.log('Shutting down server...');
  stopServer().then(() => {
    console.log('Server has been stopped.');
    process.exit(0);
  });
});

Now, run your file:

node index.js

The server will start, and you can access the included demo client by navigating to http://localhost:5001 in your browser.

Configuration

You can configure the server by creating a .env file in the root of your project.

Environment Variables (.env)

Create a .env file and add the following variables as needed. You can use the included .env.example as a template.

| Variable | Default | Description | | ---------------- | ----------- | ---------------------------------------------------------------------------------------------------------- | | PORT | 5001 | The port on which the server will run. | | BACKEND_IP | 127.0.0.1 | The publicly accessible IP address of the server. Crucial for mediasoup to work correctly. | | REDIS_HOST | (none) | (Optional) The hostname of your Redis instance. If provided, Redis will be used for room management. | | REDIS_PORT | (none) | (Optional) The port for your Redis instance. | | REDIS_PASSWORD | (none) | (Optional) The password for your Redis instance. |

Advanced WebRTC Transport Configuration

For advanced users, you can configure mediasoup's WebRTC transport settings by creating a webrtc-transport.yaml file in your project's root directory. This allows you to fine-tune settings like ICE, UDP/TCP preferences, and more.

If this file is not found, the server will use default settings. An example is provided in the package.

How It Works

This package exports two main functions:

  • startServer(): Initializes and starts the Express server, Socket.IO signaling, and mediasoup workers.
  • stopServer(): Gracefully shuts down the server, closes all mediasoup workers, and disconnects from Redis if connected.

The package also serves a static build of a React client located in the client/build directory, which provides a ready-to-use interface for testing and demonstration.

License

This project is licensed under the ISC License.