TimeZap is a small VS Code extension that tracks the time you spend coding per workspace (and per-file optionally). It records active editing time, detects idle periods, stores locally, and provides a dashboard for quick insights.
This repository was initialized by VS Code Extension Generator and then generated by GPT-5-mini in the span of an hour.
Features implemented:
Auto-tracking of active editing time with idle detection (default 5 minutes).
Aggregation per workspace folder (optionally per-file).
Local persistence using VS Code globalState (export/import available).
Status bar shows formatted "today" total for the active workspace.
Dashboard webview with today's buckets and a selectable time-series (7d, 30d, 1y, all).
Tests (basic) added for time-series generation.
How to build and run
Install dependencies:
npm install
Build:
npm run compile
Run in Extension Development Host:
Open this folder in VS Code and press F5, or
Use the VS Code CLI:
code --extensionDevelopmentPath=/path/to/timezap
Commands
TimeZap: Show Dashboard — opens the dashboard with today's breakdown and series charts.