Skip to content
vbartalisPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

75 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

time-keep

A self-hosted time tracker for one person logging their work for customers: quick on the phone, comfortable on the PC, and every change can be undone.

One container, one SQLite file, built for Coolify. A small, personal replacement for Kimai, with an MCP server so AI agents can work in it too.

License: MIT SvelteKit TypeScript SQLite MCP

The calendar's week view on the PC: a week of entries as coloured blocks per project, with the timer bar and New entry button in the header

Why

Most time trackers are built for billing teams. time-keep is built for one person who logs their own work, all day, on whatever device is at hand:

  • Fast capture. A new entry is a template tap and a typed description, not a form.
  • Nothing is lost. Every change is recorded; any change, or a whole batch of changes, is undone in one step.
  • One set of rules. The web app and AI agents go through the same API and the same validation; neither can do what the other cannot.
  • Your data stays yours. Back up and restore the whole database from the app; export any month as CSV or paste it straight into Excel.
  • Store exactly, present flexibly. Times are stored exactly as entered; rounding, decimal hours and splitting at midnight happen only on the way out.

It is deliberately small: no invoicing, no teams, no shared data. If you need those, Kimai or a hosted tracker will suit you better. The full charter is docs/vision.md.

A tour

Today and the timer

Templates for the entries you log again and again, today's entries under them, and a timer bar on every screen. Several timers may run at once.

Today on the PC: two templates, today's entries with one running, and the running timer in the header

Entries

Grouped by day with daily totals. One filter with kept presets, search over every field, bulk edit and delete. Overlaps are allowed: the app warns, never blocks.

The entries table: a month grouped by day, with customer › project, activity, location, reference and description

Calendar

Day, week and month views on both phone and PC. On the PC, drag to create, move and resize entries.

The month view in the dark theme

History and undo

Every change is kept, with what it was before. Undo any one of them, or a whole batch, from History.

History: the list of changes, each with its Undo

Reports and copy-out

Totals per day, week, customer and project. Copy-out puts a month into Excel in the columns you choose, or downloads it as CSV, rounded to 5 minutes on output only.

Reports: totals per day, week, customer and project

On the phone

A real phone layout, not a squeezed desktop: a timer strip at the top, a bottom bar with the four places you go most, and a "+" in thumb reach. Installable as a web app. Light and dark follow the system.

Today on the phone   A day in the calendar on the phone   Entries on the phone, dark theme

Features

  • Entries as start and end, or start and duration, on customer › project, with an activity, a location, a reference (a ticket number, say) and a description. An entry may cross midnight.
  • Timers started from a template, a past entry or the bar; stop and restart from anywhere.
  • Templates: saved, partly filled entries; only what they leave blank is typed.
  • History and undo: every create, edit, archive and delete is kept forever, with old and new values. Undo any change or batch, and redo it.
  • Reference data (customers, projects, activities, locations) is archived, never deleted, so old entries keep their names.
  • Agents through MCP: bulk entry, month-end tidying and imports, as a user, with a bearer token. Their changes are batches like any other, so they are undone the same way.
  • Import and export: an admin downloads the whole database as a backup and restores it from the Backup screen; Copy-out gives any month as CSV or as rows to paste into Excel.
  • Accounts: an admin, created on first start, manages users; each user's data is their own.

English, 24-hour clock, Monday first, ISO dates.

Getting started

Run it locally

Needs Node 24.

git clone https://github.com/vbartalis/time-keep.git
cd time-keep
npm install
cp .env.example .env    # set ADMIN_USERNAME and ADMIN_PASSWORD
npm run dev

Open the address the dev server prints and sign in as the admin from .env. The database is data/time-keep.db; delete it to start over. The dev server listens on every interface, so a phone on the same network reaches it at the Network address.

Deploy it on Coolify

time-keep is built for and deployed on Coolify, with its Docker Compose build pack (decision 10). docker-compose.yaml builds the image from the Dockerfile and declares the rest: a persistent volume for the database at /data and the health check.

  1. In Coolify, create a resource from this repository with the Docker Compose build pack.
  2. Deploy. Coolify generates the domain (SERVICE_URL_APP_3000) and the first admin's password (SERVICE_PASSWORD_ADMIN, among the resource's environment variables). The username is admin unless ADMIN_USERNAME is set.

Migrations run on start. Backups are taken and restored from the app's Backup screen (admin only).

Coolify is the only place it has been run. The compose file is a standard one, so other Docker hosts may work, but that is untried.

Configuration

Variable Default Meaning
DATABASE_PATH ./data/time-keep.db The SQLite file.
ADMIN_USERNAME, ADMIN_PASSWORD none The first admin, read only while no admin exists.
PORT 3000 Listen port.
BODY_SIZE_LIMIT 512K The largest request; the image sets 100M so a backup uploads.
PROTOCOL_HEADER, HOST_HEADER, ADDRESS_HEADER, XFF_DEPTH unset Behind a reverse proxy; the image sets them.

Details in docs/app.md.

Agents (MCP)

/mcp is a Streamable HTTP MCP server with thirteen tools: reads of the reference data, entries, templates and history, one change tool that applies a batch of operations, and undo and redo. Make a token on Account → Agent access, then, for Claude Code:

claude mcp add --transport http time-keep https://<host>/mcp --header "Authorization: Bearer tk_…"

Then ask in plain words: "log 9 to 12:30 yesterday on Acme › Website, fixed the login form", or "reword this month's support entries so each names the ticket". The contract is docs/mcp.md.

Development

SvelteKit (adapter-node) and Svelte 5, TypeScript end to end, SQLite through Drizzle (better-sqlite3), Tailwind and shadcn-svelte, Vitest and Playwright. The development environment is a devcontainer (docs/environment.md).

Script Does
npm run dev The dev server.
npm run build The production build (node build runs it).
npm run check Svelte and TypeScript checks.
npm run lint Prettier's check and ESLint.
npm run format Prettier, writing.
npm run test:unit Vitest, against in-memory SQLite.
npm run test:e2e Playwright on a production build, at phone and PC sizes.
npm test Both test suites.
npm run db:generate A migration from a schema change.

The screenshots above come from a seeded month: npm run build && npx tsx scripts/readme-screenshots.ts retakes them.

Documentation

Doc Covers
vision.md What the app is for and what it is not.
roadmap.md The rounds and items, with a done note for each.
app.md Screens, layout, configuration, tests, image.
core.md The data model and the one write path with its history.
mcp.md The MCP server's contract.
DESIGN.md The look: tokens, components, patterns.
decisions/ One record per real choice.
environment.md The devcontainer.
autopilot.md How the roadmap is built unattended.

Commits follow Conventional Commits; see CLAUDE.md for the working rules.

License

MIT © 2026 Bartalis Vilmos

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages