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

resource-save-script

v1.0.14

Published

HTTP server with auto-download capability

Readme

English | 中文

Resource Saving Script

A Node.js tool for local development that starts a local server while automatically fetching missing remote resource files.

Table of Contents

Installation

npm install -g resource-save-script

Usage

Once installed, use the h command in your terminal:

# Run on a custom port
h 8080

# Run on the default port 4000
h

You'll be prompted to enter the remote server URL:

→ Please enter the base URL for resources: https://your-remote-server.com

How It Works

The script monitors 404 requests on the local server. When a missing file is detected, it automatically downloads the file from the specified remote server to your local directory.

Usage Example

Let's say you want to debug a page from luckfunc.com locally:

1. Create and enter project directory

mkdir my-project
cd my-project

2. Download the main page

curl -o index.html https://luckfunc.com/

3. Start the script in your project directory

h
# Enter: https://luckfunc.com/

4. Access the page

Open your browser and visit http://127.0.0.1:4000/index.html

When the page loads, if it references local files like i18n.js that don't exist, the script will automatically download them from luckfunc.com to your local directory.

Terminal output will show download progress:

Missing file detected: /i18n.js
Download complete: /path/to/your/project/i18n.js (1234 bytes)

Refresh the page and all resources will load properly.

Use Cases

  • Local debugging of live websites
  • Setting up offline development environments
  • Bulk downloading of static resources