> ## Documentation Index
> Fetch the complete documentation index at: https://docs.videodb.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Focusd - Productivity and Personal Work Memory

> AI-powered desktop app that records your screen, understands what you're doing, and builds your personal work memory

<video className="w-full aspect-video rounded-xl" src="https://github.com/user-attachments/assets/0fb87dfe-eb60-4e1e-9301-6ec01de80a25" title="Focusd - Productivity and Personal Work Memory" controls />

<Card title="Focusd on GitHub" icon="github" href="https://github.com/video-db/focusd">
  Complete source code, installation guide, and demo download
</Card>

## What Is It?

Your personal productivity oracle.

You know that sinking feeling at 5 PM when you wonder "where did my day go?" Or when you bill clients and can't remember what you worked on Tuesday morning? Or when you want to optimize your workflow but have no data about where time actually goes?

Focusd solves this by running invisibly all day, watching your screen and understanding context—not just "you used Chrome," but "what you were reading in Chrome and which project it relates to." No manual timers. No app-switching. No logging. Just automatic, intelligent tracking that tells you where your time went, what you accomplished, and how to improve tomorrow.

<Tip>
  **The Insight**: "You spent 2.3 hours on the authentication refactor, switching between VSCode (67%) and documentation (33%). You were blocked for 23 minutes waiting for builds. Consider optimizing your build pipeline."
</Tip>

> **Platform Support**: macOS and Windows (Linux support coming soon)

## Why It's Different

<Tabs>
  <Tab title="Zero Manual Work" icon="wand-sparkles">
    ### Automatic Everything

    Forget manual time tracking. Focusd:

    * Records continuously in background
    * Understands context from your screen
    * Detects when you switch projects
    * Identifies productive vs idle time
    * Generates summaries automatically
  </Tab>

  <Tab title="AI Understanding" icon="brain">
    ### Smart Analysis

    Not just "you used Chrome for 3 hours."

    Focusd knows:

    * *What* you were reading in Chrome
    * *Which* project you were working on
    * *Why* you switched contexts
    * *How* productive each session was
  </Tab>

  <Tab title="Actionable Insights" icon="lightbulb">
    ### Real Improvements

    Daily recaps include:

    * Session summaries with context
    * App usage breakdown by project
    * Productivity patterns identified
    * Specific suggestions to improve
  </Tab>
</Tabs>

## The 5-Layer Pipeline

Focusd transforms raw screen captures into structured insights through intelligent summarization:

<Steps>
  <Step title="L0: Raw Events">
    Screen indexed every \~3 seconds. Extracts app names, page titles, visible content.
  </Step>

  <Step title="L1: Activity Segments">
    Events grouped into time-based chunks (e.g., 5-minute windows).
  </Step>

  <Step title="L2: Micro-Summaries">
    Each segment summarized by LLM: *what you did, which app, productive or not*.
  </Step>

  <Step title="L3: Session Summaries">
    Micro-summaries roll up into session overviews with app stats and project breakdown.
  </Step>

  <Step title="L4: Daily Summary">
    Everything consolidates into a headline, highlights, and actionable suggestions.
  </Step>
</Steps>

<Info>
  **Why 5 Layers?**

  This hierarchical approach balances cost, accuracy, and latency. Layer 0 captures everything (cheap, fast). Layers 1-2 group and summarize in small batches (moderate cost). Layers 3-4 synthesize larger contexts (higher cost but fewer calls).

  The result: near-instant activity tracking at the bottom, actionable insights at the top, and a reasonable API bill. Without this structure, running LLM calls on every screen capture would be prohibitively expensive.
</Info>

## Key Features

<AccordionGroup>
  <Accordion title="Live Activity Timeline" icon="activity">
    Real-time feed of what you're doing, updated every few seconds. See your work unfold as it happens.
  </Accordion>

  <Accordion title="🤖 AI Session Summaries" icon="sparkles">
    Automatic overviews of each work session:

    * What you worked on
    * Which apps you used
    * Projects and time breakdown
    * Productivity assessment
  </Accordion>

  <Accordion title="🔍 Drill Down Analysis" icon="search">
    Select any time range for detailed breakdown:

    * App usage percentages
    * Project time distribution
    * Context from screen captures
  </Accordion>

  <Accordion title="📈 Dashboard Analytics" icon="chart-line">
    Visual insights:

    * Total tracked time
    * Productive time percentage
    * Top applications used
    * Project distribution
  </Accordion>

  <Accordion title="Daily Recap" icon="file-text">
    End-of-day report with:

    * Headline summary
    * Session highlights
    * Productivity insights
    * Tomorrow's suggestions
  </Accordion>

  <Accordion title="🕐 History Browser" icon="history">
    Browse past days with full summaries and activity data. Understand your weekly and monthly patterns.
  </Accordion>
