Real-time team time tracking and collaboration platform built with React 19, Vite, Tailwind CSS 4, and TypeScript — powered by a Meteor 3 + MongoDB backend, and shipped to the web, iOS, and Android from one codebase.
Features Clock In/Out, Ticket Tracking, Redmine Integration, Timesheets, Team Management, Huddle (team feed), and Push Notifications.
The frontend is a Vite-built React SPA. The backend is a Meteor 3 server that exposes its methods over DDP (with reactive publications) and over a REST bridge, backed by MongoDB running as a single-node replica set so Meteor can tail the oplog.
graph LR
Browser["🌐 Browser SPA<br/>Vite + React 19<br/>:3000"]
Native["📱 iOS / Android<br/>Capacitor shell"]
Meteor["⚙️ Meteor 3 Backend<br/>meteor-backend/<br/>:3100"]
Mongo[("🍃 MongoDB 8<br/>replica set rs0<br/>:27017")]
Redmine["🎫 Redmine<br/>external instance"]
Browser -->|"DDP + REST /api"| Meteor
Native -->|"DDP + REST /api"| Meteor
Meteor -->|"oplog tailing"| Mongo
Meteor -->|"REST, per-user API key"| Redmine
classDef client fill:#e0f2fe,stroke:#0369a1,color:#0c4a6e
classDef server fill:#dcfce7,stroke:#15803d,color:#14532d
classDef external fill:#fee2e2,stroke:#b91c1c,color:#7f1d1d
class Browser,Native client
class Meteor,Mongo server
class Redmine external
Note: an earlier Fastify backend was removed once the Meteor migration completed. Only
meteor-backend/is live —backend/retains migration scripts only.
| Technology | Version | Purpose |
|---|---|---|
| React | 19.x | Suspense / concurrent features |
| Vite | 8.x | Dev server + production build |
| Tailwind CSS | 4.x | Oxide (Lightning CSS) engine, no config |
| TypeScript | 5.9.x | Strict mode |
| @mieweb/ui | 0.9.x | Component library + brand tokens |
| Motion | 12.x | Animations (Framer Motion) |
| Zod | 4.x | Shared form / API validation schemas |
| Technology | Version | Purpose |
|---|---|---|
| Meteor | 3.4.x | DDP methods, reactive publications, accounts |
| MongoDB | 8.x | Document database (replica set for oplog) |
| Agenda | 6.x | Scheduled jobs (shift reminders, auto-clockout) |
| Web Push | 3.6.x | Browser push notifications |
| Firebase Admin | 14.x | Mobile push (FCM) |
| Nodemailer | 9.x | Email delivery |
| CASL | 6.x | Permission / ability modelling |
| Yjs | 13.x | Collaborative editing primitives |
| Technology | Version | Purpose |
|---|---|---|
| Capacitor | 8.x | iOS + Android native shells |
| Vitest | 4.x | Unit tests (npm run test:unit) |
| Playwright | 1.61.x | End-to-end tests (npm test) |
- Clock in/out — per-team shift tracking with breaks, and an 8-hour auto-clockout safety net
- Ticket timers — start/stop timers per ticket per day, with multiple sessions rolled into a net total
- Unified ticket table — Huddle tickets and Redmine issues in one sortable, filterable, paginated table
- My Board — a personal shortlist of the tickets and issues you are working on
- Redmine integration — find, time, create and update Redmine issues, and send your hours back (details)
- Timesheets — shift sessions on the dashboard, with ticket sessions nested under their shift
- Huddle — a team feed with markdown posts, mentions, comments, and attachments
- Team management — create/join teams via join codes, invitations, role-based admin controls
- Push notifications — web push plus native FCM/APNs through Capacitor
- Mobile apps — iOS and Android builds with over-the-air update channels
- Dark / light theme — persisted, flash-free on load
- Strict tooling — ESLint, Prettier, simple-import-sort, TypeScript strict mode
| Login (Light) | Login (Dark) | Dashboard (Light) |
|---|---|---|
![]() |
![]() |
![]() |
| Dashboard (Dark) | Clock (Light) | Clock (Dark) |
|---|---|---|
![]() |
![]() |
![]() |
| Tickets (Light) | Tickets (Dark) | Teams (Light) |
|---|---|---|
![]() |
![]() |
![]() |
- Node 24 (pinned in
.nvmrc— runnvm use) - Meteor 3 — install with
npx meteoror from meteor.com/install - MongoDB 8 as a single-node replica set — Meteor tails the oplog, so a standalone
mongodis not enough
git clone https://github.com/mieweb/timehuddle.git
cd timehuddle
nvm use
npm installThe compose file provisions Mongo as a replica set (rs0) and initiates it on first run:
docker compose up mongodbThis also makes mongo-express available via docker compose up mongo-express,
and Mailpit (docker compose up mailpit) to catch outbound email locally.
cd meteor-backend
npm install
npm start # Meteor backend on http://localhost:3100npm run dev # Vite dev server on http://localhost:3000Open http://localhost:3000 — you'll see the login page. Create an account to get started.
In local web development the Vite dev server proxies /api, /uploads, /v1, and /pulsevault
to http://localhost:3100, so no extra frontend configuration is needed. Override the proxy target
with API_TARGET, and set VITE_TIMECORE_URL only where no proxy exists — Capacitor native builds,
or a production preview pointing at a remote backend.
The backend reads its configuration from meteor-backend/.env.local (optional, gitignored):
# meteor-backend/.env.local
MONGO_URL=mongodb://localhost:27017/timehuddle?directConnection=true
MONGO_OPLOG_URL=mongodb://localhost:27017/local?directConnection=true
APP_URL=http://localhost:3000
CORS_ORIGINS=http://localhost:3000
# Email (Mailpit locally)
SMTP_HOST=localhost
SMTP_PORT=1025
SMTP_SECURE=false
EMAIL_FROM=TimeHuddle <noreply@timehuddle.local>
# Push notifications (optional)
VAPID_PUBLIC_KEY=your_vapid_public_key
VAPID_PRIVATE_KEY=your_vapid_private_key
# Redmine integration (optional — see below)
REDMINE_BASE_URL=https://redmine.example.org
REDMINE_ENCRYPTION_KEY=generate_with_openssl_rand_base64_32
# Dev/test only: let each user link their own Redmine URL in Settings. The server
# fetches whatever URL is linked, so never enable this in production.
# REDMINE_ALLOW_CUSTOM_URL=trueConnect your Redmine account once, and you shouldn't need to open Redmine to do your day's work.
- Personal API key — link your own account in Settings → Redmine. Every call runs as you, so Redmine applies your permissions and records you as the author. The key is stored encrypted and never returned to the browser.
- One ticket list — the Redmine issues assigned to you sit beside Huddle tickets in
/app/tickets, with source as a column and a filter rather than a mode. - Search suggestions — the Tickets search bar suggests the issues you are likely to want and finds any other by title,
#1234, a pasted Redmine link or@name. - Time tracking — start a timer on a Redmine issue from My Board, a suggestion, the Work page or the issue's page. A timer needs an open shift; TimeHuddle offers to clock you in first.
- Confirmed push — once clocked out, review a summary and send your hours to Redmine as "Spent time". Entries are created, never edited or deleted.
- Create and update issues — new issues, plus status, priority, assignee and description, from a Redmine issue page inside TimeHuddle.
TimeHuddle is the system of record for how time was spent. Redmine's "Spent time" is a derived, one-way projection of it — never an input.
Requires Redmine 5.0+ with the REST API enabled. Configure the instance once, server-side, in
meteor-backend/.env.local:
| Variable | Purpose |
|---|---|
REDMINE_BASE_URL |
The Redmine instance every user connects to. Without it, Redmine is simply absent — not an error. |
REDMINE_ENCRYPTION_KEY |
Secret used to encrypt each user's personal API key at rest (AES-256-GCM). Must be random (openssl rand -base64 32), not a passphrase. Required when REDMINE_BASE_URL is set. |
Each user then connects their own account in Settings → Redmine.
- 📖 Redmine integration — what it does, how the flow works, every setting, and what is deliberately out of scope.
- 🧭 Design notes — why it behaves the way it does: the push rules, what is and isn't stored, security, and known limits.
From a Git worktree, npm run branch uses the checked-out branch for both the app and the server.
Each folder runs at most one frontend and one backend. Run npm run branch -- status to see
the live addresses, including servers started with the ordinary development commands.
One configuration resolver supplies the ports, web and API origins,
iOS bundle ID, display name and URL scheme. A short hash distinguishes names such as
feature/pulse and feature-pulse. Linked worktrees share a port registry in Git's common
directory, so restarting a branch reuses its addresses.
Use Node 24, a running local Docker engine and Meteor. In a fresh app worktree run npm ci.
In a server worktree also run git submodule update --init vendor/meteor-wormhole and
npm ci --prefix meteor-backend.
npm run branch -- status # show what is running in the selected folders
npm run branch -- config # show reserved branch ports and app build settings
npm run branch -- server # start Meteor and a dedicated Mongo replica set
npm run branch -- web # start the frontend, including its Pulse return pages
npm run branch -- ios --simulator # build the app for Simulator
npm run branch -- ios # build for iPhone using local signing assetsTo test your current app branch against the server from the main worktree, select it once
for this shell with export TIMEHUDDLE_DEV_SERVER=main and run the same commands. Use
unset TIMEHUDDLE_DEV_SERVER to switch back. For one command you can also pass
--app feature/pulse --server main. Both branches must be checked out. For native builds,
the selected app branch must include the branch-build changes.
Each app/server pair gets its own Home Screen app, deep-link scheme and browser origin.
To switch the frontend in a folder to another backend, stop its current frontend first.
Use stop-web with the original pairing for branch-managed frontends, or stop the original
development command for a manually started frontend. Separate worktrees can run concurrently.
Run Playwright's dedicated test frontend in a separate worktree when keeping a development
frontend running during the tests.
When the native app opens Pulse from a ticket, it sends <scheme>://open/app/tickets/<id>
in the proposed nativeReturn field, preserving the team query when present. Opening that
callback after an upload requires Pulse support.
A phone browser sends the ticket's web address in return. Desktop QR links omit both fields.
Each server branch owns its Mongo data, uploads and recordings. Apps targeting the same server see the same records. Server-generated links such as password resets use that server branch's own frontend origin.
The default host is a private IPv4 address on this machine. Set TIMEHUDDLE_DEV_HOST or
pass --host to select the interface reachable from your phone. Use 127.0.0.1 for
Mac/Simulator-only runs. A wildcard development provisioning profile can sign every branch
app on the same team. The local iPhone build omits the push entitlement so the wildcard works.
Use a development role or password for native branch sign-in. Branch builds have OTA updates
disabled and stage Xcode inputs and outputs in their own directory. The ios command
prints the built app's path.
npm run branch -- stop-web # stop this pair's frontend
npm run branch -- stop-server # stop this server for all its clients, retaining its dataStop the branch's services before removing its worktree.
# Development
npm run dev # Vite dev server on :3000
npm run dev:mobile # Vite bound to your LAN, for testing on a device
# Quality gates
npm run lint # ESLint
npm run typecheck # tsc --noEmit
npm run format # Prettier check
npm run lint:fix # Auto-fix lint issues
npm run format:fix # Auto-format
# Tests
npm run test:unit # Vitest unit tests (run once)
npm test # Playwright end-to-end tests
npm run test:all # Unit + e2e — the full gate
npm run test:watch # Vitest watch mode
npm run e2e:pulse-links # Pulse links against a running backend — see tests/pulse-links/
# Production
npm run build # Vite production build → dist/
npm run preview # Preview the production build locallyRun every CI check locally — the same script CI uses — with:
./scripts/checks.sh # all jobs
./scripts/checks.sh --fix # auto-fix lint + format firstnpm run dev:ios # run the iOS app against your local backend
npm run dev:android # run the Android app against your local backend
npm run testflight:ios # build + sync for TestFlight
npm run ota:testflight # publish an over-the-air update to the testflight channelThe Android app is com.mieweb.timehuddle on Google Play. Most changes never need a store release:
| Change | How it ships |
|---|---|
Web code only (src/, styles, release notes) |
OTA. Every push to main publishes the bundle (ota-publish.yml). |
| Native (manifest, permissions, Capacitor plugins or upgrades, icons) | Play Store release with play-store.yml, below. |
Devices only take an OTA bundle whose version is newer than the installed app's versionName, so
bump package.json before merging a bundle production devices should pick up.
Shipping a Play Store release
- Merge the native change to
main. - Actions → Play Store Build → Run workflow on
main, then pick:- track —
internalto try it first,productionfor everyone - release_status —
completedgoes live on that track;draftwaits for you in Play Console - version_code — leave empty
- track —
- Check the release in Play Console, and promote it from
internaltoproductionwhen it's ready.
Versions
versionNameis read frompackage.jsonversionbyandroid/app/build.gradle. Never edit it there.versionCodeis the workflow's run number + 1, passed in asANDROID_VERSION_CODE. Play rejects a code it has seen before, so only fill in version_code to skip past one. Local builds use1.
Signing
The workflow signs with the upload key from the production environment's secrets
(ANDROID_KEYSTORE_BASE64, ANDROID_KEYSTORE_PASSWORD, ANDROID_KEY_ALIAS, ANDROID_KEY_PASSWORD)
and uploads with GOOGLE_PLAY_JSON_KEY_BASE64. Google re-signs for the store (Play App Signing). The
upload keystore is backed up in the team password manager. If it is ever lost, reset the upload
key from Play Console rather than creating a new app.
To build a signed bundle by hand, prefer the workflow; a manual bundle needs a versionCode Play has
not seen, and Gradle reads it from the environment of whatever starts it:
-
In Play Console → App bundle explorer, find the highest version code, and use one higher.
-
Quit Android Studio, then start it from a terminal with the code, so its Gradle builds inherit it:
npm run build:android:prod ANDROID_VERSION_CODE=<code> "/Applications/Android Studio.app/Contents/MacOS/studio" android
Opening it from the Dock or with
npx cap open androidleaves the variable out, and the bundle getsversionCode1, which Play rejects. -
Build → Generate Signed App Bundle, and upload it in Play Console, which shows the bundle's version code before you roll it out.
The workflow's next run would then pick run_number + 1, which may be lower than the code you used,
so fill in version_code on that run with a higher one.
Seed the database with demo teams and users:
sh scripts/seed-docker.shUse these join codes to add users to teams via the UI:
| Team | Join Code |
|---|---|
| Developers | ZDLYFY9T |
| Accounting | P2SRHYYK |
| Product | FAKASXQ9 |
| Design | MHGT2L3Z |
| Support | 180YR2C3 |
| Operations | R0VCXWDP |
Demo accounts all use the password Password1!, with emails following firstname@example.com
(e.g. alice@example.com).
index.html # Vite entry — mounts <div id="root">
src/
main.tsx # ReactDOM.createRoot entry point
styles.css # Tailwind 4 entry + brand token bridge (required)
features/ # Feature-sliced modules (clock, teams, tickets, huddle, …)
lib/ # Shared utilities (api, TeamContext, useSession, ddp, …)
ui/ # Shell components (AppLayout, Sidebar, AppHeader, …)
meteor-backend/
server/ # Meteor methods, collections, publications
tests/ # Backend unit + integration tests
packages/ # Shared code used by both sides (@timehuddle/*)
release-notes/ # One markdown file per shipped version — see its README
tests/e2e/ # Playwright specs + page objects
docs/ # Design docs and migration plans
Path aliases: @ui/* → src/ui/*, @lib/* → src/lib/*.
A user-visible change ships with a note in release-notes/ — one markdown
file per version, bundled into the build and rendered at /app/release-notes. Read that README for
the format and bundle-size rules before adding a note.








