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

@santaz-io/unblind

v1.0.0

Published

Give DeepSeek eyes — self-healing vision skill for Claude Code. Routes images to Mimo/OpenAI. Zero deps.

Readme


✨ 这是什么

Unblind 是给 AI Agent 用的视觉后端——不是面向人类的 App,而是面向 Agent 的基础设施。把图片路由到视觉 API,返回文字描述,让没有多模态能力的模型(如 DeepSeek)能够"看图"。

和大多数视觉 skill 不同的是,它不是一层薄薄的 API 封装。每一步都有防御:

用户发图 → Phase 0 自检(静默)→ 魔数校验 → 缓存查询 → Provider → 返回描述
                                                       (配几个用几个,失败自动切)

🚀 快速开始

# AI 安装
"帮我安装 unblind skill,npx skills add Santazuki/unblind,然后运行 install.sh"

# 手动安装
npm install -g @santaz-io/unblind
unblind-install           # install.js 部署到 ~/.claude/skills/

npm 包 26 文件 80KB,install.js 只部署核心(scripts/、SKILL.md、README.md)。

首次运行自动检测缺失配置并修复。

开发者

git clone https://github.com/Santazuki/unblind.git && cd unblind
node --test tests/test-*.js   # 零依赖

⚙️ 工程特性

| 特性 | 说明 | |------|------| | 🩺 Phase 0 自愈 | 每次调用静默检查环境,配置缺失当场修复,不打断用户 | | 🔌 熔断 + 指数退避 | 每 Provider 独立 CircuitBreaker,5 次失败熔断 60s | | 💾 SHA256 持久化缓存 | 内容寻址,TTL + LRU 1000,跨进程命中,--no-cache 跳过 | | 🔀 Provider 故障转移 | 7 个 Provider 链式轮换,UNBLIND_PROVIDER_ORDER 自定义顺序 | | 🛡️ 魔数文件校验 | 读取文件头字节,拒绝伪装成图片的攻击文件 | | 🔒 安全沙箱 | 零 exec / child_process,API Key 不在任何输出中暴露 | | 📐 结构化输出 | --format json|yaml|csv,Agent 可编程调用 | | 💬 过程反馈 | 📖读取 → 🚀调用 → ✅完成,中英双语,自动检测系统语言 | | 📦 零依赖 | 只用 Node.js >= 18 内置模块,clone 即用 |

🔍 分析模式

| 模式 | 用途 | 示例 | |------|------|------| | describe | 通用描述 | unblind.mjs image.png | | ocr | 文字提取 | unblind.mjs scan.png ocr | | ui-review | UI/UX 评审 | unblind.mjs mockup.png ui-review | | chart-data | 图表数据 | unblind.mjs chart.png chart-data | | object-detect | 物体识别 | unblind.mjs photo.png object-detect | | compare | 多图对比 | unblind.mjs a.png b.png compare |

🎯 视觉模型

预置 7 个 Provider 入口(配几个 Key 用几个),新增只需加一行数据:

| Provider | 协议族 | 默认模型 | |----------|--------|------| | Mimo | Anthropic Messages | mimo-v2.5 | | OpenAI | OpenAI Chat Completions | gpt-4o | | Gemini | Google Generative AI | gemini-2.5-flash | | Ollama | OpenAI 兼容(本地) | llama3.2-vision | | Groq | OpenAI 兼容 | llama-4-vision | | Together | OpenAI 兼容 | Llama-4-Maverick | | Fireworks | OpenAI 兼容 | llama-v4 |

⌨️ CLI

unblind.mjs <image> [mode]           # 分析图片
unblind.mjs <a.png> <b.png> compare  # 多图对比
unblind.mjs <img> --format json      # 结构化输出
unblind.mjs --health                 # 连通性诊断
unblind.mjs --config                 # 查看配置
unblind.mjs --set-model <model>      # 切换模型
unblind.mjs --cache-stats            # 缓存统计
unblind.mjs --clear-cache            # 清空缓存

🏗️ 架构

v3.0 协议驱动架构——3 协议族,GenericProvider 唯一调度类,纯数据注册表。

CLI → orchestrator (config → image → cache → provider → result)
        → providers/ (GenericProvider → protocols 协议函数调度)
        → httpClient (fetch + 超时 + parseError 委托)
        → cache (SHA256 + TTL + LRU)
        → retry (指数退避 + CircuitBreaker)
        → errorHandler (ClientError / ServerError / NetworkError)

详见 架构设计 · Provider 优化

🧪 工程实践

  • 171 tests,169 pass,GitHub Actions 实跑
  • TDDnode --test 内置框架,先测试后实现
  • 安全审计:三轮 CLEAN,18 security tests
  • 零 npm 依赖:Node.js >= 18 内置模块
  • 双 Pipeline 多 Agent 协作:Part 1 (Architect → Developer + Reviewer) + Part 2 (SL → QA → RE ≤3 轮),PM 5 关口控制
  • CLAUDE.md 自动维护:阶段/重构/模块变化时即时同步

📄 DevFlow — 多 Agent 协作框架 · 实战案例

🤝 参与贡献

欢迎提 Issue 和 PR。

开发环境

git clone https://github.com/Santazuki/unblind.git
cd unblind
# 零依赖,直接可用

运行测试

node --test tests/test-*.js

需要 API Key 的测试在无 Key 时自动跳过。


English

Unblind is a vision backend for AI Agents — not a human-facing app, but infrastructure for Agents. It routes images to vision APIs and returns text descriptions, giving non-multimodal models the ability to "see."

Unlike most vision skills, it's engineered with defense at every layer: Phase 0 self-healing, circuit breaker retry, SHA256 persistent cache, magic byte validation, and a 3-round security audit (CLEAN). Built entirely with Claude Code and a custom dual-pipeline multi-agent workflow.

🚀 Quick Start

# AI install
"Install unblind with: npx skills add Santazuki/unblind, then run install.sh"

# Manual install
npm install -g @santaz-io/unblind
unblind-install           # install.js deploys to ~/.claude/skills/

npm package: 26 files, 80KB. install.js deploys only core files.

Developer:

git clone https://github.com/Santazuki/unblind.git && cd unblind
node --test tests/test-*.js   # zero deps

⚙️ Features

  • Phase 0 Self-Healing: Silent pre-flight check, auto-repairs config gaps
  • Circuit Breaker + Retry: Per-provider isolation, exponential backoff
  • SHA256 Persistent Cache: Content-addressed, TTL + LRU 1000, cross-process hit
  • Provider Failover: Chain rotation across 7 providers, auto fallback
  • Magic Byte Validation: Rejects disguised attack files
  • Security Sandbox: Zero exec, API key never exposed
  • Structured Output: --format json|yaml|csv
  • Zero Dependencies: Node.js >= 18 built-in modules only

🧪 By the Numbers

  • 171 tests, 169 pass, 0 fail — GitHub Actions
  • 7 pre-registered providers (use what you configure), 3 protocol families, 6 analysis modes
  • 15 modules, zero npm dependencies
  • 3-round security audit, 18 security tests, all CLEAN

License

MIT