</AccordionGroup>

## Who It's For

<Columns cols={2}>
  <Card title="Freelancers" icon="briefcase">
    Track client projects automatically. Generate accurate time reports without manual logging.
  </Card>

  <Card title="Developers" icon="code">
    Understand where coding time goes. Identify interruptions, context switches, and optimize your flow.
  </Card>

  <Card title="Knowledge Workers" icon="brain">
    See how much time you spend in meetings vs deep work. Find patterns in your most productive hours.
  </Card>

  <Card title="Remote Workers" icon="house">
    Stay accountable without micromanagement. Get insights into your work patterns and share summaries with your team.
  </Card>
</Columns>

## Tech Stack

Built with modern desktop technologies for performance and reliability:

<Columns cols={2}>
  <Card title="Electron + React" icon="app-window">
    Desktop app shell with React UI
  </Card>

  <Card title="TypeScript" icon="code">
    Type-safe throughout
  </Card>

  <Card title="SQLite" icon="database">
    Local data storage for privacy
  </Card>

  <Card title="VideoDB SDK" icon="zap">
    Screen capture and AI indexing
  </Card>

  <Card title="OpenAI" icon="sparkles">
    LLM for summarization pipeline
  </Card>

  <Card title="Recharts" icon="chart-bar">
    Dashboard visualizations
  </Card>
</Columns>

## Getting Started

<Info>
  **Prerequisites**

  * macOS 12+ (Apple Silicon or Intel) or Windows 10+
  * Node.js 18+
  * [VideoDB API key](https://console.videodb.io)
</Info>

<Steps>
  <Step title="Clone and Install">
    ```bash theme={null}
    git clone https://github.com/video-db/focusd.git
    cd focusd
    npm install
    ```
  </Step>

  <Step title="Configure API Key">
    Copy `.env.sample` to `.env` and add your VideoDB API key.
  </Step>

  <Step title="Run Development Mode">
    Run `npm run dev` to start the app in development mode.
  </Step>

  <Step title="Grant Permissions">
    macOS will prompt for Screen Recording permission. Grant it in System Settings.
  </Step>

  <Step title="Start Tracking">
    Hit the record button. Wait a few minutes, then check your live timeline and dashboard!
  </Step>
</Steps>

<Warning>
  **System Permissions**

  Required in **System Settings > Privacy & Security**:

  * Screen Recording (mandatory)
  * System Audio Recording (optional, for audio context)
</Warning>

## Configuration

All settings adjustable from the Settings page:

| Setting                | Default | Purpose                              |
| ---------------------- | ------- | ------------------------------------ |
| `segment_flush_mins`   | 5 min   | How often events group into segments |
| `micro_summary_mins`   | 10 min  | Frequency of segment summarization   |
| `session_summary_mins` | 30 min  | Session-level summary generation     |
| `idle_threshold_mins`  | 5 min   | Inactivity threshold before pausing  |

Tweak these to balance between insight granularity and performance.

## Privacy First

<Check>**Local Storage** - All data stored in SQLite on your machine (`~/Library/Application Support/VideoDB Focusd/`)</Check>
<Check>**Encrypted Keys** - API keys stored in macOS Keychain via Electron's safeStorage</Check>
<Check>**No Cloud Storage** - Summaries generated, then stored locally. Screen captures processed and discarded.</Check>
<Check>**Full Control** - Delete all data anytime: `rm -rf ~/Library/Application\ Support/VideoDB\ Focusd/`</Check>

***

<Card title="Complete Setup Guide on GitHub" icon="github" href="https://github.com/video-db/focusd">
  Detailed installation instructions, configuration guide, and troubleshooting help
</Card>

## Related Tutorials

<CardGroup cols={2}>
  <Card title="Bloom" icon="video" href="/examples-and-tutorials/ai-copilots/bloom">
    Screen recorder for creating searchable video documentation
  </Card>

  <Card title="Pair Programmer" icon="code" href="/examples-and-tutorials/ai-copilots/pair-programmer">
    Transform Claude Code into a context-aware AI coding assistant
  </Card>

  <Card title="Capture SDK Overview" icon="camera" href="/pages/ingest/capture-sdks/overview">
    Learn how to build screen capture apps with VideoDB
  </Card>
</CardGroup>
