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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@hypit/yt-dlp

v0.2.0

Published

`@hypit/yt-dlp` owns video download and its CLI contribution for the Hypit Distribution:

Readme

Fetching video with yt-dlp

@hypit/yt-dlp owns video download and its CLI contribution for the Hypit Distribution:

hypit download prepare
hypit download "https://example.com/watch?v=VIDEO_ID" --to references/source.mp4

The CLI creates destination directories, refuses existing output paths and probes the completed file. Add --json for the source URL, saved path and media properties. This operation opens no Runtime Profile and creates no Build.

Package boundary

  • isVideoUrl(value) recognizes HTTP and HTTPS links. Local paths, including Windows drive paths, remain file inputs.
  • downloadVideo(url, target) downloads one video to the given path. Its caller owns destination preparation and overwrite policy. The target extension must be .mp4, .mkv, .webm or .mov.

The downloader reads the locked runtime/pyproject.toml and runtime/uv.lock shipped by this same package. prepareVideoDownload() (download prepare) explicitly runs uv sync --frozen into <hostState>/programs/yt-dlp/<version>/.venv. downloadVideo() only invokes that prepared executable and refuses a missing environment. The caller's location and a repository services/ ancestor are irrelevant. uv is needed for preparation; ffmpeg must be on PATH for fetching, and the CLI uses ffprobe to report the saved media. The default upstream extras include the EJS solver in that locked environment. Fetch explicitly selects the calling Node executable, ignores user yt-dlp configuration/plugins, and disables updates and remote component acquisition. Fetching source media remains a network operation.

The request selects bv*+ba/b, with res:1080,vcodec:h264 format preferences and --no-playlist. Available source streams determine the result. It stages the download in the OS temporary directory, then moves the completed file to the target, copying on a cross-volume EXDEV error. Temporary files are removed when the operation ends. Download errors retain the tool's diagnostic output.

The package supplies download behavior, locked material, command arguments and reporting. It uses media-local to inspect the finished ordinary file and owns network acquisition itself. Production use is described in the Hypit Skill's Downloading a video from a link page. runtime/README.md covers direct invocation when a source needs additional yt-dlp options.