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

modrinth-manager

v1.0.0

Published

CLI tool for managing Modrinth mods and plugins

Readme

Modrinth Manager (mr)

A powerful CLI tool for managing Modrinth mods and plugins with automatic folder detection and configuration management.

Features

  • 🔍 Search mods/plugins on Modrinth with advanced filtering
  • 📥 Download mods/plugins by slug with automatic version selection
  • ⚙️ Project configuration with per-folder settings
  • 🎯 Smart version selection based on Minecraft version and loader
  • 📁 Automatic folder detection and creation
  • 🏷️ Support for all loaders (Fabric, Forge, NeoForge, Quilt, Paper, Spigot, Bukkit)

Installation

Option 1: Global npm installation (Recommended)

npm install -g modrinth-manager

Option 2: Local installation

npm install modrinth-manager

Option 3: Manual installation

Windows

# Using PowerShell (as Administrator)
.\install.ps1

# Or using batch file
install.bat

Linux/macOS

# Make script executable and run
chmod +x install.sh
./install.sh

Option 4: From source

git clone <repository-url>
cd modrinth-manager
npm install
npm run build
# Then use one of the manual installation methods above

Quick Start

  1. Initialize a project:

    mr init

    This will create a .modrinth.json configuration file and set up your project.

  2. Search for mods:

    mr search "fabric api"
  3. Download a mod:

    mr download fabric-api

Commands

mr init

Initialize a new Modrinth project in the current directory.

mr init

This will prompt you for:

  • Project type (mod/plugin)
  • Loader (Fabric, Forge, NeoForge, Quilt, Paper, Spigot, Bukkit)
  • Minecraft version
  • Folder names for mods/plugins

mr search <query>

Search for mods and plugins on Modrinth.

# Basic search
mr search "fabric api"

# Search with options
mr search "fabric api" --limit 20 --index downloads

Options:

  • -l, --limit <number>: Number of results (default: 10)
  • -i, --index <type>: Sort by relevance, downloads, follows, newest, updated

mr download <slug>

Download a mod or plugin by its slug.

# Download latest compatible version
mr download fabric-api

# Download specific version
mr download fabric-api --version 0.91.0+1.20.1

# Download with custom filters
mr download fabric-api --minecraft 1.20.1 --loader fabric --type release

Options:

  • -v, --version <version>: Specific version to download
  • -m, --minecraft <version>: Minecraft version filter
  • -l, --loader <loader>: Loader filter
  • -t, --type <type>: Version type (release, beta, alpha)
  • -f, --force: Force download even if folders don't exist

mr info <slug>

Get detailed information about a mod or plugin.

mr info fabric-api

mr config

Show current project configuration.

mr config

Configuration

The tool creates a .modrinth.json file in your project directory:

{
  "version": "",
  "type": "mod",
  "loader": "fabric",
  "minecraftVersion": "1.20.1",
  "modsFolder": "mods",
  "pluginsFolder": "plugins"
}

Examples

Setting up a Fabric modpack:

# Initialize project
mr init
# Choose: mod, fabric, 1.20.1

# Search for popular mods
mr search "inventory"

# Download essential mods
mr download fabric-api
mr download sodium
mr download lithium
mr download starlight

Setting up a Paper server:

# Initialize project
mr init
# Choose: plugin, paper, 1.20.1

# Search for plugins
mr search "economy"

# Download plugins
mr download vault
mr download essentialsx

Version Selection Logic

When downloading without specifying a version, the tool will:

  1. Filter versions by your configured Minecraft version
  2. Filter by your configured loader
  3. Filter by version type (release by default)
  4. Select the latest version that matches all criteria

Folder Structure

The tool expects and creates the following structure:

your-project/
├── .modrinth.json          # Configuration file
├── mods/                   # For mod projects
│   ├── fabric-api.jar
│   └── sodium.jar
└── plugins/                # For plugin projects
    ├── vault.jar
    └── essentialsx.jar

Error Handling

  • No config found: Run mr init first
  • Folder not found: Run mr init or use --force
  • No compatible version: Check your Minecraft version and loader settings
  • Download failed: Check your internet connection and try again

Contributing

This project is open source. Feel free to submit issues and pull requests.

License

MIT License - see LICENSE file for details.