Logo Screencap

Screencap

Cộng đồng
yahorbarkouski

To remember what happened yesterday, share progress and break addictions. With E2EE social publishing, local LLM classification, and MCP support. Activity tracking

Nhà phát hànhyahorbarkouski
Kho mãscreencap
Ngôn ngữTypeScript
Bản fork
9
Sao
92
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Giấy phépMIT
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Screencap cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    92 sao và 9 bản fork từ kho mã được liên kết.

Screencap

To understand where your day went

A macOS desktop app that captures screenshots, windows and apps (both background and foreground) on a schedule and transforms them into a timeline, daily summaries, project milestones, and addiction tracking. Screencap answers the questions like:

  • What did I actually do today?
  • How long did I really work?
  • Am I spending too much time on Chess?
  • What progress did I make on my project?
  • What actual progress on project X has been made since September?

The idea behind this opensource is to inspire as many forks as possible. The project is fully free to use, encouraging everyone to customise and build their own Screencaps. Project started as a background project tracker, as we all tend to have zero-to-little screenshots from projects we worked on for months. Then addiction tracker came in, Spotify background context, End Of Day flow, and the activity popup.

Download · Homebrew Tap · Changelog · Security · Local LLM


Install

Homebrew

bash
brew install --cask yahorbarkouski/tap/screencap

Or, if you prefer to add the tap first:

bash
brew tap yahorbarkouski/tap
brew install --cask screencap

Features Summary

Timeline

Timeline view

Time period (day), visualized as a stream of events

  • Each card is an event — multiple captures with the same context and similar pixels merge into one time window
  • Rich context extraction — app name, window title, browser URL, media playing, and per-app lower contexts like VS Code workspace
  • Fully editable — relabel events, dismiss captures, copy screenshots, create per-app or per-website automation rules, mark as progress or addiction (by default done automatically via llms)

Day Wrapped

The tray widget "what happened today?" with quick actions and different views available.

Apps

Apps View - see which apps and websites dominated each time slot

Categories

Categories - what categories dominated

Addictions

Addictions - confirmed signals highlighted

Quick actions:

  • Capture now — trigger an immediate capture
  • Capture project progress — save a milestone with a caption (screenshots active window and waits for a comment. would want to double-down and add loom-like view support one day)

Journal

Daily journal

To turn your day into a narrative

  • Dayline visualization — see your entire day at a glance with category colors
  • Breakdown metrics — active time, focus percentage, longest streak, top apps/sites/projects
  • End of Day — optional LLM-powered daily recap (or the one from End of Day flow below)
  • Manual journaling — write reflections, embed event screenshots, create custom sections

End of Day Flow

A guided ritual to close your day intentionally, guides you through:

  1. Summary — metrics and dayline visualization
  2. Progress Review — confirm or promote potential milestones
  3. Addictions Review — acknowledge or dismiss flagged events
  4. Write — compose custom sections with embedded event screenshots
Summary
End of Day Summary
active time, focus, progress milestones, addiction episodes.
Write
End of Day Write
to compose with embedded screenshots and custom sections.

Addictions

Define behaviors you want to track, then measure. Bullet chess in my case:) But is thought for games and porn too, so tricky events are well-covered.

OverviewExample: Speed Chess
Addiction journalSpeed Chess Addiction
Calendar heatmap, streak counter, and episode timeline. See patterns across weeks.Track specific behaviors like bullet chess. The AI detects candidates, you confirm episodes.
  • Create rules — define what counts as an addiction
  • AI detection — the LLM surfaces candidates based on content (either image OCR or image itself + Accessibility context)
  • Calendar view — see patterns across weeks
  • Streak tracking — visualize consecutive clean days
  • Episode timeline — drill into specific incidents with screenshots

Project Progress

Project progress

A dedicated timeline for milestones and momentum.

  • Automatic detection — AI identifies progress-worthy captures
  • Manual milestones — ⌘⇧P to capture and caption a moment
  • Git integration — link local repositories to see commits alongside work sessions
  • Multi-project filtering — track progress across all projects or focus on one

Context Providers

Screencap extracts rich context from your active window:

ProviderWhat it captures
Native macOS APIsFrontmost app, window title, fullscreen state
SafariCurrent URL, page title
Chromium browsersCurrent URL, page title (Chrome, Arc, Brave, Edge, etc.)
SpotifyTrack name, artist, album art
Cursor/VS CodeWorkspace path, project name

With accessibility + automation permissions, we can get pretty much precise context

LLM Classification

When enabled, events go through a multi-step classification pipeline:

  1. Cache reuse — instant match by fingerprint + context
  2. Local retrieval — match against your own history
  3. Local LLM — Ollama, LM Studio, or any OpenAI-compatible server
  4. Cloud text — OpenRouter with context + OCR (no images)
  5. Cloud vision — OpenRouter with screenshots (if enabled)
  6. Fallback — baseline classification from context alone

Classification output:

  • Category — Work, Study, Leisure, Social, Chores, Unknown
  • Project — detected project name
  • Caption — human-readable description
  • Addiction candidate — potential matches against your rules
  • Progress detection — milestone-worthy content

Automation Rules

Fine-grained control over capture and classification:

RuleEffect
Skip captureDon't screenshot this app/website at all
Skip AICapture locally but never send to LLM
Force categoryAlways assign Work/Study/etc.
Force projectAlways tag captures with a project

Create rules from any event card or in Settings->Automation.


Privacy & Security

Local-first overall, but for LLM classification both local and remote (openrouter/openai) options are available.

What stays local

  • SQLite database under ~/Library/Application Support/Screencap/
  • All screenshots (thumbnails + originals)
  • Settings and encryption keys (Keychain-encrypted)

What can go to the network (opt-in)

FeatureData sentWhere
Cloud AIContext + OCR textOpenRouter/OpenAI
Cloud VisionScreenshot imagesOpenRouter/OpenAI (if enabled)
Auto-updatesVersion checkGitHub Releases

Install

Requirements

  • macOS 13+ (Ventura or later)
  • Screen Recording permission (required)
  • Accessibility permission (recommended)
  • Automation permissions (recommended)

Download

  1. Grab the latest DMG from Releases
  2. Open the DMG and drag Screencap.app to Applications
  3. Launch — the onboarding wizard guides you through permissions and setup

Permissions

PermissionPurposeRequired?
Screen RecordingCapture screenshotsYes
AccessibilityRead window titlesRecommended
Built-in macOS APIsIdentify focused windowEnabled automatically
Automation -> BrowsersRead URLs from Safari/Chrome/etc.Recommended
Automation -> Media appsCapture Spotify track infoOptional

First Run

The onboarding wizard walks you through:

  1. Screen Recording — grant the core permission
  2. Accessibility — enable rich window context
  3. Automation — allow per-app context extraction
  4. AI Setup — choose Cloud, Local, or Disabled
  5. First Capture — see what Screencap captures

After onboarding:

  • Capture interval is set in Settings -> Capture
  • Retention period is set in Settings -> Data
  • Global shortcuts are customizable in Settings -> Capture -> Shortcuts

Shortcuts

ActionDefaultNotes
Command palette⌘KQuick access to any view or action
Capture now⌘⇧OImmediate screenshot
Capture project progress⌘⇧POpens caption popup for milestone
End of Day⌘⇧EOpen the journal flow

All shortcuts are configurable in Settings -> Capture -> Shortcuts.


How Capture Works

Screencap uses dominant activity scheduling:

  1. Sample context every second — which app, window, URL is in focus
  2. Wait for stability — context must be stable for ~10 seconds
  3. Capture candidate — take a multi-display screenshot
  4. Keep the dominant — at the end of the interval, save the most representative capture
  5. Merge similar events — captures with same context + similar pixels become one event

This means:

  • Quick app switches don't produce captures
  • You get one clean event per sustained activity
  • Storage usage stays reasonable

The overall capturing algo is still in very rough and can be very much improved


LLM Configuration

Cloud LLM (OpenRouter / OpenAI)

Screencap uses OpenRouter by default, but any OpenAI-compatible API works

  1. Get an API key from openrouter.ai/keys or platform.openai.com
  2. Settings -> AI -> Cloud LLM -> paste your key
  3. Choose a model (default: openai/gpt-5-mini)
  4. Toggle Allow vision uploads if you want image-based classification

OpenRouter gives you access to many models (Claude, GPT-5, Gemini, open-source) through one API key, so very much recommended

Local LLM (Ollama / LM Studio)

  1. Run a local OpenAI-compatible server
  2. Settings -> AI -> Local LLM -> enable and configure:
  • Base URL: http://localhost:11434/v1 (Ollama) or http://localhost:1234/v1 (LM Studio)
  • Model: the model name from /v1/models
  1. Click Test to verify

See Local LLM Guide for detailed setup.

Disable AI

Settings -> AI -> Classification -> Off

Captures still happen, but no LLM calls. Events get basic category from context only.


Development

Requirements

  • macOS
  • Node.js 20+
  • npm

Setup

bash
git clone https://github.com/yahorbarkouski/screencap.git
cd screencap
npm install

Run

bash
npm run dev

Test

bash
npm test

Build

bash
npm run build
npm run preview

Package

bash
npx electron-builder --config electron-builder.yml

Architecture

