Maurya
Patel
Work
WorKudos, Desktop + Cloud SaaS Platform

Case Study

WorKudos

RoleFounder & Sole Engineer
CategoryDesktop + Cloud SaaS Platform

A time-tracking platform built so that employers and employees can both trust it. I designed the whole system: a Rust engine for Windows and Mac that tells real work from a mouse jiggler without recording what anyone types, a cloud API that serves many companies from one codebase, and a web dashboard.

The Challenge

Companies that pay for hours want to know those hours were worked. The people being tracked want to know they aren't being watched. Most time trackers settle this by picking a side. Some take screenshots and log keystrokes for the employer. Others run a simple timer that anyone can leave running. I wanted to build one that both sides would agree to, and that meant solving a set of hard engineering problems. The app had to tell a person from a machine without recording what the person typed. It had to keep working through sleep, lost Wi-Fi and a second PC. It had to count the hours people now spend directing AI agents. It also had to serve many companies on two operating systems, and be built and run by one engineer.

The Solution

I designed WorKudos as three parts with one contract between them. A desktop app does the tracking. Every rule lives in a single Rust engine, and the Windows and Mac code is reduced to thin layers underneath it. A cloud API owns the business rules and keeps each company's data walled off from every other company's. A web dashboard turns the raw minutes into days, timesheets, approvals and reports. Names, roles, the sync format and time-zone rules live in one shared package, so the three parts always agree on what the data means. I built it in six weeks. AI coding agents did much of the typing, while I owned the architecture, the reviews and every decision described below.

System Architecture

  1. 01Desktop AppWindows + Mac · Rust and Tauri
    • Tracking engine: every rule in one Rust core, with each operating system behind a small interface
    • Activity judge: decides whether input came from a person or a machine, from timing and movement alone
    • Local store: keeps every minute on the device until the server confirms it, so nothing is lost offline
    • Locked-down window: the interface has no network access, and only the engine talks to the server
    Every minute the app sends what changed · each record carries its own ID, so a resend is harmless
  2. 02Cloud APIGoogle Cloud · TypeScript and PostgreSQL
    • Company walls: every request belongs to one company, and no data crosses between companies
    • Rules engine: turns minutes into worked time, breaks and idle time under each company's own rules
    • Sign-in and roles: passkeys, two-step login for managers, and one role model shared with the dashboard
    • AI assistant access: people can ask Claude or ChatGPT about their own data, with the permissions they already have
    The dashboard reads through the same typed contract the server validates against
  3. 03Web DashboardVercel · Next.js
    • Static front end: no server code of its own, so the web tier has no backend to attack
    • Work in the browser: day timelines, timesheet maths and exports are computed from the minutes the API sends
    • Three views of one dataset: employees see their own day, managers see their team, owners see the company
Data moves in one direction, from the desktop into the API, and the dashboard reads it from there. The desktop app and the dashboard never talk to each other, and the database has no public address.

Challenges I Solved

  1. 01

    Proving work without watching the worker

    The problem

    An app that knows when someone is working sits very close to spyware. It hooks the keyboard and mouse, and it could see the screen. A privacy policy alone wasn't going to earn anyone's trust.

    What I built

    I made privacy a limit of the code itself. The input hooks only note that a key or click happened and when, never which key or where the pointer was. Websites are cut down to their domain at the source. The code that reads AI agents' logs has nowhere to store the text of a conversation. The hooks exist only between Start Work and End Work. Tests check each of these rules, so a later change can't quietly break one.

    Employees can see everything the app sends about them, and data it never collects can't leak or be misused.

  2. 02

    Telling a person from a mouse jiggler

    The problem

    A cheap USB jiggler or an auto-clicker can make an empty desk look busy. Being too strict is worse, though, because it docks honest people.

    What I built

    I built an activity judge that looks at how input moves. A hand starts and stops, speeds up and slows down, and never keeps perfect rhythm. Input generated by software is ignored, with exceptions for accessibility and remote-desktop tools. To tune it honestly, I built a test bench that replays real recordings and real cheating devices through the same engine the app ships. It tunes on one half of the data and scores on the other.

    Across recordings of about 3,000 people, it counts 97.5% of real human activity and close to none from jigglers, turntables and mover devices.

  3. 03

    Counting the work AI agents do

    The problem

    Developers now spend hours directing coding agents such as Claude Code and Codex. While the agent works the keyboard sits still, so an ordinary tracker marks them as idle.

    What I built

    The app recognises agents by their programs and their session logs. From the logs it reads only whose turn it is and how many tokens were used. Time counts only when the person started the request, so an agent left running on its own adds nothing. The same signals tell owners whether each AI subscription is the right size, without showing anyone's prompts.

    Time spent waiting on an agent now counts as work, for more than a dozen agents, and no prompt or reply ever leaves the PC.

  4. 04

    Laptops sleep, lose Wi-Fi and come in pairs

    The problem

    Real work days have gaps in the connection, and some people use two PCs. A naive sync would either lose minutes or count them twice.

    What I built

    The desktop app works offline first. Every minute is saved on the device with an ID made there, and the server accepts each record once, however many times it arrives. Each PC's minutes are kept apart and merged by taking the busier one, so one machine can never erase work recorded on the other. The app also uses the server's time to correct a PC whose clock is wrong.

    Nothing recorded is lost or counted twice, whether a PC was offline for an hour or for three days.

  5. 05

    Scaling the design instead of the server

    The problem

    Every PC checks in once a minute. My first load test, with 1,000 simulated PCs, fell over: replies took up to 21 seconds and some were refused.

    What I built

    Measuring showed the hardware was mostly idle. The cost was in the conversation itself, because each check-in re-sent and re-read setup that rarely changes. I redesigned sync so that the PC and the server compare a short fingerprint of that setup and exchange it only when it differs. Each request now reads shared data once. Tests measure the database work on these paths, so a regression fails the build.

    1,500 PCs checking in every minute now run with zero failed calls on a single small database server. Typical replies take tens of milliseconds, and the database stays below a quarter of its capacity.

  6. 06

    Numbers that end up on payslips

    The problem

    Timesheets feed payroll and client invoices. A total that is quietly wrong does more damage than one that is slow.

    What I built

    Each finished day is calculated once and stored. Any change to that day, or to the company's rules, bumps a counter in the same database transaction, which marks the stored day as out of date. I turned down a faster shared cache, because a stale copy could have saved a wrong total for good.

    Reports load from stored days and always match what a fresh calculation would give.

  7. 07

    Shipping updates to every PC safely

    The problem

    The desktop app updates itself on every customer PC. Anyone who controls the release pipeline controls those machines.

    What I built

    Builds never see the signing key. A separate, minimal job signs the finished app, and each signature is tied to its version, so an old build can't be passed off as an update. The pipeline signs in to the cloud without stored passwords, and nothing ships until a person has marked the release as tested. Before any database change, the server takes a backup, and a new server version rolls itself back if the new version fails its health check. On PCs, updates wait until the work day is over.

    Twenty versions reached Windows and Mac in the first six weeks, each installed after the work day ended.

Results

Live with a pilot company: employees track their day in the desktop app, and managers approve time and leave in the dashboard
1,500 simulated PCs checking in every minute with zero failed calls
97.5% of real human activity counted, with mouse jigglers and auto-movers turned away
One tracking engine shipping to both Windows and Mac
A security review that included proof-of-concept attacks found no critical or high-risk issues
Designed, built and shipped by one engineer in six weeks

Tech Stack

RustTauri 2TypeScriptNext.jsHonoPostgreSQLGoogle CloudMCP