Timer is a simple time tracking tool. Create a task, click "Start"/"Stop", see how much the task took, repeat. The filter panel finds tasks by name and date, and its chart shows the time of each task per day, or per hour for a day or two.
All the data is kept in the localStorage, it does not leave your device, ever. To manage the data, use "Export" (to JSON) and "Import" features. A test data set can be found here.
Originally created back in 2011 to track my time spent on video games, it eventually turned into sorts of Todo MVC, the project gets rewritten from scracth every several years as a learning excercise. This is the fifth iteration. Some of previous Timer iterations:
- https://github.com/Klaster1/timer
- https://github.com/Klaster1/timer2
You will need Node.js 22 or newer.
- Install packages with
npm i. - Run
npx ng serve. The app will start at http://localhost:4200. - Change the Angular app, the web page will live reload.
- Install packages with
npm iif you haven't already. - Run
npm run build. Static files will be placed in thedistdirectory.
The app registers tools with WebMCP, so an AI agent in the browser can read and change the tasks:
list_tasks: lists tasks, filtered by state and name.get_task: returns one task with its sessions.get_time_report: sums the time per task in a date range.create_task: creates a task, optionally started.start_task,stop_task: start or end a session.rename_task,set_task_state: rename a task or move it to the active, finished or dropped list.edit_session,delete_session: change or remove one session.delete_task: removes a task. The agent asks you first.
WebMCP is an experimental Chrome feature. The deployed site carries an origin-trial token. On localhost, turn on chrome://flags/#enable-webmcp-testing and restart Chrome.
