rixinhahaha/snip
Electron screenshot and diagram review for coding agents via CLI and MCP
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
snip render and snip open wait for human input and return JSON with status, edited, path, and text.snip render --format mermaid and snip render --format html read from stdin; snip open accepts an existing image.src/mcp/server.js, which exposes tools including render_diagram, open_in_snip, and transcribe_screenshot.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.
You only need clipboard capture or a read-only preview, or your workflow requires Windows, a headless runner, or unattended review.
Quick Start & Installation
brew install --cask rixinhahaha/snip/snipComparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| snip ★ | 354 | +2 | JavaScript | MIT | Electron screenshot and diagram review for coding agents via CLI and MCP |
| cc-switch | 159.1k | +1.7k | Rust | MIT | Tauri desktop manager for AI coding providers, local routing, and MCP config |
| herdr | 54.1k | +871 | Rust | Apache-2.0 | Rust terminal multiplexer for persistent, multi-machine coding-agent workspaces |
| claude-code-router | 38.5k | +101 | TypeScript | MIT | Local model gateway for routing coding agents across providers |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/rixinhahaha/snip.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about snip
How does an agent connect to Snip and get review feedback?
snip setup configures Claude Code rules, permissions, and the /diagram skill. The CLI accepts Mermaid or HTML on stdin and opens images for review. The MCP alternative launches src/mcp/server.js with Node. In either case, plan for a reachable desktop review session: the CLI review calls block until someone responds.Do I need a GPU, and how should I size a workstation?
Can a company deploy Snip internally or redistribute a modified build?
When is Snip a better fit than a screenshot utility or an IDE preview?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy