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

pi-glm-image-summary

v0.1.4

Published

Pi extension that intercepts image reads when using glm-4.7 and sends them to glm-4.6v for detailed analysis

Readme

pi-glm-image-summary

A pi extension that intercepts image reads when using non-vision GLM models and sends them to glm-4.6v for detailed analysis.

Why?

GLM text models (glm-4.6, glm-4.7, glm-4.7-flash) have no vision capabilities. GLM-4.6v does. This extension automatically detects when you're using a non-vision GLM model and intercepts image reads, sending them to glm-4.6v for comprehensive analysis.

Features

  • Automatic image interception: When using glm-4.7/glm-4.7-long, image file reads are automatically redirected to glm-4.6v for analysis
  • Comprehensive analysis: Extracts text content, visual elements, technical details, and more
  • Manual analysis command: /analyze-image <path> to manually analyze any image

Installation

Install globally:

pi install npm:pi-glm-image-summary

Or install for a specific project (writes to .pi/settings.json):

pi install -l npm:pi-glm-image-summary

To try it without installing:

pi -e npm:pi-glm-image-summary

Usage

Once installed, the extension loads automatically when you start pi:

pi --provider zai --model glm-4.7

Automatic Mode

When the extension detects:

  1. Current model is glm-4.7 or glm-4.7-long
  2. A file being read is an image (jpg, jpeg, png, gif, webp)

It will automatically spawn a subprocess with glm-4.6v to analyze the image and return a detailed summary.

Manual Analysis

Use the /analyze-image command to analyze any image:

/analyze-image ./screenshot.png

Supported Image Formats

  • JPEG (.jpg, .jpeg)
  • PNG (.png)
  • GIF (.gif)
  • WebP (.webp)

Configuration

The extension uses the ZAI provider for the vision model. Make sure you have proper API credentials configured.