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

@zgltyq/pi-minimax-image

v1.0.2

Published

Fallback image understanding for models without native vision support - provides understand_image tool via MiniMax API

Downloads

188

Readme

pi-minimax-image

MiniMax Image Understanding extension for pi coding agent — provides AI-powered image understanding as a fallback for models without native vision support.

⚠️ Use only when the model does not natively support image understanding. Many models (Claude, Gemini, GPT-4V) can process images directly via the read tool. This extension's understand_image tool routes images through the MiniMax API — use it only when the model you're running cannot natively see images.

Why This Package?

Built for image understanding fallback. While pi-web-access handles web search and URL fetching, this package specializes in AI-powered image analysis for models without built-in vision.

Use this package when you need to:

  • 📸 Analyze screenshots, diagrams, and UI mockups
  • 🔤 Extract text from images (OCR)
  • 🖥️ Transcribe code from screenshots
  • 🎨 Get AI descriptions of visual content
  • 📊 Analyze charts, graphs, and data visualizations

No conflicts. This extension only provides understand_image - it won't interfere with other packages like pi-web-access.

Features

  • 🖼️ Image Understanding - Analyze images with AI for descriptions, OCR, code extraction, and visual analysis
  • Easy Configuration - Configure via environment variables or pi settings files
  • 🔄 Hot Reload - Changes apply without restarting pi
  • 🎨 Rich UI - Custom rendering with progress indicators and status updates
  • Focused - Only adds image understanding, no bloat

Prerequisites

Installation

pi install npm:@zgltyq/pi-minimax-image

Or via git:

pi install git:github.com/zgltyq/minimax-understand-image

Configuration

Get Your API Key

  1. Visit MiniMax Coding Plan to subscribe
  2. Get your API key from API Key page

Environment Variable

export MINIMAX_API_KEY="your-api-key-here"

Auth File

Save to ~/.pi/agent/auth.json:

{
  "minimax": {
    "type": "api_key",
    "key": "your-api-key-here"
  }
}

Interactive Setup

/minimax-configure --key your-api-key-here

Usage

Image Understanding

understand_image({
  prompt: "What error is shown in this screenshot?",
  image_url: "https://example.com/error.png"
})

Image Sources

  • HTTP/HTTPS URLs: "https://example.com/image.jpg"
  • Local paths: "/home/user/image.png" or "./screenshot.jpg"

Example Use Cases

// Describe image content
understand_image({
  prompt: "Describe what's in this image in detail",
  image_url: "https://example.com/photo.jpg"
})

// Extract text (OCR)
understand_image({
  prompt: "Extract all text from this image",
  image_url: "./screenshots/document.png"
})

// Analyze UI/UX
understand_image({
  prompt: "Analyze this UI design and suggest improvements",
  image_url: "https://example.com/mockup.png"
})

// Code from screenshot
understand_image({
  prompt: "What code is shown in this screenshot? Transcribe it exactly.",
  image_url: "./error-screenshot.jpg"
})

// Analyze data visualizations
understand_image({
  prompt: "What trends and insights can you extract from this chart?",
  image_url: "./analytics.png"
})

Tool Reference

understand_image

| Parameter | Type | Required | Description | | --------- | ------ | -------- | ------------------------------------------------ | | prompt | string | ✓ | Question or analysis request (1-1000 characters) | | image_url | string | ✓ | Image URL or local file path |

Commands

| Command | Description | | -------------------- | -------------------------- | | /minimax-configure | Configure API key | | /minimax-status | Show configuration status |

Related Packages

  • pi-web-access - Web search, URL fetching, GitHub repos, YouTube videos, PDFs

Learn More

License

MIT