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

@visionengine/image-recognize

v1.0.4

Published

VisionEngine Image Recognition MCP Server - Analyze visual design elements and extract text from images

Readme

@visionengine/image-recognize

English 中文文档

VisionEngine Image Recognition MCP Server - Analyze visual design elements and extract text from images using advanced AI vision models.

Features

  • Visual Design Analysis - Analyze layout, colors, typography, composition and design principles
  • Text & Data Extraction - Extract text, tables, charts and structured data from images (OCR)
  • Flexible Prompts - Custom prompts or use intelligent defaults
  • Multiple Image Formats - Support for JPG, PNG, GIF, WebP

Installation

As MCP Server

Add to your MCP client configuration:

{
  "mcpServers": {
    "ve-image-recognize": {
      "type": "local",
      "command": "npx",
      "args": ["-y", "@visionengine/image-recognize@latest"],
      "transport": "stdio",
      "env": {
        "API_URL": "https://openrouter.ai",
        "API_KEY": "your_api_key_here",
        "WORKDIR": "./public"
      }
    }
  }
}

As NPM Package

npm install -g @visionengine/image-recognize

Configuration

Environment variables:

  • API_URL - VisionEngine API endpoint (default: https://openrouter.ai)
  • API_KEY - Your VisionEngine API key (required)
  • WORKDIR - Base directory for relative image paths (default: ./)

Tools

visual

Analyze visual design elements in an image.

Parameters:

  • imagePath (string, required) - Image file path (relative to WORKDIR or absolute)
  • prompt (string, optional) - Custom analysis prompt

Default Analysis:

  • Layout and composition
  • Color scheme and palette
  • Typography and text styling
  • Visual hierarchy
  • Design style and characteristics
  • Visual focal points
  • Design principles (contrast, balance, alignment, etc.)

Example:

// Using default prompt
await visual({
  imagePath: "./design.png"
});

// Using custom prompt
await visual({
  imagePath: "./design.png",
  prompt: "分析这个网页设计的配色方案和视觉层次"
});

text

Extract text content and data information from an image.

Parameters:

  • imagePath (string, required) - Image file path (relative to WORKDIR or absolute)
  • prompt (string, optional) - Custom extraction prompt

Default Extraction:

  • All text content (OCR)
  • Table data
  • Chart data
  • Numbers and statistics
  • Labels, titles, captions
  • Structured data

Example:

// Using default prompt
await text({
  imagePath: "./document.jpg"
});

// Using custom prompt
await text({
  imagePath: "./document.jpg",
  prompt: "提取图片中的所有表格数据,并转换为 Markdown 格式"
});

Usage Examples

MCP Client

Once configured as an MCP server, the tools are available through your MCP client:

> Use visual tool on screenshot.png
> Use text tool to extract data from invoice.jpg

Direct Usage

# Install globally
npm install -g @visionengine/image-recognize

# Set environment variables
export API_KEY="your_api_key"
export WORKDIR="./images"

# Run the server
ve-image-recognize

Development

Build

pnpm build

Local Testing

# Build first
pnpm build

# Run locally
node dist/index.js

Support

For issues and questions: