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

youtube-bpm-playlist

v0.1.6

Published

Create a youtube playlist for songs of certain bpm tempo

Downloads

4

Readme

YouTube BPM Playlist :tea:

Create a youtube playlist for songs of certain bpm tempo :rocket:

Before using it

For this program to work you need to have a valid API Key for YouTube. This is free and to obtain one you have to follow this procedure.

IMAGE ALT TEXT HERE

You can save your api key as an env variable YOUTUBE_DATA_API_3 or add it inline with the --apikey variable.

Youtube API has a daily 10.000 units limit per day, but each search "costs" 100 units. So for example each playlist will aprox. cost 2.500 units (searching about 25 song). This result that the app can be used about 4 times a day. More info: https://developers.google.com/youtube/v3/getting-started#quota

Install :hammer:

$ npm install -g youtube-bpm-playlist

Usage

$ ytb-bpm --bpm 110 --genre 44 --apikey "AIvaSyC0vcw1PS1Q17uLqvTKZAaO1IS9i9945gw"

Output

 __   __         _____      _            ____  ____  __  __         _             _ _     _   
 \ \ / /__  _   |_   _|   _| |__   ___  | __ )|  _ \|  \/  |  _ __ | | __ _ _   _| (_)___| |_ 
  \ V / _ \| | | || || | | | '_ \ / _ \ |  _ \| |_) | |\/| | | '_ \| |/ _` | | | | | / __| __|
   | | (_) | |_| || || |_| | |_) |  __/ | |_) |  __/| |  | | | |_) | | (_| | |_| | | \__ \ |_ 
   |_|\___/ \__,_||_| \__,_|_.__/ \___| |____/|_|   |_|  |_| | .__/|_|\__,_|\__, |_|_|___/\__|
                                                             |_|            |___/             
┌─────────┬─────────────────────────────────────────────────────┐
│ (index) │                       Values                        │
├─────────┼─────────────────────────────────────────────────────┤
│    0    │               'ALASKALASKA - Monster'               │
│    1    │             'Alter Bridge - Metalingus'             │
│    2    │     'American Authors - Everything Everything'      │
│    3    │           'Andrew McMahon - Synesthesia'            │
│    4    │          'Andrew Watt - Ghost In My Head'           │
│    5    │            'Anna Rose - Beautiful World'            │
│    6    │         'Another Bad Creation - Playground'         │
│    7    │       'Asher Roth ft. Cee-Lo - Be By Myself'        │
│    8    │           'Avenged Sevenfold - Afterlife'           │
│    9    │               'Beach House - Lazuli'                │
│   10    │             'Belle Histoire - My Dear'              │
│   11    │                'Big Star - Thirteen'                │
│   12    │         'Bleachers - Don\'t Take The Money'         │
│   13    │        'Blonde Redhead - Not Getting There'         │
│   14    │               'Blue October - Say It'               │
│   15    │              'Carter Vail - Melatonin'              │
│   16    │               'Charming Liars - Soul'               │
│   17    │       'Chunk! No, Captain Chunk! - All Star'        │
│   18    │        'Club Cheval - Young Rich & Radical'         │
│   19    │ 'December In Red ft. Jahred From Hed PE - Hadouken' │
│   20    │         'Delafe - Lo mas bonito del mundo'          │
│   21    │          'Delta Rae - My Whole Life Long'           │
│   22    │       'Don Omar ft. Beenie Man - Belly Danza'       │
└─────────┴─────────────────────────────────────────────────────┘
https://www.youtube.com/watch?v=mhapcdE2SJU&list=TLGGvF3phpHs6oEwNzA1MjAxOQ

Help

$ ytb-bpm --help

Usage: ytb-bpm [options]

Options:
  -V, --version          output the version number
  -b, --bpm [bpm]        Add the desired bpm (default: 110)
  -g, --genre [genre]    Enter the genre code number. Default is Rock (default: 38)
  -k, --apikey [apikey]  Enter a valid Youtube data api key.
  -h, --help             output usage information

Genres supported [-g param]

      2-Step : 818
      A capella : 700
      Acid : 1
      Acid Jazz : 701
      Acid Punk : 702
      Acoustic : 703
      Alternative : 704
      AlternRock : 705
      Ambient : 2
      Avantgarde : 706
      Bachata : 813
      Ballad : 707
      Banda : 814
      Bass : 708
      Bebob : 709
      Big Band : 710
      Bluegrass : 711
      Blues : 712
      Booty Bass : 3
      Breaks : 4
      Cabaret : 713
      Celtic : 714
      Cha-Cha : 817
      Chamber Music : 715
      Chanson : 716
      Chinese : 802
      Chorus : 717
      Christian : 816
      Christian Rap : 718
      Classical : 720
      Classic Rock : 719
      Club : 5
      Comedy : 721
      Country : 722
      Cult : 723
      Dance : 6
      Dancehall : 811
      Dance Hall : 724
      Darkwave : 725
      Death Metal : 726
      Deep House : 805
      Disco : 7
      Disco House : 8
      Dream : 727
      Drum & Bass : 9
      Drum Solo : 728
      Dubstep : 806
      Duet : 729
      Easy Listening : 730
      Electronic : 731
      Electronica : 809
      Epic Trance : 10
      Ethnic : 732
      Eurodance : 11
      Eurohouse : 12
      Euro-Techno : 13
      Experimental : 14
      Fast Fusion : 733
      Folk : 734
      Folklore : 735
      Folk-Rock : 736
      Freestyle : 15
      Funk : 737
      Fusion : 738
      Game : 739
      Gangsta : 740
      Garage : 16
      Goa Trance : 17
      Gospel : 741
      Gothic : 742
      Gothic Rock : 743
      Grunge : 744
      Happy Hardcore : 18
      Hardcore : 21
      Hard House : 19
      Hard Rock : 745
      Hard Trance : 20
      Hi-NRG : 22
      Hip-Hop : 23
      House : 24
      Humour : 746
      Industrial : 747
      Instrumental : 748
      Instrumental Pop : 749
      Instrumental Rock : 750
      International : 25
      Jazz : 751
      Jazz+Funk : 752
      J-Pop : 26
      Jungle : 27
      K-Pop : 753
      Latin : 28
      Latin Pop : 807
      Lo-Fi : 754
      Meditative : 755
      Merengue Mambo : 815
      Metal : 756
      Musical : 757
      National Folk : 758
      Native American : 759
      New Age : 760
      New Wave : 29
      Noise : 761
      Oldies : 762
      Old School : 30
      Opera : 763
      Other : 764
      Polka : 765
      Pop : 31
      Pop-Folk : 768
      Pop/Funk : 767
      Porn Groove : 769
      Power Ballad : 770
      Pranks : 771
      Primus : 772
      Progressive House : 32
      Progressive Rock : 773
      Progressive Trance : 33
      Psychedelic Rock : 774
      Psychedelic Trance : 34
      Punk : 775
      Punk Rock : 776
      Ragga : 36
      Rap : 777
      Rave : 778
      R&B : 35
      Reggae : 37
      Reggaeton : 810
      Retro : 779
      Revival : 780
      Rhythmic Soul : 781
      Rock : 38
      Rock & Roll : 782
      Salsa : 812
      Samba : 39
      Satire : 783
      Showtunes : 784
      Ska : 785
      Slow Jam : 40
      Slow Rock : 786
      Sonata : 787
      Soul : 41
      Sound Clip : 788
      Soundtrack : 789
      Southern Rock : 790
      Space : 791
      Speech : 792
      Swing : 793
      Symphonic Rock : 794
      Symphony : 795
      Tango : 796
      Tech House : 42
      Techno : 43
      Techno-Industrial : 798
      Thai : 803
      Top 40 : 799
      Trailer : 800
      Trance : 44
      Tribal : 45
      Trip-Hop : 46
      Urban : 808
      Vietnamese : 804
      Vocal : 801

Kind reminder

Remember to save you playlists so you don't overuse the api!