time.md

approved

by codybontecou

Navigate and visualize data exported from the time.md screen-time analytics app. - This plugin has not been manually reviewed by Obsidian staff.

3 stars199 downloadsUpdated 28d ago0BSD

time.md for Obsidian

time.md for Obsidian: Your Mac's hours, inside Obsidian

time.md navigates and visualizes data exported from the time.md screen-time analytics app, directly inside Obsidian.

Drop any time.md export into a folder in your vault and time.md recreates the core time.md experience — Overview, Trends, Calendar, Details, and Apps & Categories views — without needing to open the app.

Supported import formats

time.md auto-detects and parses every format time.md can export:

  • JSON (.json) — nested or flat
  • CSV (.csv) — with or without metadata comments and section markers
  • YAML (.yaml, .yml) — nested sections matching time.md's JSON export shape
  • Markdown (.md) — GitHub-flavored tables with metadata header
  • Obsidian (.md) — YAML frontmatter payloads used by Obsidian/Bases workflows

Views

ViewWhat it shows
OverviewTotal, daily average, peak hour, longest session, trend, distribution donut, top apps, heatmap, and web-history overview
TrendsRange-aware daily/hourly defaults, stacked by-app chart (with Raw Sessions), hourly usage chart, app rhythm, focus-vs-fragmentation scatter, category balance, day archetypes, top apps by day, and daily breakdown
CalendarStats strip, GitHub-style daily contribution heatmap, 7×24 usage heatmap, date × hour heatmap (with Raw Sessions), intensity legend, and month grid
DetailsSession stats, duration distribution, daily timeline, app lanes, session waterfall, context-switch intensity, attention-flow Sankey, and filterable raw-session table
Apps & CategoriesAggregated apps and categories with percentages
ProjectsCategory groups with donut distribution chart and stats
Web HistoryBrowser history timeline, top domains, hourly activity
ReportsDaily / weekday breakdowns, period comparison, distribution charts, and CSV / JSON / Markdown export
Input TrackingCursor heatmap, typing intensity, top words / keys, per-app clicks (opt-in in time.md)

Open any view from the command palette (time.md: Open Overview, etc.) or the ribbon icon.

Visualization gallery

The screenshots below are rendered from the plugin's live embed renderer against representative sample data. Every view: value can be used in a timemd code block.

Core screen-time visualizations

VisualizationEmbed viewWhat it showsScreenshot
Overview dashboardoverviewStats, trend, weekly heatmap, and top apps in one dashboard.Overview dashboard visualization screenshot
Stat cardstatOne focused metric such as total time, top app, app count, days, or peak day.Stat card visualization screenshot
Trend charttrend-chart / trendsDaily active time line chart.Trend chart visualization screenshot
Weekly heatmapheatmap / calendarWeekday × hour activity intensity.Weekly heatmap visualization screenshot
Top appstop-apps / appsRanked app totals with proportional bars.Top apps visualization screenshot
CategoriescategoriesCategory totals and share of tracked time.Categories visualization screenshot
Recent sessionsdetailsLatest raw sessions with app, timestamp, and duration.Recent sessions visualization screenshot

Attention, rhythm, and session analysis

VisualizationEmbed viewWhat it showsScreenshot
Attention flowtransition-sankeySankey diagram showing where focus moves between apps.Attention flow Sankey visualization screenshot
App lanesapp-lanesPer-app timeline lanes for the latest day.App lanes visualization screenshot
Session waterfallsession-waterfallChronological sessions with duration bars.Session waterfall visualization screenshot
App rhythmapp-rhythmApp × hour heatmap for daily usage rhythms.App rhythm visualization screenshot
Focus vs fragmentationfragmentation-scatterDaily active time versus switches per hour; bubble size is session count.Focus vs fragmentation scatter visualization screenshot
Category balancecategory-balanceCategory mix from daily and hourly matrices.Category balance visualization screenshot
Day archetypesday-archetypesDay classifications such as deep work, fragmented, or browsing-heavy.Day archetypes visualization screenshot
Contribution heatmapcontribution-heatmapCalendar-style daily activity heatmap.Contribution heatmap visualization screenshot
Date × hour heatmapdate-hour-heatmapRaw-session-derived grid by date and hour.Date hour heatmap visualization screenshot

Projects, reports, and browsing

VisualizationEmbed viewWhat it showsScreenshot
ProjectsprojectsCategory/project list paired with distribution stats.Projects visualization screenshot
Distribution donutdistributionCategory share as a donut with legend and stats.Distribution donut visualization screenshot
Web historyweb-historyBrowser history stats, timeline, domains, or hourly activity.Web history visualization screenshot
ReportsreportsSummary stats, period comparison, distributions, weekday averages, and export table.Reports visualization screenshot

