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

@masvio/downloader

v1.0.2

Published

A simple, lightweight library to easily download files from MASV links

Readme

MASV Web Downloader

About

MASV Web Downloader uses the power of your web browser to download files of any size to a destination folder. It preserves folder structures and even supports empty folders.

Note: This package relies on showDirectoryPicker(), a Web API method that is currently only supported by Chromium-based browsers like Chrome or Edge. It does not work on Firefox or Safari.

Installation

yarn add @masvio/downloader

Usage

Downloading Files

1. Instantiate the Downloader

Each downloader is initialized with a MASV download link. A password may be required by the link owner.

Each download attempt requires a new Downloader instance.

import { Downloader } from "@masvio/downloader";

const downloader = new Downloader(masvLink, linkPassword);

await downloader.initialize();

2. Monitor Downloader Events

The Downloader emits statuses and events throughout the download process. Callback methods can be attached beforehand to monitor these events.

downloader.on(Downloader.States.Paused, () => {
  console.log("Received Downloader Status: Paused");
});

downloader.on(Downloader.States.Terminated, () => {
  console.log("Received Downloader Status: Terminated");
});

downloader.on(Downloader.DownloaderEvents.Progress, ({ data }) => {
  console.log("Received Downloader Event: Finished");
  console.log("Received data:", data.performanceStats);
});

downloader.on(Downloader.DownloaderEvents.Error, ({ data }) => {
  console.log("Received Downloader Event: Error");
  console.log("Received data:", data.performanceStats, data.error);
});

3. Retrieve the Download Directory

The showDirectoryPicker() method from Window interface allows users to select a directory for downloads. The method returns a FileSystemDirectoryHandle object, which is used for the download process.

Please refer to the MDN Web Docs on showDirectoryPicker() for more information.

HTML:

<button id="download">Download</button>

JavaScript:

const downloadButton = document.getElementById("download");
downloadButton.addEventListener("click", async () => {
  directoryHandle = await showDirectoryPicker({
    id: "MASV",
    mode: "readwrite",
    startIn: "downloads",
  });
});

4. Start Download

To download all contents from the MASV download link, call the start method with a FileSystemDirectoryHandle object.

await downloader.start(directoryHandle);

For more information, visit the MASV Developer Documentation page.