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

ivs-asc

v0.2.3

Published

Automatic Stream Configuration for AWS IVS

Readme

Automatic Stream Configuration for AWS IVS.

Use createClientConfiguration to generate a ClientConfiguration object by combining the user's hardware and software setup analysis with the desired streaming options. Use fetchStreamConfiguration to query the AWS IVS REST API for the optimal streaming configuration.

Automatic stream configuration helps users get started quickly and automatically improves the quality of streams over time. Instead of users manually choosing settings (e.g., bitrate, resolution, framerate) that are set once and rarely tweaked, automatic stream configuration considers current software settings, hardware configuration, and platform support every time the user starts a new stream. For example, when a user upgrades the setup (e.g., with a new GPU), installs a new GPU driver, or the destination starts to support a new codec (e.g., H.265/HEVC), automatic stream configuration reacts and improves the quality of the user's next stream.

AWS documentation at docs.aws.amazon.com.

Supported GPUs

  • Nvidia: Requires nvidia-smi
  • Apple silicon: No additional software required
  • AMD: PRs welcome for device_id and vendor_id heuristics

Installation

npm install ivs-asc

Usage

Create and print out the client configuration

import { createClientConfiguration, FetchOptions } from 'ivs-asc';

const options: FetchOptions = {
    authKey: 'authkey',
    video: {},
    canvases: [
        {
            canvas_height: 1080,
            canvas_width: 1920,
            framerate: {
                denominator: 1,
                numerator: 60
            },
            height: 1080,
            width: 1920
        }
    ]
}
createClientConfiguration(options).then(console.log);

Fetch optimal streaming configuration from IVS

import { createClientConfiguration, fetchStreamConfiguration, FetchOptions, IVSResponse } from 'ivs-asc';

async function automaticStreamConfiguration() {
    const options: FetchOptions = {
        authKey: 'authkey',
        video: {
            maxBitrateKbps: 4000,
            maxTracks: 3,
            supportedCodecs: ["h264", "h265", "av1"]
        },
        canvases: [
            {
                canvas_height: 1080,
                canvas_width: 1920,
                framerate: {
                    denominator: 1,
                    numerator: 60
                },
                height: 1080,
                width: 1920
            }
        ]
    }

    const clientConfiguration = await createClientConfiguration(options);
    const response: IVSResponse = await fetchStreamConfiguration(clientConfiguration);
    if (response.status?.result === 'error') {
        console.log(response.status.html_en_us);
    }
    else {
        console.log(response);
    }
}
automaticStreamConfiguration();

Special thanks to Streamrun, a cloud-based streaming server that offers features beyond what can be run on a single streaming device.