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

minimal-ai

v3.3.1

Published

Privacy-first CLI for running local LLMs — discover, configure, run, and chat

Readme

minimal-ai

Run local AI models on your machine using llama.cpp / oMLX + Pi coding agent.

node platform

What is minimal-ai?

minimal-ai is a simple utility that stitches together local LLM inference backends (llama.cpp, oMLX, ollama), with one of the best coding harnesses (Pi), and simplifies the complexity of configuring models to run on your personal hardware.

I built this as a utility for myself since I like exploring local models on my personal laptop (M4 Pro Mac 48 GB). I haven't tested this on Linux or Windows, or for NVIDIA GPUs. Open for contributions.

Recommended workflow:

  1. Download models from HuggingFace (or use models you already have from LM Studio, oMLX, etc.)
  2. Configure using the minimal-ai interactive setup (explains all the settings & flags)
  3. Start chatting and coding in Pi — minimal-ai handles the server lifecycle

Core Features

  • Download models from HuggingFace with a quant picker and RAM fit indicators
  • Auto-detects models from LM Studio, oMLX, Ollama, and HuggingFace cache
  • Guided model config — every setting gets a plain-language hint as you configure, with memory and context tradeoffs shown before you save
  • Model management — delete models from disk, remove configurations, reconfigure settings
  • Auto-detects MTP (multi-token prediction) and QAT (quantization-aware training) models, applies the correct flags
  • Three backends: llama.cpp (GGUF), oMLX (MLX on Apple Silicon), Ollama (GGUF + MLX)
  • Start / stop servers automatically for chat sessions

Quick start

1. Install

Open your terminal and run:

curl -fsSL https://raw.githubusercontent.com/eeshansrivastava89/minimal-ai/main/install.sh | bash

This installs minimal-ai and its prerequisite (Node.js via nvm if needed), then launches minimal-ai automatically. The first launch walks you through installing all core dependencies — llama.cpp runtime, Pi chat agent, and HuggingFace CLI, then drops you into the model picker to download a model and start chatting.

If you already have Node.js installed, you can also install with npm:

npm install -g minimal-ai@latest

The curl installer is recommended for first-time setup because it also verifies the global npm bin directory is on your PATH. The npm package itself does not run install scripts or mutate shell config during npm install.

2. Pick a model

The first time you run minimal-ai, it looks for models already on your machine. If it doesn't find any, you can download one directly from HuggingFace — pick "↓ GGUF from HuggingFace" and enter a repo ID (e.g. unsloth/Qwen3.5-4B-GGUF).

3. Start chatting

Pick a model from the list and press Enter. minimal-ai configures the rest and opens the Pi coding agent.

Everyday commands

minimal-ai              # model picker — pick, configure, download, or manage models
minimal-ai update       # update minimal-ai to the latest version
minimal-ai status       # see if any model is running
minimal-ai stop         # stop the running model
minimal-ai autotune <profile>   # oMLX: find the fastest settings for a model (speed tune)
minimal-ai autotune <profile> --dry-run   # preview the sweep plan without running it
minimal-ai uninstall    # remove minimal-ai

Recommended models

These are good starting points sorted by minimum RAM. All are available on HuggingFace — paste the repo ID into minimal-ai's GGUF download option.

| Model | Min RAM | GGUF (llama.cpp) | MLX | |-------|---------|------------------|-----| | Qwen 3.5 4B (Q4_K_M) | 8 GB | unsloth/Qwen3.5-4B-GGUF | mlx-community/Qwen3.5-4B-4bit | | Qwen 3.5 9B (Q4_K_S) | 16 GB | unsloth/Qwen3.5-9B-GGUF | lmstudio-community/Qwen3.5-9B-MLX-4bit | | Gemma 4 12B (Q4_K_XL) | 24 GB | unsloth/gemma-4-12B-it-qat-GGUF | mlx-community/gemma-4-12B-it-qat-4bit | | Gemma 4 26B (Q4_K_XL) | 32 GB | unsloth/gemma-4-26B-A4B-it-qat-GGUF | mlx-community/gemma-4-26b-a4b-4bit | | Qwen 3.6 35B (Q4_K_S) | 32 GB | unsloth/Qwen3.6-35B-A3B-GGUF | mlx-community/Qwen3.6-35B-A3B-4bit | | Qwen 3.6 35B (Q4_K_M) | 48 GB | unsloth/Qwen3.6-35B-A3B-GGUF | — | | Gemma 4 31B (Q4_K_XL) | 64 GB | unsloth/gemma-4-31B-it-qat-GGUF | mlx-community/gemma-4-31b-4bit | | Qwen 3.6 27B (Q4_K_M) | 64 GB | unsloth/Qwen3.6-27B-MTP-GGUF | mlx-community/Qwen3.6-27B-4bit |

Tip: When downloading GGUF, minimal-ai shows a quant picker with RAM fit indicators so you can choose the right quantization for your machine.

Platform support

  • macOS (Apple Silicon) — full support: llama.cpp (GGUF), oMLX (MLX), Ollama (GGUF + MLX). Requires Metal GPU (all Apple Silicon Macs have this). Virtual machines without GPU passthrough will fail on model load.
  • Linuxuntested. llama.cpp (GGUF) and Ollama should work in theory (oMLX is Apple Silicon exclusive), but the maintainer has only verified minimal-ai on Apple Silicon. Feedback and Linux CI contributions welcome.
  • Windows — not supported

Need help?

Run any command with --help:

minimal-ai --help

Development

git clone https://github.com/eeshansrivastava89/minimal-ai.git
cd minimal-ai
npm install
node bin/minimal-ai.mjs

License

Personal project by Eeshan Srivastava.