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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@streamerjs/streamerjs

v1.0.7

Published

Video stream layout manager

Downloads

5

Readme

Streamer JS

Video stream layout manager for OBS Studio and other streaming application.

We use web technologies to manage the layout of the video stream and control it remotely using a web browser.

Running the application

To run Streamer JS in your project, create a /scenes/ sub-folder and put your scenes HTML files there.

Then just run the following command:

npx @streamerjs/streamerjs

Scenes

Scenes are HTML files that are used to create the layout of the video stream. You can create multiple scenes and add them to OBS Studio as browser sources.

You can also create multiple files for different layers and group in folders per scene - ultimately, file organization is up to you.

Create a basic scene

Run the following command to create a basic scene:

npx @streamerjs/streamerjs create-scene my-scene.html

Streamer JS will create a basic scene in /scenes/ folder that has some basic HTML elements, CSS stylesheet and a JavaScript file that uses PouchDB synchronization with the control panel.

For further customization, you can modify the scene HTML, CSS and JavaScript to accomplish whatever you want.

Control Panel

To enable control panel, create a folder named /control/ in the root of the project and add HTML page with a control panel that uses the PouchDB to update the UI.

Create a basic control panel

To create a basic control panel file in /control/ folder, run the following command:

npx @streamerjs/streamerjs create-control-panel index.html

The page will include the control panel HTML, CSS and JavaScript files and will use PouchDB to synchronize with the scenes.

Help

To get help, run the following command:

npx @streamerjs/streamerjs --help

Additional Configuration

To configure the application, you need to create a file named config.json in the root of the project. This file can contain the following information:

{
  "port": 2525,
  "dbpath": "db"
}
  • port: The port where the web server will run
  • dbpath: The path where the database will be stored