Zeropunch

Free & open source · zero knowledge

A punch clock that knows nothing about you.

One button, «Punch», and a list of your times. Every punch is encrypted on your phone before it leaves it — the server stores only ciphertext and never sees a working time. No e-mail address, no real name.

Runs in the browser · installable · works offline · English and German · AGPL-3.0

Zeropunch on a phone: «In since 12:46 · 6:01 h», the time, today 6:01 h, and the large «Punch» button

One button. That is all.

There is only one kind of stamp: a point in time. What it means follows from the order.

One button: «Punch»

Tap it when you start, tap it when you stop. The start screen shows where you are: in since when, or out, and today’s total.

Punches pair up in order

Within a day, the 1st punch is in, the 2nd out, the 3rd in again, and so on: 08:02 – 12:01, 12:48 – 17:10. Add, change or delete one, and the day pairs up anew, in plain sight.

Day and week totals

The list shows every day with its pairs and total, and every week with its sum against your target. Forgot a punch? Add it later with «+».

Night shifts, if you need them

An optional setting moves the change of day to a time you choose, e.g. 04:00. A shift over midnight then stays one day.

Nerd mode

Balance for the week, the month and 90 days, hours per week, average first and last punch, breaks, and a heatmap of your punches by weekday and hour.

Offline, and like an app

Add it to your home screen. Without a connection you keep punching; the punches wait on the phone and go out when you are online again.

Start screen: in since 12:46, today 6:01 h, the «Punch» button
StartWhere you are, and «Punch»
List: weeks with their sum, days with pairs such as 07:58 – 12:03 and day totals
ListPairs, day and week totals
Nerd mode: balance against target for week, month and 90 days, and a chart of hours per week
Nerd modeBalance and statistics
Registration: a username (no real name needed) and a passphrase, twice
RegisterUsername and passphrase

What the server knows

Your browser derives the keys from your passphrase and encrypts every punch (AES-256-GCM, padded to a fixed size) before it is sent. The server keeps what it needs to let you log in and to sync — and nothing it could read.

  • The server sees: an HMAC of your username (and the username itself, in transit, while you register or log in)

    The server never sees: your username at rest

  • The server sees: HMACs of the login keys, and your master key, wrapped

    The server never sees: passphrase, recovery key, the unwrapped master key

  • The server sees: fixed-size ciphertext per punch

    The server never sees: times, notes, settings

  • The server sees: when encrypted writes arrive (stored only as the UTC day of the last write)

    The server never sees: what they contain

  • The server sees: your IP address, only in passing: as a keyed hash in rate-limit counters that expire within two days

Honest limits

  • You must trust the JavaScript the server delivers. Like every web app that encrypts in the browser, a malicious or compromised server could ship code that leaks your passphrase. What helps: no third-party code, a strict Content Security Policy, no build step (what is in the repository is what runs), public source.
  • Arrival times are visible. Punching live sends a record at that moment, so the operator could guess your times. Delayed sync in Nerd mode sends records 0–6 hours later at random.
  • No recovery without passphrase or recovery key. There is no back door, no reset by e-mail, no support that can restore your data.
  • Usernames are not secret. Registering tells you whether a name is taken. Pick one that does not identify you.
  • A long passphrase matters. Whoever obtained the database and the server secret could try passphrases offline, at 600 000 PBKDF2 rounds per guess.

No e-mail, no real name

An account is three things — and only you know two of them.

  1. A username

    3–32 characters, a–z 0–9 . _ -. No real name needed — better none. On a new device it is all you need besides the passphrase.

  2. A passphrase

    At least 10 characters; several words work well. It never leaves your device: the browser turns it into one key to log in and another that unlocks your data.

  3. A recovery key

    Shown once when you register, as text and QR code. Keep it somewhere safe: with it you can set a new passphrase if you forget the old one.

Limits, stated plainly

Zeropunch keeps as little as it can, for as short as it can.

90days per punch

A punch is kept 90 days, then deleted for good — on your device and on the server. Export first what you want to keep: CSV, JSON or an encrypted backup.

50punches a day

At most 50 punches a day. Once a day has 50, the button waits for the next day.

90days without use

An account that is not used for 90 days is deleted, with all its punches and sessions.

Free and open source

Zeropunch is free software under the AGPL-3.0: no trackers, no cookies except the login session. Every line is on GitHub. You can also run your own copy on Cloudflare — a single Worker with a D1 database; the free plan is enough.

  1. Get the code

    Clone the repository and run npm install. You need a Cloudflare account and Node.js.

  2. Database and secret

    Create the D1 database, set the server secret PEPPER and apply the migrations.

  3. Deploy

    npx wrangler deploy — on your own host name or on workers.dev.

Self-hosting guide

Questions

Can anyone see my working times?

Not on the server. Every punch is encrypted in your browser before it leaves the device; the server stores fixed-size ciphertext. It does see when an encrypted write arrives. Delayed sync in Nerd mode sends records 0–6 hours later at random to blur that.

What if I forget my passphrase?

Use the recovery key you got when you registered, then set a new passphrase. Without the passphrase or the recovery key nothing can be restored: there is no back door and no reset by e-mail.

Do I have to install an app?

No. Zeropunch runs in the browser. You can add it to your home screen, and it keeps punching without a connection; the punches are sent once you are online again.

How long are my punches kept?

90 days, then they are deleted for good. Export what you want to keep before that, as CSV, JSON or an encrypted backup. An account that is not used for 90 days is deleted with everything in it.

I work night shifts. Does that work?

Yes. Turn on night shifts in the settings and choose when your day changes, for example at 04:00. Punches before that time count to the previous day, so a shift over midnight stays one day.

Is it free? Can I run it myself?

Yes. Zeropunch is free and open source under the AGPL-3.0. It runs as one Cloudflare Worker with a D1 database; the free Cloudflare plan is enough. The README on GitHub explains the setup.

Open Zeropunch