Self-hosted time tracking for one-person businesses and teams. Your work, your rules, your data.
OpenClockwork 2.2.0 provides two operating modes in one open-source application. Solo helps an independent professional track personal work, organise customer projects, and produce timesheets without inventing an HR department. Team supports employee attendance, work schedules, leave, approvals, and tablet terminals. Both use the same self-hosted PostgreSQL, API, and responsive PWA.
New in 2.2.0: HR can download working-time PDFs alongside CSV for one, selected, or all employees, including inactive employees with historical bookings. Reports show full timestamps, break deductions, net work, status, and totals, with a separate section per person. Read the German legal context and export limitations. PIN tablet terminals from 2.1.0 and the access-control fixes from 2.0.1 are retained.
The interface is available in German and English on phones, tablets, and desktops. Language is independent of working-time rules: targets, breaks, holidays, and leave are explicit configuration, not assumptions about your country. No proprietary time-clock hardware or hosted subscription is required.
Existing installations remain in Team mode after an upgrade. A mode change is a separate, authenticated administrator action with a preview and safety checks. Invoice creation, monetary billing, and CAUR coding-agent usage import are not included in 2.2.0; see the roadmap.
Choose your mode
| Solo | Team | |
|---|---|---|
| Best fit | One person tracking their own work | An organisation managing multiple people |
| Daily workflow | Timer, manual entries, direct corrections, personal calendar | Employee bookings, requests, manager/HR workflows |
| Work rules | Optional targets, leave account, breaks, and personal hints | Employee contracts, schedules, leave allowances, and approvals |
| Customer work | Customers, projects/orders, billable classification, personal timesheets | Assigned projects/orders, PLAN/IST reports, HR working-time reports |
| Shared terminal | Not available in Solo | Paired QR/PIN terminals with optional geofencing |
| Start here | Solo guide | Team guide |
Read Operating modes for boundaries and safe transitions. Solo is not a separate account tier or a license restriction; it is an installation-wide workflow and access mode. Team does not yet expose the Solo customer-management and billable-timesheet UI.
Team-mode examples: employee booking, QR scanning, and leave requests.
Explore the complete feature overview
Highlights
- A complete personal workflow. In Solo, start with all attendance-related accounts disabled, capture actual work, correct or cancel it with an audit trail, organise customers/projects/orders, and export billable or non-billable timesheets. Private notes stay out of customer reports.
- Flexible time capture. Clock actual start/end times, add an optional GPS position and project, or use an HR-enabled daily-target block.
- QR/PIN tablet terminal. Pair a tablet once. Employees scan a rotating challenge from their authenticated phone or enter their personal number and separate terminal PIN, then explicitly confirm clock-in or clock-out. HR can enable either method or both; existing terminals retain QR on upgrade.
- Optional geofencing. A terminal can work entirely without GPS or require a fresh employee position inside a server-validated radius with a configured accuracy limit.
- Configurable working-time rules. Break deduction, working frames, core hours, target/actual balances, public holidays, and leave calculations live in tested backend/shared-domain code.
- Team approval workflows. Vacation, home office, special leave, time corrections, substitute confirmation, manager approval, HR confirmation, bulk actions, and workflow history.
- Projects and reporting. Assign employees, structure projects by service order, compare PLAN and IST hours, edit booking targets, split entries, and export customer or working-time reports as CSV. HR can download working-time PDFs for one, selected, or all employees, with a separate section per person. Clock-in/out locations are optional in HR tables and CSV and excluded from PDFs. See the German working-time export guidance for the legal context and the limits of automatic break deductions.
- Self-hosted and API-first. PostgreSQL, NestJS, React, OpenAPI, Socket.IO, Docker, and an Azure reference deployment—without SaaS lock-in.
- Localised interface. German and English translations, browser-aware dates, and a persistent language switcher across login, Solo, employee, manager, HR, and kiosk experiences.
Solo corrections are owner actions, not employee approval requests. Optional personal policies are effective-dated; changing tomorrow's rules does not rewrite yesterday's bookings. See the feature overview for a mode-by-mode breakdown.
Use in any country
Language does not select a country's work rules. Configure the installation's IANA working timezone, employee holiday calendars, leave allowances, working days, and schedule break rules for your organisation. New employee records start without a regional holiday preset or assumed annual leave entitlement; new schedules start without automatic break deduction. Existing German state calendars remain available as optional presets, and custom holiday dates can represent other countries, regions, and company closures.
The API currently evaluates working days and schedule boundaries in one
deployment timezone (TZ, default UTC). Set this explicitly before recording
real data. A kiosk's display timezone does not change payroll or working-day
boundaries. Multiple simultaneous employee working timezones and additional
maintained regional calendars are covered in the roadmap.
Tablet terminal (Team mode)
An HR administrator creates a terminal with an internal name, visible location, custom message, optional logo, IANA time zone, and optional GPS geofence. After activation, a one-time code pairs exactly one kiosk device. The kiosk then shows a continuously refreshed QR challenge and/or a PIN form according to HR's configuration. PIN identification issues a short-lived device-bound booking permission; it does not create an employee session or book time by itself. HR generates an eight-digit PIN shown once, and can replace, disable, or unlock it independently of the employee's web password. PIN entry preserves leading zeros in personal numbers. The shared screen clears personal data after the interaction, inactivity, or a switch to the background.
The HR audit records authentication, credential changes, and booking outcomes. Its signed chain and export/verification tools support an independently managed archive; an immutable archive is not created automatically. Before enabling PIN in production, configure the separate secrets, restricted database role, and archive procedures in PIN and audit operations. RFID readers and badges remain planned work.
The security model is deliberately separate from an employee session:
- kiosk credentials are least-privilege, revocable, and stored only as hashes;
- QR challenges are opaque, short-lived, rate-limited, and protected against replay per employee;
- daily signing material is derived from a dedicated
TERMINAL_QR_SECRET, not fromJWT_SECRET; - QR uses the authenticated employee identity; PIN uses a separate Argon2id credential with shared lockouts and mandatory explicit confirmation;
- terminal location labels, geofence positions, accuracy, and radius snapshots remain in the historical booking audit record even if the terminal is later deleted permanently;
- pairing, kiosk, and mobile camera/location flows are documented for trusted local HTTPS and managed iPad deployments.
See the German iPad setup and operations guide for certificates, pairing, Guided Access, pilot acceptance tests, MDM rollout, device replacement, revocation, and troubleshooting.
Project status
OpenClockwork is intended for self-hosting, with automated domain, API, and UI tests, versioned releases, and documented upgrade procedures. See release notes for the scope and validation of each version; do not treat automated coverage as certification of every browser, device, or organisation-specific policy.
Why 2.0? This version deliberately marks a new product generation: Solo and Team are both first-class workflows. The major number is not a claim that the release requires a data reset or intentionally breaks existing Team APIs. Existing installations migrate forward and retain Team mode. Future compatibility changes follow semantic versioning and will be called out in release notes and UPGRADING.md.
Operators must still validate organisation-specific working-time rules, collective agreements, payroll integrations, privacy requirements, backups, monitoring, and incident procedures. OpenClockwork provides technical controls; it is not legal advice.
Exact clock-in and clock-out locations are excluded from HR working-time reports by default. HR administrators must explicitly include them in the on-screen report and CSV export; operators remain responsible for a lawful purpose, appropriate access, and retention periods for this personal data.
See the latest release and read UPGRADING.md before changing an existing installation.
The PWA is online-first. A running timer remains server state while a device is offline; new writes require server confirmation and are not queued as offline bookings. CSV and HR working-time PDF exports start browser downloads; Solo print/PDF uses the browser's print dialog. Verify these handoffs in your chosen browser or installed PWA; embedded browsers may handle downloads and printing differently.
Tech stack
| Layer | Technology |
|---|---|
| Workspace | Nx monorepo with pnpm |
| Frontend | React 19, Vite, Tailwind CSS, shadcn/ui, installable PWA |
| Backend | NestJS, Node.js, strict TypeScript |
| Database | PostgreSQL with Prisma schema and forward-only migrations |
| Realtime | Authenticated Socket.IO gateway |
| API | REST with committed OpenAPI specification and generated web client |
| Tests | Vitest, Jest, API E2E, and Playwright browser tests |
| Deployment | Docker Compose and Azure Container Apps reference infrastructure |
Repository layout
apps/
api/ NestJS REST/WebSocket service
api-e2e/ API and domain integration tests
web/ React/Vite/Tailwind PWA and kiosk UI
web-e2e/ Browser smoke tests
libs/
shared/ Shared types and pure working-time domain functions
prisma/ Schema, migrations, seed, and admin bootstrap
docs/ Operator and device setup guides
infra/azure/ Azure reference deployment
ops/ Runtime validation, TLS, Nginx, and operations scripts
assets/ Brand sources and documentation screenshots
Getting started
For production, use the versioned Docker installation below; Node.js and pnpm are not required on that host. Source development needs Node.js 20+, pnpm 9+, and Docker.
Development with Node.js and Docker
git clone https://github.com/patrickschiller/openclockwork.git
cd openclockwork
pnpm install
cp .env.example .env
docker compose up -d db
pnpm prisma generate
pnpm prisma migrate deploy
pnpm db:create-admin
pnpm nx run-many -t serve -p api,web
Open http://localhost:4200. Vite proxies API calls to
http://localhost:3000. The interface uses a supported browser language, falling
back to English. Use the language menu on the login screen or in the application
header to choose English or German; your choice is saved.
The bootstrap command is for an empty employee table and asks you to choose
Solo or Team. Keep an existing .env and its database identity when returning
to an existing checkout; do not rerun initial setup or copy over its secrets.
Full local Docker stack
To try Solo and Team side by side with isolated local databases, follow the local Docker test guide (German). The separate QR/PIN terminal test stack uses port 18082. Read the PIN and audit operations guide before enabling PIN in production. RFID remains a separate future increment.
cp .env.dev.example .env.dev
docker compose \
-f docker-compose.dev.yml \
--env-file .env.dev \
up -d --build
| Service | URL | Host mapping |
|---|---|---|
| Web/PWA | http://localhost:8080 |
8080:8080 |
| API | http://localhost:3001 |
3001:3001 |
| PostgreSQL | localhost:5432 |
configurable with DB_PORT |
The API applies pending migrations before starting. It does not automatically load synthetic data: ordinary development startup must not overwrite a database or silently create demo users. For a new empty database, use the same interactive bootstrap entry point, targeting the development stack:
docker compose -f docker-compose.dev.yml --env-file .env.dev \
exec api node --import tsx prisma/create-admin.ts
Keep demos in a deliberately separate development/demo database and follow the seed command's explicit safety requirements. Never seed a production database or use seeding to repair an existing installation. Stop the stack with:
docker compose -f docker-compose.dev.yml --env-file .env.dev down
Do not add -v unless you explicitly intend to delete the local database.
Local HTTPS iPad terminal pilot
Camera and geolocation APIs require a trusted secure origin on mobile devices. The iPad overlay adds a local TLS gateway, binds raw database/API/HTTP ports to loopback, and exposes only the configured HTTPS port to the test LAN.
cp .env.ipad.example .env.ipad
docker compose \
-f docker-compose.dev.yml \
-f docker-compose.ipad.yml \
--env-file .env.ipad \
up -d --build
Replace all example addresses before starting. Local certificates, private
keys, and .env.ipad are ignored by Git and must never be committed. Follow
the complete iPad guide instead of exposing
the regular HTTP port to a tablet.
Production installation (step by step)
Production installations use versioned API and web images from the GitHub Container Registry. The database starts empty: production never loads the development/demo seed. Follow every step below to configure the installation and create its first Solo owner or Team HR administrator. Upgrading an existing database is a different workflow: use UPGRADING.md, do not run bootstrap again, and keep the existing volume names.
1. Prepare the host and configuration
Install Docker Engine with the Docker Compose plugin, then obtain this repository and enter its directory:
git clone https://github.com/patrickschiller/openclockwork.git
cd openclockwork
git switch --detach v2.2.0
cp .env.prod.example .env.prod
Keep .env.prod private. It contains production credentials and is ignored by
Git. Do not commit it or copy it into an issue, log, or support request.
2. Generate independent secrets
Generate every secret separately. Run each of the following commands exactly once and copy its output only to the variable named in the comment:
# POSTGRES_PASSWORD (use this same value in DATABASE_URL as well)
openssl rand -hex 24
# JWT_SECRET
openssl rand -hex 32
# TERMINAL_QR_SECRET (must be independent from JWT_SECRET)
openssl rand -hex 32
# ERP_API_KEY
openssl rand -hex 32
# CRON_API_KEY
openssl rand -hex 32
Open .env.prod in an editor and replace every change-me value:
- Set
OPENCLOCKWORK_VERSION=2.2.0for this release. Use the same explicit version for the API and web images; never deploylatest. - Put the first command's output in
