Skip to main content

About the project

RecallShot turns your screenshot folder into a searchable personal memory.

Find the detail, not the screenshot.

The problem

You took a screenshot of a receipt, an error message or a whiteboard weeks ago. Now you cannot find it. The filename means nothing and scrolling through hundreds of images wastes time.

What it does

RecallShot lets you search by what is inside the image. Everything runs on your own machine. There are no cloud calls and no telemetry.

How it works

  1. OCR. RapidOCR reads all visible text and keeps bounding box coordinates.
  2. Vision. Local Gemma 4 (gemma4:e4b through Ollama) assigns a category such as Receipt, Event, Article, Code or UI. It also extracts a title, tags, entities and a summary.
  3. Embeddings. EmbeddingGemma creates a 768 dimension vector for each image.
  4. Storage. SQLite stores the document, an FTS5 keyword index and the embedding.

Hybrid search

Keyword search from FTS5 and semantic search from cosine similarity run together. Reciprocal Rank Fusion merges both rankings. You find the right image even when your query shares no words with the text inside it.

Three ways to use it

  • Web UI. React and Vite dashboard with search, category tabs with live counts, drag and drop upload, thumbnail previews and an inspect drawer.
  • CLI. Commands are scan, search, show and categories. Output is text or JSON.
  • Agent skill. A portable SKILL.md lets a coding agent search your screenshot memory through the real recallshot CLI. The agent gets structured JSON back with private data already masked.

Example prompt to an agent: Search my screenshot memory for the Stripe API key error I saw last week.

Privacy by design

  • API binds to 127.0.0.1 only
  • Emails, phone numbers, API keys and card numbers are masked in every UI, API and CLI output
  • Original screenshots are never moved, changed or deleted
  • SHA-256 deduplication skips images already indexed

Works without AI too

If Ollama is not running, OCR indexing and keyword search still work. AI enrichment and semantic search turn on when the models are available.

Open source AI at the core

Gemma 4 and EmbeddingGemma are open weight models. They handle classification, extraction and semantic search. The full project is open source under the MIT license.

Tech stack

Python 3.11, FastAPI, SQLite with FTS5 and WAL mode, React 18, Vite, TypeScript, Ollama, Gemma 4, EmbeddingGemma, RapidOCR, Pydantic.

Quality

22 automated tests cover the database, FTS5 triggers, privacy masking, OCR fallback, search ranking and API contracts.

Try it

  1. Run ollama pull gemma4:e4b and ollama pull embeddinggemma
  2. Run pip install -e .
  3. Run cd frontend && npm install && npm run dev
  4. Open http://localhost:5173 and paste a screenshot folder path

Full code and setup guide: github.com/safwanahmadsaffi/recallshot

Built with

geminillamaollamagemma

AI tools

Coded withGitHub CopilotAntigravityQwen CodeGoogle AI StudioGemma 4 31BLlama 4 Maverick

Prize Categories Entered

  • Deepmind Google

    Best Use of Gemma 4

    Submitted
  • DigitalOcean

    Best Open-Source AI Project

    Submitted