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

rawytjs

v1.0.0

Published

This node module allows you to get yt raw sources with javascript.

Downloads

10

Readme

rawytJS

This node module allows you to get yt raw sources with javascript.

Quick Start

Clone this repository and require it or just npm install as it is below. Refer to examples for more input.

npm i rawytjs

Usage

You can use this to get raw source links directly from googlevideo to embed, download or further process and/or streamline with any other application you want. The easiest way of getting started is to use the examples inside examples/examples.js.

Use cases can include downloading mp3, video, video with or without sound, minimal quality video, etc.

Examples

From examples.js:

var rawyt = require('rawytjs'),
  videoId = 'jNQXAC9IVRw';

/*
  Get YT Sources
 */

(async function() {
  var streams = await rawyt.getSource(videoId);
  console.log('** Get video sources');
  console.log(streams);
})();

Example result:

{
  '360p': 'https://.........googlevideo.com/........................',
  '240pna': 'https://..........googlevideo.com/.............................',
  '240pna_webm': 'https://......googlevideo.com/.............................'
}

iTag Reference

Use the value from the key:value pairing below to refer to your preferred format.

    /*
    iTag reference:
      *pna - No audio
      *pna60 - No audio, 60 fps video
      *p60 - 60 fps video
      *p3d - 3D
      *hdr - HDR
      *_flv - FLV
      *_webm - webM
      *_hls - HLS
      *_3gp - 3GP
      *k - Audio only
      *k_m4a - Audio only, m4a
     */
    5: '240p_flv',
    6: '270p_flv',
    17: '144p_3gp',
    18: '360p',
    22: '720p',
    34: '360p_flv',
    35: '480p_flv',
    36: '180p_3gp',
    37: '1080p',
    38: '3072p',
    43: '360p_webm',
    44: '480p_webm',
    45: '720p_webm',
    46: '1080p_webm',
    82: '360p3d',
    83: '480p3d',
    84: '720p3d',
    85: '1080p3d',
    92: '240p3d_hls',
    93: '360p3d_hls',
    94: '480p3d_hls',
    95: '720p3d_hls',
    96: '1080p_hls',
    100: '360p3d_webm',
    101: '480p3d_webm',
    102: '720p3d_webm',
    132: '240p_hls',
    133: '240pna',
    134: '360pna',
    135: '480pna',
    136: '720pna',
    137: '1080pna',
    138: '2160pna60',
    139: '48k_m4a',
    140: '128k_m4a',
    141: '256k_m4a',
    151: '72p_hls',
    160: '144pna',
    167: '360pna_webm',
    168: '480pna_webm',
    169: '1080pna_webm',
    171: '128k_webm',
    218: '480pna_webm',
    219: '144pna_webm',
    242: '240pna_webm',
    243: '360pna_webm',
    244: '480pna_webm',
    245: '480pna_webm',
    246: '480pna_webm',
    247: '720pna_webm',
    248: '1080pna_webm',
    249: '50k_webm',
    250: '70k_webm',
    251: '160k_webm',
    264: '1440pna',
    266: '2160pna60',
    271: '1440pna_webm',
    272: '4320pna_webm',
    278: '144pna_webm',
    298: '720pna60',
    299: '1080pna60',
    302: '720pna60_webm',
    303: '1080pna60_webm',
    308: '1440pna60_webm',
    313: '2160pna_webm',
    315: '2160pna60_webm',
    330: '144pna60_hdr',
    331: '240pna60_hdr',
    332: '360pna60_hdr',
    333: '480pna60_hdr',
    334: '720pna60_hdr',
    335: '1080pna60_hdr',
    336: '1440pna60_hdr',
    337: '2160pna60_hdr'

License

Distributed under MIT License. See license.md for more information.