screencap/
├── electron/
│   ├── main/           # Main process
│   │   ├── app/        # Window, tray, popup, lifecycle
│   │   ├── features/   # Capture, AI, context, projects, retention
│   │   ├── infra/      # Settings, logging, storage
│   │   └── ipc/        # Secure IPC handlers
│   ├── preload/        # Context bridge (window.api)
│   └── shared/         # IPC channels, shared types
├── src/                # React renderer
│   ├── components/     # UI components
│   ├── hooks/          # React hooks
│   ├── lib/            # Utilities
│   └── stores/         # Zustand stores
└── docs/               # Documentation

Key Services

ServicePurpose
CaptureServiceScreenshot capture, fingerprinting
ContextServiceApp/window/URL/media extraction
ClassificationServiceAI pipeline orchestration
EventServiceEvent creation, merging, storage

MCP Integration (Claude Desktop / Cursor)

Screencap includes a built-in MCP server that exposes your activity data to Claude Desktop, Cursor, and other MCP-compatible tools. The MCP server is bundled with the app and does not require a separate build step.

Configure Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

json
{
  "mcpServers": {
    "screencap": {
      "command": "/usr/bin/env",
      "args": [
        "-u",
        "ELECTRON_RUN_AS_NODE",
        "/Applications/Screencap.app/Contents/MacOS/Screencap",
        "--mcp"
      ]
    }
  }
}

For detailed documentation, see MCP Server Guide.

Available Tools

ToolDescription
query_eventsQuery events with filters (date, category, project, app)
search_eventsFull-text search across captions and window titles
get_recent_activityQuick access to recent events
get_time_summaryCategory/project time breakdown
get_app_usageApp usage statistics
get_website_usageWebsite usage statistics
compare_periodsCompare productivity across two periods
get_project_progressProgress events for a project
list_projectsAll projects with stats
get_addiction_statsAddiction tracking data
get_focus_scoreFocus/distraction score for a day
get_event_imageGet thumbnail for a specific event

Available Resources

ResourceDescription
screencap://activity/todayToday's activity events
screencap://activity/recentRecent 2 hours of activity
screencap://stats/todayToday's category breakdown
screencap://stats/weekThis week's statistics
screencap://projectsAll projects with stats
screencap://stories/latestRecent daily/weekly stories
screencap://memoriesUser-defined memories
screencap://eod/todayToday's end-of-day entry

Available Prompts

PromptDescription
daily_summarySummarize activity for a day
project_statusGet status of a specific project
focus_analysisAnalyze focus and distraction patterns

Example Usage

In Claude Desktop or Cursor, you can now ask:

  • "What was I working on today?"
  • "How did I spend my time this week?"
  • "Show me progress on the Screencap project"
  • "Am I spending too much time on YouTube?"
  • "Compare my productivity this week vs last week"

The LLM will use the appropriate tools to query your Screencap data and provide insights.


Contributing

Read Security Practices before adding new IPC handlers or file access surfaces.

Key principles:

  • Treat IPC as a security boundary
  • Validate all renderer inputs with Zod
  • Use the secureHandle wrapper for new handlers
  • Prefer allowlists over blocklists

Known Limitations and Pitfalls

This project is in beta. Expect rough edges, breaking changes, and behaviors that may surprise you.

AI Usage Can Spike Unexpectedly

The classification pipeline can make up to 2 LLM calls per screenshot (one for general classification, another for addiction verification). There's no rate limiting or cost tracking - if you capture frequently, your API bill can grow fast. Small models work best tho, but be thoughtful about this for a while

What's needed: smarter classification logic, caching improvements, and optional cost caps.

Event Trimming is Time-Based Only

Retention cleanup deletes old data based on time thresholds, not activity relevance. Important events get purged alongside noise if they're past the retention window.

What's needed: activity-aware or user-marked retention. Really curious one.

Hardcoded Thresholds

Many parameters are fixed /theoretically/:

  • Fingerprint similarity thresholds
  • Capture stability window (10s)
  • Merge gap for events (~2× capture interval)
  • HQ image retention (12 hours)

These may not fit all workflows and require some good practice to make sense / become dynamic

macOS Only

The entire context system uses AppleScript, macOS Vision, and Apple-specific APIs

If any of these bother you, PRs are very welcome


License

MIT

Cài đặt

TypingMind
{
  "mcpServers": {
    "screencap": {
      "command": "npx",
      "args": [
        "screencap-mcp"
      ]
    }
  }
}

Dùng MCP Screencap với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Screencap, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Screencap làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Screencap.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "screencap": {
      "command": "npx",
      "args": [
        "-y",
        "screencap"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Screencap, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Screencap.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Screencap giúp tôi làm việc này không?
Screencap
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Screencap.

Câu hỏi thường gặp

Máy chủ MCP Screencap dùng để làm gì?

Screencap là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Screencap với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Screencap với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Screencap với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Screencap, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Screencap với TypingMind?

Screencap hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Screencap cung cấp những công cụ nào trong TypingMind?

Screencap cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Screencap không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Screencap yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