debugtheworldbot/keyStats
54.0
Adequate · 15 November 2026
37.6k
lines of production code
C#
with Swift, TypeScript
5
measurements over time
What this system is
Features
Introduce end-to-end encrypted device sync backend
A new independently deployable Cloudflare Worker backend has been added to handle end-to-end encrypted device synchronization. This service stores only HMACs of credentials and encrypted device profiles, ensuring it never receives recovery seeds, plaintext profiles, or local statistics. It introduces a new data model with tables for vaults, devices, history changes, pairing sessions, and rate limits, and enforces a maximum of five active devices per vault. The sync process supports batched history persistence with encrypted records stored in R2, while a daily cleanup cron handles tombstoned vaults, expired pairing sessions, and superseded payloads.
services, services/sync-worker · high confidence
KeyStats project structure updated with new features and dependencies
The KeyStats project has been restructured to support a wider range of features, including app statistics, keyboard and mouse heatmaps, hourly input trends, and end-to-end encrypted device sync. This update adds new source files for these capabilities, such as AppStats, ActivityHeatmapView, HourlyStats, and SyncCoordinator, alongside UI components like SettingsViewController and AllTimeStatsWindowController. It also integrates PostHog for analytics and Sparkle for automatic updates, and introduces a helper app (KeyStatsHelper) with XPC communication for persistent accessibility features. Additionally, localization support has been expanded with Localizable.strings files for English, Simplified Chinese, and Traditional Chinese.
KeyStats.xcodeproj · high confidence
New Windows analytics and interaction windows
Added four new Windows UI views: AppStatsWindow for per-application usage statistics with time-range filtering and sortable bar charts; KeyHistoryWindow for detailed key press history featuring pie and bar chart visualizations; FloatingStatsWindow for a configurable, draggable, topmost overlay displaying primary and secondary metrics; and ImportModeDialog to allow users to choose between merging or overwriting data during import. Also in this area: Configurable keyboard heatmap color schemes; App-filtered keyboard heatmap and resilient system tray icon; Fixes truncation and layout issues in the floating stats window; Introduces end-to-end encrypted device sync and robust input monitoring; Introduces Windows-specific helper infrastructure for app attribution, UI theming, and native integration; and 5 more.
KeyStats.Windows · high confidence
New agent skills for changelog generation and PostHog analytics
Added two new agent skills to the .agents directory: a git-tag-changelog skill that generates release notes by comparing git tags, and a posthog-cli-queries skill that provides terminal commands and scripts to query PostHog event data and dashboard metadata.
.agents · high confidence
New all-time stats dashboard, app-level breakdown, and activity heatmap
KeyStats now includes a dedicated All-Time Stats window that displays lifetime totals for key presses, clicks, and mouse/scroll distances, along with insights such as top keys and most active days. A new App Stats window breaks down activity by application, tracking keys, clicks, and scroll distance per app with time-range filtering. An Activity Heatmap view visualizes daily keyboard and mouse activity over time, and the app now tracks per-app activity via a new AppActivityTracker and AppStats model.
KeyStats · high confidence
New macOS build and release automation scripts
Added a suite of shell scripts to automate the macOS application packaging and release process. The new \build\_dmg.sh\ script handles building the universal binary (Intel and Apple Silicon), embedding a pre-vendored accessibility helper, signing the application, and creating the final DMG installer. Supporting scripts (\rebuild\_vendored\_helper.sh\, \check\_vendored\_helper.sh\, \embed\_vendored\_helper.sh\, \sign\_app.sh\) ensure the helper binary's integrity and maintain stable CDHash values to preserve user accessibility permissions across updates. Additionally, \release.sh\ automates version bumping for both the macOS Xcode project and the Windows C\# project, while \publish\_scoop.sh\ enables publishing Windows releases to a Scoop bucket.
scripts · high confidence
Behavioural changes
7 commits (1 fix) modifying KeyStats.xcodeproj/project.xcworkspace
A change to existing behaviour in KeyStats.xcodeproj/project.xcworkspace — 7 commits (1 fix), 1 file: “add key count”; “Remove xcuserdata”; “fix layout”; and 4 more.
KeyStats.xcodeproj/project.xcworkspace · medium confidence · unverified
Added shared scheme for the helper target
The project now includes a shared Xcode scheme for the 'helper' target, ensuring it is built and available for testing alongside the main KeyStats application. Additionally, user-specific scheme management has been updated to register this new helper scheme and suppress automatic buildable creation for the main app target.
KeyStats.xcodeproj/xcuserdata · high confidence
Fixes
Fixes input attribution by tracking foreground app instead of event source PID
The KeyStatsHelper now attributes keyboard and mouse activity to the currently active (foreground) application rather than the process that generated the raw input event. This change replaces the \sourcePID\ field with \foregroundBundleID\ and \foregroundName\ in the payload, ensuring that activity is correctly assigned to the user-facing app even when input is mediated by helper processes. Additionally, a new \InputEventDeduplicator\ prevents duplicate counting of posted hardware event copies by filtering based on original timestamps and flags. Also in this area: Introduce KeyStatsHelper background daemon for input monitoring.
KeyStatsHelper, vendor · high confidence
Test coverage
Added unit tests for KeyStatsCore models and sync logic
Added comprehensive test coverage for the KeyStatsCore module, including AppStats initialization and recording, HourlyStats persistence and timezone handling, StatsModels number formatting and modifier aggregation, SyncCore encryption and caching, and UpdateCheckCoordinator state management.
KeyStatsTests · high confidence
Dependencies
Dependency updates and new project scaffolding
The Windows application project files have been added, targeting .NET Framework 4.8 and upgrading System.Text.Json to version 8.0.5 to address [CVE redacted] and [CVE redacted]. The macOS project now uses Swift Package Manager with PostHog iOS SDK 3.37.2 and Sparkle 2.8.1. Additionally, a new sync-worker service has been introduced with dependencies including TypeScript 7.0.2, Vitest 4.1.10, and Wrangler 4.110.0.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 54 → 54 (-0.4)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 52 → 58 (+5.8)
- Architecture 48 → 48 (+0.0)
- Maturity 69 → 73 (+4.5)
- Readiness 61 → 51 (-9.9)
- Security 67 → 67 (+0.4)
- Performance 100 → 100 (+0.0)
Resolved (7)
- Duplicated block (12 lines × 2) (KeyStats/StatsManager.swift)
- Duplicated block (18 lines × 2) (KeyStats/HourlyStatsViewController.swift)
- Duplicated block (3–10 lines × 3) (KeyStats/StatsModels.swift)
- Duplicated block (5 lines × 2) (KeyStats/Sync/SyncModels.swift)
- Duplicated block (7 lines × 2) (KeyStats/AllTimeStatsViewController.swift)
- Duplicated block (9 lines × 2) (KeyStats/StatsModels.swift)
- Projects may be oversized for their cohesion
New (54)
- Duplicated block (12 lines × 2) (KeyStats/StatsManager.swift)
- Duplicated block (18 lines × 2) (KeyStats/HourlyStatsViewController.swift)
- Duplicated block (5 lines × 2) (KeyStats/MainWindowViewController.swift)
- Edited copies of one member (3 members, 17+ corresponding lines) (KeyStats/MenuBarController.swift)
- Edited copies of one member (3 members, 23+ corresponding lines) (KeyStats.Windows/KeyStats/Services/SyncCredentialStore.cs)
- Edited copies of one member (3 members, 7+ corresponding lines) (KeyStats/AppStatsWindowController.swift)
- Edited copies of one member (3 members, 8+ corresponding lines) (KeyStats/SettingsViewController.swift)
- Edited copies of one member (4 members, 16+ corresponding lines) (KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs)
- Edited copies of one member (4 members, 16+ corresponding lines) (KeyStats/AllTimeStatsWindowController.swift)
- Edited copies of one member (4 members, 17+ corresponding lines) (KeyStats/StatsManager.swift)
- Edited copies of one member (4 members, 4+ corresponding lines) (KeyStats/AllTimeStatsViewController.swift)
- Edited copy of a member (10 corresponding lines) (KeyStats/HoverIconButton.swift)
- Edited copy of a member (10 corresponding lines) (KeyStats/StatsManager.swift)
- Edited copy of a member (10 corresponding lines) (KeyStats/StatsManager.swift)
- Edited copy of a member (11 corresponding lines) (KeyStats/HourlyStatsWindowController.swift)
- Edited copy of a member (12 corresponding lines) (KeyStats/SettingsViewController.swift)
- Edited copy of a member (12 corresponding lines) (KeyStats/StatsManager.swift)
- Edited copy of a member (13 corresponding lines) (KeyStats.Windows/KeyStats/Services/SyncCoordinator.cs)
- Edited copy of a member (13 corresponding lines) (KeyStats.Windows/KeyStats/Services/SyncCredentialStore.cs)
- Edited copy of a member (13 corresponding lines) (KeyStats/SettingsViewController.swift)
- …and 34 more
Changes since last survey
- 2 commits — 1 feature/other, 1 fixes
By area
- KeyStats.Windows/KeyStats — 1 commit
- KeyStats/StatsPopoverViewController.swift — 1 commit
Notable commits
- fix: fix(ui): stabilize key badge colors across appearances
- change: chore: bump version to 1.56
Architecture
- Unchanged — 1 containers · 0 contexts · 0 edges
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
debugtheworldbot/keyStats was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 15 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 9bf60b26f0a13a339dffec024c970c93d4c5d203 — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.