Input tracking visualizations

VisualizationEmbed viewWhat it showsScreenshot
Input statsinput-statsKeystrokes, peak typing minute, cursor samples, clicks, and observed apps.Input stats visualization screenshot
Cursor heatmapcursor-heatmapAbsolute screen-coordinate cursor heatmap with click overlay.Cursor heatmap visualization screenshot
Typing intensitytyping-intensityHourly keystroke line chart.Typing intensity visualization screenshot
Top typed keystop-keysMost-pressed keys.Top typed keys visualization screenshot
Top typed wordstop-wordsMost-typed words with default redaction controls.Top typed words visualization screenshot
Input activityinput-activityPer-app click counts from raw mouse events.Input activity visualization screenshot

Input Tracking

If you've enabled Input Tracking in the time.md app (Settings → Input Tracking), the .input destination emits six new sections that this plugin renders as the Input Tracking view:

SectionWhat it shows
Cursor Heatmap Bins2D heat overlay in absolute screen coordinates, per-screen tab strip, optional click overlay
Typing IntensityHourly keystrokes line chart
Top Typed KeysBar list of the 25 most-pressed keys
Top Typed WordsBar list of the 50 most-typed words (only populated when "Full content" capture is on; default-redacted with a Reveal toggle)
Raw Mouse EventsPer-app click counts + click dots overlaid on the cursor heatmap
Raw KeystrokesOptional first-200 timeline (chars default-redacted; secure-input rows show 🔒)

Example export workflow

  1. In time.md → Export view, pick Destination = Input (or Combined with the input toggles enabled).

  2. Pick a format the plugin can read — JSON is recommended for the raw sections:

    Format:      JSON
    Destination: Input
    Date range:  Today
    Sections:    Top Typed Words, Top Typed Keys,
                 Cursor Heatmap Bins, Typing Intensity,
                 Raw Keystrokes (optional),
                 Raw Mouse Events (optional)
    
  3. Save the file into the folder you've configured under Settings → time.md → Export folder.

  4. Run time.md: Open Input Tracking from the command palette (or click the keyboard ribbon icon).

A minimal JSON export the view can render looks like:

{
  "title": "Input Tracking — 2026-05-04",
  "destination": "input",
  "sections": [
    {
      "name": "input_cursor_heatmap",
      "display_name": "Cursor Heatmap Bins",
      "headers": ["screen_id", "bin_x", "bin_y", "samples"],
      "data": [
        { "screen_id": 1, "bin_x": 30, "bin_y": 22, "samples": 1820 },
        { "screen_id": 1, "bin_x": 31, "bin_y": 22, "samples": 1280 },
        { "screen_id": 2, "bin_x": 60, "bin_y": 20, "samples": 1140 }
      ]
    },
    {
      "name": "input_typing_intensity",
      "display_name": "Typing Intensity",
      "headers": ["timestamp", "keystrokes"],
      "data": [
        { "timestamp": "2026-05-04T10:00:00Z", "keystrokes": 388 },
        { "timestamp": "2026-05-04T11:00:00Z", "keystrokes": 612 },
        { "timestamp": "2026-05-04T15:00:00Z", "keystrokes": 720 }
      ]
    },
    {
      "name": "input_top_keys",
      "display_name": "Top Typed Keys",
      "headers": ["key_code", "key_label", "count"],
      "data": [
        { "key_code": 49, "key_label": "Space",  "count": 1820 },
        { "key_code": 36, "key_label": "Return", "count": 412 },
        { "key_code": 51, "key_label": "Delete", "count": 388 }
      ]
    }
  ]
}

A larger fixture covering all six sections lives at tests/fixtures/input-tracking-sample.json — drop it into your export folder to preview the view without needing real data.

Privacy

  • The Top Typed Words and Raw Keystrokes panels default to redacted (each character replaced with ); click Reveal words / Reveal chars to unmask.
  • Rows captured while macOS Secure Input was active (e.g. password fields, sudo prompts) are surfaced as 🔒 with empty char values, by design from the time.md exporter.
  • If no input sections are present in any loaded export, the Input Tracking view shows an empty-state callout — the existing views are unaffected.

Embedding into notes

Drop a timemd code block into any note to render a live widget that updates whenever you reload exports:

```timemd
view: overview
```

Supported views

