Skip to content

cs-util-com/ScreenshotHistoryJs

 
 

Repository files navigation

Screenshot History Web App

Screenshot History is a browser-based, offline-capable web application designed to capture, process, and summarize desktop screenshots. It provides a searchable, Google Photos–style interface for managing screenshots and summaries, all while keeping data local for privacy.

Features

  • Continuous Screen Capture: Automatically captures screenshots at user-defined intervals.
  • Pixel Difference Check: Saves screenshots only if significant changes are detected.
  • OCR Integration: Extracts text from screenshots using Tesseract.js.
  • AI Summarization: Generates summaries of user activity using LangChain with support for OpenAI, Google Gemini, Anthropic Claude, and local models.
  • Searchable History: Enables keyword-based search through OCR text and summaries.
  • Data Retention: Automatically deletes old screenshots and summaries after a user-defined period (default: 90 days).
  • Offline Support: Works offline with IndexedDB and the File System Access API.
  • User-Friendly Interface: Dark mode, daily grouping, infinite scroll, and customizable settings.

Technologies Used

  • Frontend: HTML, Tailwind CSS, and vanilla JavaScript.
  • OCR: Tesseract.js (WebAssembly).
  • AI Summarization: LangChain with multiple model providers.
  • Storage: IndexedDB via Dexie.js.
  • File Management: File System Access API.
  • Offline Support: Service Worker and PWA capabilities.

Usage

  1. Access the App:
  2. Select a Folder:
    • Click the "Select Folder" button to choose a directory for storing screenshots and database files.
  3. Start Capturing:
    • Click the "Start Capture" button to begin capturing screenshots at regular intervals.
  4. Search and Summarize:
    • Use the search bar to find screenshots or summaries by keywords.
    • Summaries are generated every 30 minutes from OCR text.
  5. Adjust Settings:
    • Open the settings modal to customize image quality, diff threshold, retention period, OCR language, resolution, and AI model provider/API keys.
  6. Offline Usage:
    • Once loaded, the app works offline using locally stored screenshots and data.

AI Integration

  • Supported Models:

    • OpenAI (e.g., GPT-3.5 Turbo).
    • Google Gemini.
    • Anthropic Claude.
    • Local models (e.g., LLaMA).
  • Configuration:

    • Set API keys and model preferences in the settings modal.

Disclaimer

This project is provided as-is. It is a general-purpose tool and does not include domain-specific functionality. Use and modify as needed.

License

This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.8%
  • HTML 9.2%