2022-07-08 18:17:56 +00:00
# cobalt
2024-09-09 15:43:16 +00:00
best way to save what you love: [cobalt.tools ](https://cobalt.tools/ )
2023-10-28 12:51:20 +00:00
2024-09-09 15:43:16 +00:00
[💬 community discord server ](https://discord.gg/pQPt8HBUPu )
[🐦 twitter/x ](https://x.com/justusecobalt )
2024-05-17 08:18:05 +00:00
2023-10-28 12:51:20 +00:00
## what's cobalt?
2024-09-09 15:43:16 +00:00
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 invasive analytics***.
2023-10-28 12:51:20 +00:00
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 👀).
| service | video + audio | only audio | only video | metadata | rich file names |
2023-10-28 12:58:01 +00:00
| :-------- | :-----------: | :--------: | :--------: | :------: | :-------------: |
2024-03-05 14:21:57 +00:00
| bilibili.com & bilibili.tv | ✅ | ✅ | ✅ | ➖ | ➖ |
2024-02-21 00:50:48 +00:00
| dailymotion | ✅ | ✅ | ✅ | ✅ | ✅ |
2024-05-17 15:58:07 +00:00
| instagram posts & reels | ✅ | ✅ | ✅ | ➖ | ➖ |
2024-07-24 15:05:21 +00:00
| facebook videos | ✅ | ❌ | ❌ | ➖ | ➖ |
2024-05-29 07:12:52 +00:00
| loom | ✅ | ❌ | ✅ | ✅ | ➖ |
| ok video | ✅ | ❌ | ✅ | ✅ | ✅ |
2023-10-28 12:51:20 +00:00
| pinterest | ✅ | ✅ | ✅ | ➖ | ➖ |
| reddit | ✅ | ✅ | ✅ | ❌ | ❌ |
| rutube | ✅ | ✅ | ✅ | ✅ | ✅ |
2024-07-24 15:06:10 +00:00
| snapchat stories & spotlights | ✅ | ✅ | ✅ | ➖ | ➖ |
2023-10-28 12:51:20 +00:00
| soundcloud | ➖ | ✅ | ➖ | ✅ | ✅ |
| streamable | ✅ | ✅ | ✅ | ➖ | ➖ |
| tiktok | ✅ | ✅ | ✅ | ❌ | ❌ |
| tumblr | ✅ | ✅ | ✅ | ➖ | ➖ |
2023-10-30 17:31:20 +00:00
| twitch clips | ✅ | ✅ | ✅ | ✅ | ✅ |
2023-10-28 12:51:20 +00:00
| twitter/x | ✅ | ✅ | ✅ | ➖ | ➖ |
| vimeo | ✅ | ✅ | ✅ | ✅ | ✅ |
| vine archive | ✅ | ✅ | ✅ | ➖ | ➖ |
2024-05-29 07:12:52 +00:00
| vk videos & clips | ✅ | ❌ | ✅ | ✅ | ✅ |
2023-10-28 12:51:20 +00:00
| youtube videos, shorts & music | ✅ | ✅ | ✅ | ✅ | ✅ |
2023-10-28 12:55:47 +00:00
| emoji | meaning |
| :-----: | :---------------------- |
| ✅ | supported |
| ➖ | impossible/unreasonable |
| ❌ | not supported |
2023-04-09 02:49:51 +00:00
2023-10-28 12:51:20 +00:00
### additional notes or features (per service)
| service | notes or features |
2023-10-28 12:58:01 +00:00
| :-------- | :----- |
2024-05-17 15:58:07 +00:00
| instagram | supports reels, photos, and videos. lets you pick what to save from multi-media posts. |
2024-07-24 15:05:21 +00:00
| facebook | supports public accessible videos content only. |
2024-05-15 11:56:10 +00:00
| pinterest | supports photos, gifs, videos and stories. |
2023-10-28 12:51:20 +00:00
| reddit | supports gifs and videos. |
2024-07-24 15:06:10 +00:00
| snapchat | supports spotlights and stories. lets you pick what to save from stories. |
2024-05-29 07:15:10 +00:00
| rutube | supports yappy & private links. |
2023-10-28 12:51:20 +00:00
| soundcloud | supports private links. |
| tiktok | supports videos with or without watermark, images from slideshow without watermark, and full (original) audios. |
| twitter/x | lets you pick what to save from multi-media posts. may not be 100% reliable due to current management. |
| vimeo | audio downloads are only available for dash. |
| youtube | supports videos, music, and shorts. 8K, 4K, HDR, VR, and high FPS videos. rich metadata & dubs. h264/av1/vp9 codecs. |
2024-09-09 15:43:16 +00:00
## partners
cobalt is sponsored by [royalehosting.net ](https://royalehosting.net/?partner=cobalt ), all main instances are currently hosted on their network :)
2023-10-28 12:51:20 +00:00
## 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.
2024-03-06 13:11:11 +00:00
## cobalt license
2024-09-09 15:43:16 +00:00
for relevant licensing information, see the [api ](api/README.md ) and [web ](web/README.md ) READMEs.
2024-03-16 16:05:50 +00:00
## acknowledgements
### ffmpeg
2024-03-16 17:36:10 +00:00
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.
2024-03-16 16:05:50 +00:00
you can [support ffmpeg here ](https://ffmpeg.org/donations.html )!
#### ffmpeg-static
we use [ffmpeg-static ](https://github.com/eugeneware/ffmpeg-static ) to get binaries for ffmpeg depending on the platform.
2024-03-16 17:36:10 +00:00
you can support the developer via various methods listed on their github page! (linked above)
2024-03-16 16:05:50 +00:00
### youtube.js
2024-09-09 15:43:16 +00:00
cobalt relies on [youtube.js ](https://github.com/LuanRT/YouTube.js ) for interacting with the innertube api, it wouldn't have been possible without it.
2024-03-16 16:05:50 +00:00
2024-03-16 17:36:10 +00:00
you can support the developer via various methods listed on their github page! (linked above)
2024-03-16 16:05:50 +00:00
### many others
cobalt also depends on:
- [content-disposition-header ](https://www.npmjs.com/package/content-disposition-header ) to simplify the provision of `content-disposition` headers.
- [cors ](https://www.npmjs.com/package/cors ) to manage cross-origin resource sharing within expressjs.
- [dotenv ](https://www.npmjs.com/package/dotenv ) to load environment variables from the `.env` file.
- [esbuild ](https://www.npmjs.com/package/esbuild ) to minify the frontend files.
- [express ](https://www.npmjs.com/package/express ) as the backbone of cobalt servers.
- [express-rate-limit ](https://www.npmjs.com/package/express-rate-limit ) to rate limit api endpoints.
- [hls-parser ](https://www.npmjs.com/package/hls-parser ) to parse `m3u8` playlists for certain services.
- [ipaddr.js ](https://www.npmjs.com/package/ipaddr.js ) to parse ip addresses (for rate limiting).
- [nanoid ](https://www.npmjs.com/package/nanoid ) to generate unique (temporary) identifiers for each requested stream.
- [node-cache ](https://www.npmjs.com/package/node-cache ) to cache stream info in server ram for a limited amount of time.
- [psl ](https://www.npmjs.com/package/psl ) as the domain name parser.
2024-03-16 17:36:10 +00:00
- [set-cookie-parser ](https://www.npmjs.com/package/set-cookie-parser ) to parse cookies that cobalt receives from certain services.
2024-03-31 03:38:28 +00:00
- [undici ](https://www.npmjs.com/package/undici ) for making http requests.
2024-03-16 16:05:50 +00:00
- [url-pattern ](https://www.npmjs.com/package/url-pattern ) to match provided links with supported patterns.
2024-03-16 18:33:57 +00:00
...and many other packages that these packages rely on.