{"_id":"snippai","name":"snippai","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"snippai","version":"1.0.0","description":"SnipAI — AI Screen Assistant for Windows. Press hotkey, drag to select any screen region, get instant AI analysis. Free search via TinyFish (Monid).","author":{"name":"Rana3112"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Rana3112/snipai.git"},"homepage":"https://github.com/Rana3112/snipai#readme","keywords":["ai","screen-capture","snipping-tool","vision","groq","openrouter","nvidia","monid","tinyfish"],"engines":{"node":">=14"},"bin":{"snippai":"bin/snippai.js","snipai":"bin/snippai.js"},"scripts":{"postinstall":"node ./scripts/postinstall.js"},"preferGlobal":true,"gitHead":"2f651430d4a28635d61ec8f722489001bd7c5593","_id":"snippai@1.0.0","bugs":{"url":"https://github.com/Rana3112/snipai/issues"},"_nodeVersion":"24.14.0","_npmVersion":"11.8.0","dist":{"integrity":"sha512-n48KfX9fenX9njKVzvUiHs/Wrgv2R7Hz+FeKPaxw7BM1wNFMjnZefb2pYjHcv4IPqIea+HuJDXz8iSG17q7VyQ==","shasum":"87b504c4d4d924447d80679429f11bc04aaa0093","tarball":"https://registry.npmjs.org/snippai/-/snippai-1.0.0.tgz","fileCount":147,"unpackedSize":907246,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGVm1yeNMYrhEgpWcvLHLEaeFTPyNkLhXjneGfwDz7OVAiA6yWoVe5s2Q17v09+eAuivOmmd38LMgAdnKOvOeoqVKw=="}]},"_npmUser":{"name":"utkarsh3112","email":"utkarshrana40@gmail.com"},"directories":{},"maintainers":[{"name":"utkarsh3112","email":"utkarshrana40@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/snippai_1.0.0_1787936904116_0.995080475667887"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-28T17:08:23.889Z","1.0.0":"2026-08-28T17:08:24.241Z","modified":"2026-08-28T17:08:24.677Z"},"maintainers":[{"name":"utkarsh3112","email":"utkarshrana40@gmail.com"}],"description":"SnipAI — AI Screen Assistant for Windows. Press hotkey, drag to select any screen region, get instant AI analysis. Free search via TinyFish (Monid).","homepage":"https://github.com/Rana3112/snipai#readme","keywords":["ai","screen-capture","snipping-tool","vision","groq","openrouter","nvidia","monid","tinyfish"],"repository":{"type":"git","url":"git+https://github.com/Rana3112/snipai.git"},"author":{"name":"Rana3112"},"bugs":{"url":"https://github.com/Rana3112/snipai/issues"},"license":"MIT","readme":"# SnipAI — AI Screen Assistant for Windows\n\nPress a hotkey → drag to select any region of your screen (or highlight text) → get instant AI analysis in a floating chat popup. Supports every major AI provider.\n\n---\n\n## One-Command Install\n\n**Windows (PowerShell) — recommended:**\n```powershell\npowershell -ExecutionPolicy Bypass -c \"irm https://raw.githubusercontent.com/Rana3112/snipai/main/install.ps1 | iex\"\n```\n\n**Any OS with Node.js — `npm` / `npx`:**\n```bash\nnpm i -g snippai   # or: npm i -g snipai\nsnippai            # or: snipai  — auto-installs on first run, then launches\n# without global install:\nnpx snippai\n```\n\n**Any OS with Python — `pip` / `pipx`:**\n```bash\npip install snippai   # or: pip install snipai\nsnippai               # or: snipai\n# isolated (recommended):\npipx install snippai\n# or run without install:\npip install git+https://github.com/Rana3112/snipai.git\n```\n\nAll three do the same:\n- Installs Python 3.11 (via winget) if missing (PowerShell/npm path)\n- Installs Git if missing\n- Clones SnipAI into `%LOCALAPPDATA%\\SnipAI`\n- Creates an isolated `.venv` and `pip install -r requirements.txt`\n- Adds `snipai`/`snippai` command to `PATH`\n- Creates Desktop and Start Menu shortcuts + autorun\n\nAfter install, the **Setup Wizard** opens automatically. Add a free [Groq API key](https://console.groq.com/keys) (no credit card required) and you're ready to go.\n\n---\n\n## Manual Installation (Step-by-Step)\n\n### Requirements\n\n| Requirement | Version | Notes |\n|---|---|---|\n| Windows | 10 / 11 | 64-bit |\n| Python | 3.10 or newer | [python.org](https://python.org) |\n| Git | Any | [git-scm.com](https://git-scm.com) |\n\n### Steps\n\n**1. Clone the repository**\n\n```cmd\ngit clone https://github.com/Rana3112/snipai.git\ncd snipai\n```\n\n**2. Create a virtual environment**\n\n```cmd\npython -m venv .venv\n.venv\\Scripts\\activate\n```\n\n**3. Install dependencies**\n\n```cmd\npip install -r requirements.txt\n```\n\n**4. Run SnipAI**\n\n```cmd\npython -m snipai\n```\n\nThe Setup Wizard opens on first run. Complete it to configure your API key, hotkeys, and theme.\n\n---\n\n## Getting an API Key (Free)\n\nSnipAI works with **any** AI provider. The easiest free option:\n\n| Provider | Free Tier | Sign-up |\n|---|---|---|\n| **Groq** | Yes — no credit card | [console.groq.com/keys](https://console.groq.com/keys) |\n| **NVIDIA NIM** | Yes — no credit card | [build.nvidia.com](https://build.nvidia.com) |\n| OpenRouter | Free models available | [openrouter.ai/keys](https://openrouter.ai/keys) |\n| OpenAI | Pay-per-use | [platform.openai.com](https://platform.openai.com) |\n| Anthropic | Pay-per-use | [console.anthropic.com](https://console.anthropic.com) |\n| Google Gemini | Free tier available | [aistudio.google.com](https://aistudio.google.com) |\n\n---\n\n## Usage\n\n### Capture a Screen Region\n\n1. Press **Ctrl + Shift + Space** (default)\n2. Your screen dims — drag to draw a rectangle over anything\n3. Release — the AI response popup appears instantly\n4. Ask follow-up questions in the chat input\n\n### Grab Selected Text\n\n1. Highlight any text in any app\n2. Press **Ctrl + Alt + G** (default)\n3. SnipAI analyzes the selected text\n\n### Other Features\n\n| Feature | How to use |\n|---|---|\n| **Multi-snip stack** | Tray → \"Add snip to stack\" multiple times → \"Analyze stack\" |\n| **Region watch** | Tray → \"Watch a region\" — alerts you when the region changes |\n| **History** | Tray → \"History\" or the clock icon in the popup |\n| **Settings** | Tray → \"Settings\" or the gear icon in the popup |\n\n---\n\n## Settings\n\nOpen **Settings** from the system tray icon or the gear icon inside the chat popup.\n\n### Hotkeys Tab\nClick a hotkey field, then press the key combination you want to use. Changes apply after restarting SnipAI.\n\n### Theme Tab\nChoose from 5 presets (Midnight, Lavender, Forest, Sunset, Rose) or pick a custom accent color. The preview updates live.\n\n### Providers Tab\n- Paste API keys for any provider — the row glows green when active\n- Click **Test** next to any key to verify it works before saving\n- **Custom Providers**: add any OpenAI-compatible endpoint (Ollama, LM Studio, Together, etc.)\n- **Fallback Order**: reorder providers — SnipAI automatically switches when one rate-limits you\n\n---\n\n## Architecture\n\n```\n┌─────────────────────────────────┐    HTTPS    ┌────────────────────────────┐\n│   DESKTOP CLIENT (Python)       │ ──────────> │   BACKEND (FastAPI)        │\n│                                 │             │                            │\n│  PySide6 UI                     │             │  Provider router           │\n│  ├─ Setup Wizard (first run)    │             │  ├─ OpenAI                 │\n│  ├─ Capture overlay (mss)       │             │  ├─ Anthropic              │\n│  ├─ Response Window (chat)      │             │  ├─ Google Gemini          │\n│  ├─ Settings Panel              │             │  ├─ Groq / NVIDIA / etc.   │\n│  └─ System Tray                 │             │  └─ Web search pipeline    │\n│                                 │             │                            │\n│  Config: ~/.snipai/config.json  │             │  Stateless — your API key  │\n│  History: ~/.snipai/history.db  │             │  is never stored server-side│\n└─────────────────────────────────┘             └────────────────────────────┘\n```\n\nYour API keys are sent with each request and **never stored** on the server.\n\n---\n\n## Installer Options\n\nThe `install.ps1` script accepts optional flags:\n\n```powershell\n# Install without adding SnipAI to Windows startup\n.\\install.ps1 -NoStartup\n\n# Install without creating Desktop / Start Menu shortcuts\n.\\install.ps1 -NoShortcuts\n\n# Update an existing installation (pull latest code + reinstall deps)\n.\\install.ps1 -Update\n```\n\n---\n\n## Uninstall\n\n```powershell\n# Remove app files\nRemove-Item -Recurse -Force \"$env:LOCALAPPDATA\\SnipAI\"\nRemove-Item -Recurse -Force \"$env:LOCALAPPDATA\\Programs\\snipai\"\n\n# Remove startup registry entry\nreg delete \"HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\" /v SnipAI /f\n\n# Remove shortcuts\nRemove-Item \"$env:USERPROFILE\\Desktop\\SnipAI.lnk\" -ErrorAction SilentlyContinue\nRemove-Item \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\SnipAI.lnk\" -ErrorAction SilentlyContinue\n\n# Remove config and history (optional — permanently deletes your snip history)\nRemove-Item -Recurse -Force \"$env:USERPROFILE\\.snipai\"\n```\n\n---\n\n## For Developers\n\n### Running from source\n\n```powershell\ngit clone https://github.com/Rana3112/snipai.git\ncd snipai\npython -m venv .venv\n.venv\\Scripts\\activate\npip install -r requirements.txt\npython -m snipai\n```\n\n### Running the backend locally\n\n```powershell\ncd backend\npip install -r requirements.txt\npython -m uvicorn main:app --reload --port 8000\n```\n\nTo point the desktop client at your local backend:\n\n```powershell\n$env:SNIPAI_BACKEND_URL = \"http://localhost:8000\"\npython -m snipai\n```\n\n### Building the .exe\n\n```powershell\npython build.py\n# Output: dist\\SnipAI.exe\n```\n\n### Deploying the backend (Railway)\n\n```bash\ncd backend\nrailway login\nrailway up\n```\n\n---\n\n## File Locations\n\n| Path | Purpose |\n|---|---|\n| `%LOCALAPPDATA%\\SnipAI\\` | App files (installed by installer) |\n| `~\\.snipai\\config.json` | User config (provider, hotkeys, theme) |\n| `~\\.snipai\\history.db` | SQLite history of all snips |\n| `~\\.snipai\\snipai.log` | Log file for troubleshooting |\n\n---\n\n## Troubleshooting\n\n**Hotkey doesn't work**\n- Another app (IME, AutoHotkey, language switcher) may own that shortcut\n- Open Settings → Hotkeys → choose a different combination\n- Check `~\\.snipai\\snipai.log` for `RegisterHotKey failed` errors\n\n**\"No providers configured\" error**\n- Open Settings → Providers → paste at least one API key → Save Changes\n\n**Popup doesn't appear**\n- Check the system tray — SnipAI icon should be visible\n- Try tray menu → \"Snip now\" to test without the hotkey\n- Check `~\\.snipai\\snipai.log` for errors\n\n**Backend connection error**\n- The hosted backend may be sleeping (free tier cold start ~30 sec)\n- Wait 30 seconds and try again, or run the backend locally (see above)\n\n---\n\n## Stack\n\n| Layer | Technology |\n|---|---|\n| Desktop UI | PySide6 (Qt for Python) |\n| Screenshot | mss (multi-monitor screen capture) |\n| Global hotkeys | Win32 RegisterHotKey (native) |\n| HTTP client | httpx |\n| Backend | FastAPI + uvicorn |\n| AI providers | openai SDK, anthropic SDK, google-genai SDK |\n| Distribution | PyInstaller (.exe) |\n\n---\n\n## License\n\nMIT — free to use, modify, and distribute.\n","readmeFilename":"README.md","_rev":"1-e2e76d1abbb7e9d33c325edeb3a765b6"}