Skip to content
KlectrPublic

About

Self-hostable time tracker: Bun + HTMX site, lightweight browser extension. A Toggl alternative you own.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

zimer — timer → invoice

Zimer

Self-hostable time tracker — timer → invoice. One Bun server, one SQLite file, your data never leaves the machine.

runtime: bun ui: htmx database: sqlite license: Elastic 2.0

Table of contents

Features

  • Timer: one-tap start/stop with live elapsed time, a description, and a project. Your timer and today's entries sit side by side, with today, this week, and unbilled totals above them.
  • Calendar: a week grid in your client colors. Drag to log time, click an entry to edit it. On phones it becomes a day-by-day agenda.
  • Zinvoices: pick a billing period, edit the line items, and move each one draft → sent → paid. Download a clean PDF with your logo and payment instructions. Sent Zinvoices are frozen snapshots.
  • Clients: one table with hours this month, unbilled, outstanding, and when you last tracked. Each client's dialog has Billing (rate, payment terms, color), Projects, and Contact tabs.
  • Billable or not: uncheck Billable on an entry and it still counts toward your day and week, but never lands on a Zinvoice.
  • Times stay where you worked them: each entry keeps the time zone it was logged in.
  • Public Zinvoice links: a read-only page per Zinvoice your client can open, with an optional Stripe payment link.
  • Your data: one SQLite file. Full backup and CSV exports from Settings.
  • Browser extension: start and stop timers from the Chrome, Edge, or Brave toolbar. No build step.
  • Check for updates in the app, from the signed release feed.
  • Works on phones: a bottom tab bar, stacked cards, and the agenda calendar.

Screenshots

All screenshots use fictional demo data. The app ships with a one-click sample workspace.

Timer: today at a glance, the timer, and today's entries.

Zimer timer page

Calendar: the week in client colors, with per-day and per-client totals.

Zimer calendar page

Zinvoices: outstanding, drafts, and paid this month, with a status chip that says what's next.

Zimer Zinvoices page

Clients: one row per client. Click a row to edit its billing, projects, and contact details.

Zimer clients page

Zimer client dialog with Billing, Projects and Contact tabs

On your phone

Zimer timer on a phone Zimer calendar agenda on a phone Zimer Zinvoices on a phone

Install

Needs Bun, curl, tar, sha256sum. Installs to /opt/timekeep (needs root; set INSTALL_DIR to change).

curl -fsSL https://invoices.tristonarmstrong.com/releases/install.sh | bash
# re-running the same command updates to the latest v1 release —
# data, token, and start.sh are preserved

Quickstart

From source:

bun run ./site/server.ts
# -> http://127.0.0.1:3000

First run prints your API token — save it; the login page and the extension both need it. Binds localhost only by default; set HOST/PORT to change that.

Browser extension

Chrome / Edge / Brave:

  1. chrome://extensions → enable Developer mode → "Load unpacked" → the extension/ folder.
  2. Click the Zimer icon → enter your site URL (e.g. http://localhost:3000) and the API token → Save.
  3. Start/stop timers from the popup. They show up on the site's calendar.

Config

Var Default What
PORT 3000 HTTP port
HOST 127.0.0.1 bind address
DATA_DIR site/data SQLite file + token live here
TIMEKEEP_TOKEN auto-generated shared secret for API + login
PUBLIC_BASE_URL request origin base URL for shared Zinvoice links (set it behind a proxy)
TZ system zone decides when "today" starts; see Notes

The hosted, multi-account mode (HOSTED=1, Stripe billing, backups) is configured separately; see docs/hosted-ops.md.

Notes

  • Each entry keeps the time zone it was logged in, so 8–5 worked in California still reads 8–5 when you open Zimer in Florida. The server's time zone decides when "today" and "this week" start, so if you host on a VPS in another zone, set TZ for the process (e.g. TZ=America/Chicago bun run ./site/server.ts).
  • Back up timekeep.db in your DATA_DIR. That's the entire app state. Settings → Your data also downloads a full backup.

Layout

zimer/
├── AGENTS.md            # the always-known rules: Bun-only, design, workflows
├── DESIGN.md            # the design system: tokens, scales, component rules
├── PLAN.md              # the plan: architecture, API contract, milestones
├── CHANGELOG.md         # what's new, newest first
├── LICENSE              # Elastic License 2.0 (source-available)
├── VERSION
├── install.sh           # one-command install / updater
├── site/
│   ├── server.ts        # entry: HTTP server + SQLite
│   ├── db.ts            # schema + migrations
│   ├── pdf.ts           # zero-dependency PDF writer
│   ├── stripe.ts        # optional Stripe payment link on invoices
│   ├── routes/          # web.ts (HTMX pages), api.ts (JSON API)
│   ├── views/           # timer, calendar, invoices, manage, public pages
│   ├── ui/              # reusable components: tabs, list, fields, dialogs, ...
│   ├── lib/             # auth, revenue, icons, updates, ...
│   └── static/          # style.css, dialog.js, controls.js, ...
├── stories/             # Zandbox stories for the site/ui components
├── zandbox.config.ts    # registers the stories
└── extension/           # Manifest V3, no build step: manifest.json, popup.html, popup.js, bg.js

Development

Bun only — no npm/npx/yarn/pnpm/Docker.

bun run dev       # the app on http://127.0.0.1:3000
bun run zandbox   # the component workbench on http://127.0.0.1:8935
bun test          # must finish with 0 failures

New UI pieces are components in site/ui/ with a Zandbox story in stories/. Build and check them there before a page uses them.

Every change goes issue → early PR → test evidence → merge. See docs/workflow.md.

Docs

License

Elastic License 2.0 © 2026 Triston Armstrong

Zimer is source-available, not open source. You can use, copy, modify, and redistribute it under the license terms — but you may not provide it to third parties as a hosted or managed service, circumvent its license-key functionality, or remove its licensing and copyright notices.

About

Self-hostable time tracker: Bun + HTMX site, lightweight browser extension. A Toggl alternative you own.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages