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

discord-obs-stream

v0.0.2

Published

Stream OBS output to Discord.

Downloads

15

Readme

Discord OBS Stream

Stream OBS output to Discord. Works on all platforms.

Installation

Requirements

Download

You download this program using an npm command:

npm i -g discord-obs-stream

Configuration

Getting Token

You will need to obtain the token of a Discord account. I recommend doing this on an alt account. PLEASE KEEP YOUR TOKEN SECURE, as having the token basically means you're logged in as that user. If you leak it accidentally, reset your password.

Here are the codes to automatically grab it for you.

Setting Token and User

Running the program will tell you where the config file is located. This file contains 2 configuration fields:

  • token: The token you obtained from above
  • user: The user ID of your main account
  • url (optional): Don't touch if you are not sure what it does. Default: udp://@:1234?overrun_nonfatal=1&fifo_size=50000000
  • bitrate (optional): Bitrate of video. Default: 2500
  • fps (optional): FPS of video. Default: 30

OBS Studio

You will need to modify OBS recording settings for this to work. I recommend creating a new profile for it.

  1. Go to Settings -> Output -> Recording.
  2. Change Type to Custom Output (FFmpeg).
  3. Set FFmpeg Output Type to Output to URL.
  4. Input udp://127.0.0.1:1234 to File path or URL.
  5. Change Container Format to mpegts.
  6. Click Apply.

Running

Run discord-obs-stream in a console. If success, it will output Logged in as ${alt account}.

Before you start streaming on Discord, you need to click Start Recording in OBS Studio.

Commands

  • on: Start streaming
  • off: Stop streaming
  • reload: Reload config
  • stop: Exit the program