viewRenders
overviewStats strip, trend sparkline, weekly heatmap, and top apps (default)
statOne big number — configure with metric:
trends, trend-chartDaily line chart
calendar, heatmap7×24 weekly heatmap
apps, top-appsApp bar list
categoriesCategory bar list
detailsRecent sessions list
transition-sankeyAttention-flow Sankey between source and destination apps
app-lanesPer-app session lanes for the latest day
session-waterfallChronological session list with duration bars
app-rhythmApp × hour heatmap
fragmentation-scatterDaily active time vs. switches per hour scatter plot
category-balanceCategory mix from daily / hourly matrix exports
day-archetypesTable of daily classifications such as Deep work or Fragmented
contribution-heatmapCalendar-style daily contribution heatmap
date-hour-heatmapDate × hour heatmap derived from Raw Sessions
projectsCategories list + distribution donut + stats
distributionDonut chart + category legend + stats card (no list)
web-historyBrowser history (timeline / domains / activity tab)
reportsTime distribution + weekday averages + report data table
input-statsStats strip — keystrokes, peak typing minute, cursor samples, clicks, apps observed
cursor-heatmapAspect-preserving cursor heatmap in absolute screen coordinates with click overlay
typing-intensityHourly keystroke line chart
top-keysBar list of the most-pressed keys
top-wordsBar list of the most-typed words (default-redacted; Reveal toggle)
input-activityPer-app click count bar list

Parameters

keyapplies todefaultdescription
viewalloverviewwidget type (see table above)
limitoverview, top-apps, categories, details, transition-sankey, app-lanes, session-waterfall, app-rhythm, category-balance, day-archetypes, projects, web-history, top-keys, top-wordsvariesnumber of items shown
daysoverview, trend-chartallrestrict to last N days of trend data
heightcursor-heatmap, typing-intensityview defaultSVG canvas height in pixels
metricstattotal_timetotal_time, top_app, apps_count, days, peak_day
sectionsoverviewallcomma-separated list of stats, trend, heatmap, apps
dateoverviewtoday, yesterday, or YYYY-MM-DD — filters every panel to that single day (requires Raw Sessions in the export)
tabweb-historytimelinetimeline, domains, or activity
browserweb-historyfilter to a single browser (Safari, Chrome, Arc, …)
statsdistributiontruefalse to hide the STATS card
legenddistributiontruefalse to hide the legend list (donut-only)
labeldistributiontruefalse to hide the "DISTRIBUTION" label
barealltruefalse keeps the embed's card background, border, and padding; default bare widgets sit flush on the note
colorSchemeallplugin settingper-block palette override: theme, time-md, monochrome, warm-console, graphite-violet, system, editor-dark, midnight, or daybreak
groupByreportsappapp, category, or day
formatreportscsvcsv, json, or markdown (used by the in-view Export button)
titlealloptional heading

Examples

Dashboard stat card for a daily note:

```timemd
view: stat
metric: total_time
title: Screen time today
```

Last 7 days of trend:

```timemd
view: trend-chart
days: 7
title: Last week
```

Top 5 apps:

```timemd
view: top-apps
limit: 5
```

Lean overview — stats and apps only, last 7 days:

```timemd
view: overview
sections: stats, apps
days: 7
limit: 3
```

Just yesterday:

```timemd
view: overview
date: yesterday
title: Yesterday
```

Input tracking dashboard for a daily note:

```timemd
view: input-stats
title: Input today
```

```timemd
view: cursor-heatmap
height: 360
```

```timemd
view: top-words
limit: 20
```

A complete sample note that wires every input component together lives at examples/input-tracking.md. The expanded examples/ directory also includes visualization recipes, ready-to-copy note templates, and synthetic exports for previewing dashboards without personal data.

Setup

  1. Install the plugin (see "Manually installing" below while it's pre-release).
  2. Export data from the time.md app using any supported format.
  3. Place the exported file(s) inside a folder in your Obsidian vault.
  4. Point the plugin at that folder in Settings → time.md → Export folder.
  5. Run time.md: Open Overview from the command palette.

While enabled, the plugin also makes .json, .csv, .yaml, and .yml files visible in Obsidian’s file explorer and opens them in the text editor. Disable Show data files in vault in the plugin settings if you prefer Obsidian’s default file visibility.

Manually installing (pre-release)

  1. Build locally: npm install && npm run build
  2. Copy main.js, styles.css, manifest.json into <vault>/.obsidian/plugins/timemd-visualizor/
  3. Enable the plugin in Obsidian settings.

Development

npm install
npm run dev   # esbuild in watch mode
npm run build # type-check + production build

License

0BSD (same as the sample plugin template).

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.