CoolFace
Apppublic

emoop/cobalt

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
App README

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

cobalt is a media downloader that doesn't piss you off. it's fast, friendly, and doesn't have any bullshit that modern web is filled with: *no ads, trackers, or paywalls*.

paste the link, get the file, move on. it's that simple. just how it should be.

supported services

this list is not final and keeps expanding over time. if support for a service you want is missing, create an issue (or a pull request ๐Ÿ‘€).

servicevideo + audioonly audioonly videometadatarich file names
bilibiliโœ…โœ…โœ…โž–โž–
blueskyโœ…โœ…โœ…โž–โž–
dailymotionโœ…โœ…โœ…โœ…โœ…
instagramโœ…โœ…โœ…โž–โž–
facebookโœ…โŒโœ…โž–โž–
loomโœ…โŒโœ…โœ…โž–
ok.ruโœ…โŒโœ…โœ…โœ…
pinterestโœ…โœ…โœ…โž–โž–
redditโœ…โœ…โœ…โŒโŒ
rutubeโœ…โœ…โœ…โœ…โœ…
snapchatโœ…โœ…โœ…โž–โž–
soundcloudโž–โœ…โž–โœ…โœ…
streamableโœ…โœ…โœ…โž–โž–
tiktokโœ…โœ…โœ…โŒโŒ
tumblrโœ…โœ…โœ…โž–โž–
twitch clipsโœ…โœ…โœ…โœ…โœ…
twitter/xโœ…โœ…โœ…โž–โž–
vimeoโœ…โœ…โœ…โœ…โœ…
vineโœ…โœ…โœ…โž–โž–
vk videos & clipsโœ…โŒโœ…โœ…โœ…
youtubeโœ…โœ…โœ…โœ…โœ…
emojimeaning
โœ…supported
โž–impossible/unreasonable
โŒnot supported

additional notes or features (per service)

servicenotes or features
instagramsupports reels, photos, and videos. lets you pick what to save from multi-media posts.
facebooksupports public accessible videos content only.
pinterestsupports photos, gifs, videos and stories.
redditsupports gifs and videos.
snapchatsupports spotlights and stories. lets you pick what to save from stories.
rutubesupports yappy & private links.
soundcloudsupports private links.
tiktoksupports videos with or without watermark, images from slideshow without watermark, and full (original) audios.
twitter/xlets you pick what to save from multi-media posts. may not be 100% reliable due to current management.
vimeoaudio downloads are only available for dash.
youtubesupports videos, music, and shorts. 8K, 4K, HDR, VR, and high FPS videos. rich metadata & dubs. h264/av1/vp9 codecs.

partners

cobalt is sponsored by royalehosting.net, all main instances are currently hosted on their network :)

ethics and disclaimer

cobalt is a tool for easing content downloads from internet and takes *zero liability*. you are responsible for what you download, how you use and distribute that content. please be mindful when using content of others and always credit original creators. fair use and credits benefit everyone.

cobalt is *NOT* a piracy tool and cannot be used as such. it can only download free, publicly accessible content. such content can be easily downloaded through any browser's dev tools. pressing one button is easier, so i made a convenient, ad-less tool for such repeated actions.

cobalt license

for relevant licensing information, see the api and web READMEs. unless specified otherwise, the remainder of this repository is licensed under AGPL-3.0.

acknowledgements

ffmpeg

cobalt heavily relies on ffmpeg for converting and merging media files. it's an absolutely amazing piece of software offered for anyone for free, yet doesn't receive as much credit as it should.

you can support ffmpeg here!

ffmpeg-static

we use ffmpeg-static to get binaries for ffmpeg depending on the platform.

you can support the developer via various methods listed on their github page! (linked above)

youtube.js

cobalt relies on youtube.js for interacting with the innertube api, it wouldn't have been possible without it.

you can support the developer via various methods listed on their github page! (linked above)

many others

cobalt also depends on:

  • โ€”content-disposition-header to simplify the provision of content-disposition headers.
  • โ€”cors to manage cross-origin resource sharing within expressjs.
  • โ€”dotenv to load environment variables from the .env file.
  • โ€”esbuild to minify the frontend files.
  • โ€”express as the backbone of cobalt servers.
  • โ€”express-rate-limit to rate limit api endpoints.
  • โ€”hls-parser to parse m3u8 playlists for certain services.
  • โ€”ipaddr.js to parse ip addresses (for rate limiting).
  • โ€”nanoid to generate unique (temporary) identifiers for each requested stream.
  • โ€”node-cache to cache stream info in server ram for a limited amount of time.
  • โ€”psl as the domain name parser.
  • โ€”set-cookie-parser to parse cookies that cobalt receives from certain services.
  • โ€”undici for making http requests.
  • โ€”url-pattern to match provided links with supported patterns.

...and many other packages that these packages rely on.