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

hfget

v0.0.2

Published

A CLI tool for downloading models from HuggingFace with an interactive interface

Readme

hfget

A CLI tool for downloading models from HuggingFace with an interactive interface.

Installation

Only tested on linux/macos. Can't speak for windows.

As this is a typescript project, for now I only have it on npm. However, if there is enough interest I can start deploying for other package managers (e.g., pacman (aur), brew, etc.).

npm install -g hfget

Or for development:

git clone <repo>
cd hfget
npm install
npm run build
npm link

Quick Start

  1. Initialize configuration:
hfget init
  1. Edit ~/.config/hfget/config.json and add your HuggingFace token:
{
  "hfToken": "hf_xxxxxxxxxxxxx",
  "defaultDownloadDir": "/opt/llms/models",
  "defaultSearchLimit": 20,
  "storageStrategy": "organized"
}
  1. Run the tool:
hfget

Configuration

Location: ~/.config/hfget/config.json

Options:

  • hfToken - Your HuggingFace API token (get one at https://huggingface.co/settings/tokens)
  • defaultDownloadDir - Default directory for downloaded models (default: /opt/llms/models)
  • defaultSearchLimit - Maximum number of search results to fetch (default: 20)
  • storageStrategy - File organization method:
    • "organized" (default) - Store in owner/model-name/ subdirectories
    • "flat" - Store all files directly in download directory

View current config:

hfget config

Usage

Run hfget and follow the interactive prompts:

  1. Search for models by name or keyword
  2. Select a repository from filtered results
  3. Select one or more files to download (use Space to toggle selection)
  4. Specify download directory (or use default)
  5. Download with real-time progress tracking

Keyboard Shortcuts

Model selection (autocomplete):

  • Type to filter results in real-time
  • Arrow keys to navigate
  • Enter to select

File selection (multi-select):

  • Space - Toggle file selection
  • a - Toggle all files
  • i - Invert selection
  • Enter - Confirm and proceed

During download:

  • Ctrl+C - Cancel download (removes partial files)

File conflicts: When a file already exists, you can choose to skip, overwrite, or cancel.

Storage Organization

Organized strategy (default):

/opt/llms/models/
├── meta-llama/
│   └── Llama-3.2-1B/
│       ├── model-Q4_K_M.gguf
│       └── model-Q5_K_M.gguf
└── mistralai/
    └── Mistral-7B-v0.1/
        └── model-Q4_K_M.gguf

Flat strategy:

/opt/llms/models/
├── Llama-3.2-1B-Q4_K_M.gguf
├── Llama-3.2-1B-Q5_K_M.gguf
└── Mistral-7B-v0.1-Q4_K_M.gguf

Features

  • Interactive search with real-time filtering
  • Multi-file selection for batch downloads
  • Download progress bars with speed and ETA
  • Configurable file organization
  • Automatic cleanup of partial downloads on cancellation
  • File conflict detection and resolution
  • Support for GGUF, safetensors, and bin formats

Requirements

  • Node.js 16+
  • HuggingFace account and API token

Commands

  • hfget - Run the interactive downloader
  • hfget init - Create a new config file
  • hfget config - Show config file location and current settings

License

MIT