# Repository Briefing: rixinhahaha/snip
> Source: https://repoforai.com/repo/rixinhahaha/snip (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/rixinhahaha/snip
- **Official Docs / Website**: https://snipit.dev
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: JavaScript
- **License**: MIT
- **Engineering Health**: B (54/100 · Maintenance 6/35 · Adoption 14/25 · Releases 14/20 · License 20/20)
- **Latest Release**: v1.3.14 (2026-05-07) — https://github.com/rixinhahaha/snip/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Self-Hosted, Local AI, MCP, CLI
- **Momentum**: 354 ★ total (+0 24h / +2 7d) · 32 forks
- **Topics**: `ai`, `annotations`, `electron`, `linux`, `macos`, `menu-bar`, `mermaid`, `ollama`, `screenshot`, `semantic-search`
- **When to Use**: Best for: macOS or Wayland Linux teams that want coding agents to submit diagrams, HTML previews, or screenshots for human review and receive actionable feedback in the same workflow. Skip if: You only need clipboard capture or a read-only preview, or your workflow requires Windows, a headless runner, or unattended review.

## Overview
```text
### Architecture & Core Mechanics
Snip is an Electron 33 menu-bar or tray app with two integration surfaces: the `snip` CLI and a Node-launched MCP server at `src/mcp/server.js`. The CLI reads Mermaid or HTML from stdin or takes an existing image, then opens a desktop review session. `render` and `open` wait for the reviewer and return JSON containing `status`, `edited`, `path`, and `text`; `status` distinguishes `approved` from `changes_requested`.

Mermaid.js 11 handles diagram rendering, and Fabric.js 7 supports the annotation editor. The project includes `binding.gyp` and a macOS native-module rebuild step, so a source build is not a JavaScript-only installation on that platform. `snip setup` configures Claude Code's rules, permissions, and `/diagram` skill. MCP gives compatible clients a tool interface without requiring the agent to issue shell commands; the visual review itself still takes place in the desktop app.

### Key Capabilities & Differentiators
An agent can submit a Mermaid sequence or ER diagram, render an HTML component preview, or ask for feedback on an existing screenshot. A reviewer can approve the result, write a note, or mark a specific region with an arrow, rectangle, or text. The standalone capture workflow adds region selection, window snapping, quick clipboard capture, cropping, blur, and AI segmentation. The local AI stack includes Transformers.js and SlimSAM (ONNX).

Saving to disk can trigger background naming, categorization, and tagging through a local Ollama vision model. The screenshot library can be searched by description, rather than just by filename. `snip transcribe` provides OCR, while `list`, `get`, `organize`, and `categories` cover library operations. This separates two workflows: blocking human review for an agent's current task and background organization for screenshots you want to find later.

### Trade-offs & Limitations
Compared with a standalone screenshot utility or an IDE's Mermaid preview, Snip's main advantage is returning the review decision and annotations to the agent that requested them. If all you need is a quick capture or a read-only preview, a separate Electron app and agent setup add overhead without much benefit. Blocking review is useful for an explicit approval gate, but it is a poor fit for unattended runs. MCP changes how a client invokes Snip; it does not establish a headless or remote review service.

Local AI organization avoids a cloud inference dependency for that feature, but the desktop app and Ollama must share workstation resources with the IDE and agent. Measure memory use and responsiveness with the model and concurrent tools you plan to run; there is no fixed VRAM target. Before team rollout, check what the connected agent sends onward, since locally captured images and review notes may still enter a hosted agent's context.

### Hardware & Deployment Guide
On macOS, install with `brew install --cask rixinhahaha/snip/snip` or use the Apple Silicon DMG. Linux releases provide x86_64 AppImage and amd64 deb packages; the stated platform requirements are macOS 14+ or Linux with Wayland. Source development requires Node.js 18+, `npm install`, `npm run rebuild` on macOS, and `npm start`.

For a rollout, verify capture and a complete review round-trip on the target desktop before configuring Ollama and the desired local vision model. Core features do not require a cloud API, but local inference still needs model assets and sufficient workstation resources. Releases v1.3.12 through v1.3.14 added capture aspect-ratio selection, editor cropping, and multicolor support, respectively. These are concrete workflow improvements, not evidence of broader platform support.
```

## Key Capabilities
```text
- Review contract: `snip render` and `snip open` wait for human input and return JSON with `status`, `edited`, `path`, and `text`.
- Rendering inputs: `snip render --format mermaid` and `snip render --format html` read from stdin; `snip open` accepts an existing image.
- MCP entrypoint: Node launches `src/mcp/server.js`, which exposes tools including `render_diagram`, `open_in_snip`, and `transcribe_screenshot`.
- Capture and editing: Region selection or window snapping, quick clipboard capture, cropping, arrows, text, blur, and AI segmentation.
- Local screenshot library: Ollama-backed background naming, categorization, and tagging, complemented by semantic search and OCR commands.
- Release progression: v1.3.12 added capture aspect-ratio selection, v1.3.13 added cropping, and v1.3.14 added multicolor support.
```

## Quick Start / Clone
```bash
brew install --cask rixinhahaha/snip/snip
```
