Details

Track tasks, manage your time, and review your daily progress.

What you can do

  • Add from the toolbar, the centered Add Task pill on mobile, or Shift+N. Choose Task, Range, or Event; each keeps its draft.
  • Start, pause, resume, edit, or finish tasks early. Every task advances one second per real second, and the tab title shows the one finishing soonest.
  • The floating player keeps the current task, Done, and Play/Pause on every page. Space pauses or resumes the latest task when no other control takes priority.
  • Multitask runs tasks together; Autoplay starts the next unfinished ordinary task.
  • Save your own duration and task presets, and a routine of Daily and Weekly Tasks in Settings.
  • Ticking sounds, completion notifications, and window deadline warnings keep you on time.
  • Review 7, 30, or 90 days in Statistics: Work, Upkeep, and Other against each day’s budget, a 7-day average, and a weekday heatmap.
  • Save a backup of your history, events, and checklists.

Kinds of entries

Work is purple, Upkeep teal, Other amber.

Use Work for projects such as Harimaki, and Upkeep for housekeeping, exercise, and personal care. Names allow 50 characters and descriptions 100 for every type.

Timer entry kinds
KindCreated inTimerShows onDone means
TaskAdd → Task, or drag the timelineYesIts dateDuration met, or Done early
DailySettings → Daily TasksYesEvery new daySame as a task, for that day
WeeklySettings → Weekly TasksNoEvery day, Monday–SundayDone once for the week
RangeAdd → RangeNoEach day from start to endDone once; missed after the end date
EventAdd → EventNoIts date, once or monthlyNothing to finish

Scheduling and views

  • A period is when a task may be done, in 15-minute steps; All day keeps it off the timeline. Its duration is the work, up to the period length, so you can pause and still reach Met while the rest fits. New tasks default to the full period. An Until before From ends the next day, such as Sleep 23:00–05:00, and the task belongs to the day it starts.
  • Drag empty future time to create a task, drag a card to move it, or drag its edges to resize. A duration that filled the period follows it; a shorter one stays unless the period gets shorter. On touchscreens, hold first. Arrow keys, Enter, and Escape work too.
  • Scheduled tasks start when their window opens and become Missed in History when it closes unfinished, keeping their time.
  • Day groups today’s tasks into Now, All day, and This week beside the hourly timeline; weekly and range tasks sit in This week with a Done button and leave it once done.
  • Week and Month show scheduled tasks, events, and bars for weekly and range tasks over the days they cover. In Week, a bar’s check button marks it done or restores it, after a confirmation: weekly tasks for the current week, range tasks until they are missed. Select a date to plan it in Day. Year shows mini calendars only.
  • Monthly events repeat on their start day, using the last day of shorter months. Editing or deleting one changes the whole series.

Sync and backups

  • Only haritssr@gmail.com can sign in to change tasks; visitors see a read-only demo.
  • Tasks, events, and settings sync across signed-in devices. If the connection drops, Timer reconnects; failed saves keep your drafts and are never resent automatically.
  • Save backup opens a save dialog in Documents and then reopens the folder used last; keep backups in ~/Documents/Backup. Browsers without a save dialog use their download folder. Backups include history, events, range tasks, and weekly done records.
  • bun run migrate:timer first saves every Timer table to ~/Documents/Backup/timer-raw-*.json, then updates the schema; it can also import a backup file.

Task states

Progress uses each task’s Type color; the playback button indicates running tasks.

  • Running

    Time is counting toward the duration.

    7:30/15:007 minutes 30 seconds remaining
  • Paused

    Time is saved. Continue when you are ready.

    5:00/15:0010 minutes remaining
  • Not started

    The activity is ready to start.

    0:00/15:0015 minutes remaining

How it works

Timer and its floating controls share one task state across the site. Timestamps keep progress accurate without saving every second, while the server checks access and saves changes in Turso.

Timer data flow diagram
Rendering diagram…

Technical reference

Database

Turso tables. Lines show the foreign key from days to tasks, and the ids that link Daily and Weekly definitions in preferences to their rows.

Timer database diagram
Rendering diagram…

Storage

  • Days group timed tasks by Jakarta date; database triggers keep each day’s spent total.
  • Range tasks and weekly done records live in their own tables, apart from timed tasks; events store definitions, not occurrences.
  • Revisions reject concurrent changes, and claims stop duplicate notices and reminders across devices.
  • One visible tab polls; unchanged polls only compare revisions in a read-only transaction.
  • Devices estimate server time from request timing, so displays tick on the same second.

Pages, shared state, and storage

Arrows describe composition, function calls, and returned data. File paths start at the project root; UI component filenames in the next diagram live in app/(tools)/timer/_components/.

Pages, shared state, and storage diagram
Rendering diagram…

Rendering activities and editing tasks

The task list derives display state once per shared clock update. Cards receive that state; controls send changes through the provider instead of writing records directly.

Rendering activities and editing tasks diagram
Rendering diagram…

Saving, scheduling, and completion

Shared timer rules run inside Turso transactions. Browser hooks schedule refreshes, coordinate audio, and claim completion messages; there is no background push scheduler.

Saving, scheduling, and completion diagram
Rendering diagram…

Implementation files

Paths are relative to the project root.

Timer implementation file locations
File locationPurpose
app/(tools)/timer/_components/TimerEvents.tsxAccount-scoped event reads, updates across tabs, and Day/Week/Month previews.
app/(tools)/timer/_components/AddEntryForm.tsxTask/Range/Event selector, independent drafts, and creation submission.
app/(tools)/timer/_components/EntryFormDialog.tsxShared responsive dialog frame, fixed header actions, date, and inset scroll area.
app/(tools)/timer/_components/EventFormFields.tsxTitle, optional description, date, and monthly repeat fields.
app/(tools)/timer/_components/EventEditor.tsxEvent editing and confirmed deletion of the complete series.
app/(tools)/timer/utils/timerEvents.tsEvent types, visible date ranges, and anchored monthly recurrence.
app/(tools)/timer/server/timerEvents.tsEvent persistence, revision conflicts, bounded reads, and atomic restore.
app/(tools)/timer/server/timerEventApi.tsEvent API authentication boundary, validation, and request limits.
app/api/timer/events/route.tsProtected event GET, POST, PATCH, and DELETE handlers with demo-only anonymous reads.
app/(tools)/timer/utils/timerDeadline.tsShared window-warning eligibility, latest start, next boundary, and Jakarta time labels.
app/(tools)/timer/_components/TaskDeadlineWarning.tsxDanger warning before Edit, reduced-motion pulse, and accessible tooltip.
app/(tools)/timer/hooks/useTimerDeadlineReminders.tsVisible-page reminder scheduling, atomic claims, and silent deadline toasts.
app/(tools)/timer/page.tsxTimer page header, introduction, and navigation.
app/(tools)/timer/clock/page.tsxFull-page Jakarta clock with a visually hidden accessible page heading.
app/(tools)/timer/TimerClient.tsxPage composition: selected Day, Week, Month, Year, date navigation, toolbar, and loading feedback.
app/(tools)/timer/_components/TimerYear.tsxTwelve Monday-first mini calendars that open Month, with today highlighted.
app/(tools)/timer/_components/TimerWeek.tsxRead-only Monday-to-Sunday schedules with shared hours and date selection.
app/(tools)/timer/_components/TimerMonth.tsxMonday-first calendar, scheduled task labels, overflow counts, and date selection.
app/(tools)/timer/_components/TimerCalendarDay.tsxRead-only past days and editable future plans; unscheduled tasks beside the timeline.
app/(tools)/timer/_components/TimerCalendarContent.tsxLazily loaded Week, Month, and non-today Day content with loading and Retry states.
app/(tools)/timer/_components/TimerDateNavigation.tsxDate heading, and the Today shortcut with previous/next controls.
app/(tools)/timer/hooks/useTimerCalendar.tsAccount-scoped month reads, cross-month weeks, revalidation, errors, and live-data isolation.
app/(tools)/timer/_components/TaskEditing.tsxDate-scoped editing controls, separate from live playback and scheduling.
app/(tools)/timer/hooks/useTimerPlanning.tsPer-account future-day writers and drafts retained across navigation.
app/(tools)/timer/utils/timerPlanning.tsIsolated ordered future-plan writes and uncertain-write read recovery.
app/(tools)/timer/utils/timerCalendar.tsCalendar types, month geometry, recurring previews, and scheduled-task ordering.
app/(tools)/_components/ChangelogTable.tsxChangelog rows shared by tool Details pages; Timer shows the newest 10 with Show more and Show all.
app/(tools)/timer/_components/TimerDataControls.tsxSettings Save backup: a Documents-first save dialog that reopens the last folder, a download fallback, and errors.
app/(tools)/timer/_components/TimerToolbar.tsxDate heading with its Today and previous/next controls, above the view buttons, a joined History/Settings group, and Add; one row from md.
app/(tools)/timer/_components/TimerSettings.tsxBase UI settings navigation, matched editor height, preferences, and confirmation.
app/(tools)/timer/_components/TimerSettingsEditor.tsxShared editor header with Cancel/Save and a scrollable form body.
app/(tools)/timer/_components/TaskList.tsxAvailable task list and schedule layout; loads timeline gestures lazily for editable days.
app/(tools)/timer/_components/TaskGroup.tsxIndependent collapsed mobile task groups, counts, and desktop scrolling layout.
app/(tools)/timer/_components/TaskTimeline.tsxStatic all-day scheduled cards, green running states, previews, past-day progress, and current-time line.
app/(tools)/timer/_components/ScheduleTimeline.tsxChooses the visible hours for a day's schedule and renders the static or editable timeline.
app/(tools)/timer/_components/TimelinePager.tsxFloating Back to Now button for the follow-now timeline.
app/(tools)/timer/hooks/useTimelineWindow.tsSizes and positions the follow-now scrolling frame and decides when Back to Now shows.
app/(tools)/timer/utils/timerLocalSetting.tsShared boolean localStorage preference store with cross-tab synchronization.
app/(tools)/timer/hooks/useTimelineMode.tsReads and saves the account's Fit timeline to screen preference.
app/(tools)/timer/utils/timelineWindow.tsPage ranges, hour height and overlap checks.
app/(tools)/timer/_components/EditableTaskTimeline.tsxLazily loaded editing layer that attaches creation and resize gestures to TaskTimeline.
app/(tools)/timer/hooks/timelineDrag.tsShared pointer and touch-hold tracking for timeline creation and resize gestures.
app/(tools)/timer/utils/timerTime.tsMinute formatting and HH:mm parsing for timeline labels, cards, inputs, and windows.
app/(tools)/timer/hooks/useTimelineCreation.tsFuture-time selection with mouse dragging, touch holds, keyboard controls, and task creation.
app/(tools)/timer/hooks/useTimelineResize.tsTop/bottom edge resizing, touch holds, keyboard controls, live previews, and conflict cancellation.
app/(tools)/timer/_components/timelineSelection.tsQuarter-hour snapping, future boundaries, creation ranges, and progress-aware resize limits.
app/(tools)/timer/_components/timelineLayout.tsDeterministic overlap lanes for scheduled tasks.
app/(tools)/timer/_components/CompletedTasksTable.tsxHistory modal table and completed/missed status.
app/(tools)/timer/_components/TaskCard.tsxThree-column desktop cards, header icons, progress, and icon actions.
app/(tools)/timer/_components/TaskCardView.tsxShared header, elapsed/availability/remaining display, and action layout for ordinary and daily tasks.
app/(tools)/timer/_components/TaskProgress.tsxCurrent time, duration, percentage, and progress bar.
app/(tools)/timer/_components/TaskActions.tsxStart, Continue, Pause, and Done controls, text/icon presentations, and sounds.
app/(tools)/timer/_components/TaskDialog.tsxAdd/Edit triggers, Shift+N shortcut, and form validation.
app/(tools)/timer/_components/TaskKindField.tsxWork/Upkeep/Other toggle shared by the task form, Presets, and Daily Tasks.
app/(tools)/timer/_components/TaskFormDialog.tsxTask fields and editing form, composed inside the shared entry dialog.
app/(tools)/timer/_components/TaskTextFields.tsxName and description fields with counters and clear buttons, shared by the task form and Settings editors.
app/(tools)/timer/_components/DailyTaskSettings.tsxSynced daily definitions, future-day scheduling, ordering, and Save/Cancel drafts.
app/(tools)/timer/_components/DailyTaskFields.tsxMemoized daily-task fields and stable edit/reorder/remove actions.
app/(tools)/timer/_components/dailyTaskDraft.tsPure daily draft conversion, strict clock parsing, validation, and reordering.
app/(tools)/timer/utils/dailyTasks.tsDaily definition limits, instance creation, and reserved IDs.
app/(tools)/timer/utils/weeklyTasks.tsWeekly task definitions without a duration, and the initial examples.
app/(tools)/timer/utils/checklist.tsWeekly and range checklist types, today’s list, week bars clipped to their days, and missed state.
app/(tools)/timer/_components/TimerChecklist.tsxAccount-scoped weekly and range task reads for whole visible weeks, saves, and updates across tabs.
app/(tools)/timer/_components/ChecklistDoneToggle.tsxConfirmed Done and Restore for weekly and range tasks, on Today cards and Week bars.
app/(tools)/timer/_components/ChecklistCard.tsxToday card for weekly and range tasks with an undoable Done button.
app/(tools)/timer/_components/SpanFormFields.tsxRange task title, description, Type, and start and end dates.
app/(tools)/timer/_components/SpanEditor.tsxRange task editing, done state, and confirmed deletion.
app/(tools)/timer/server/timerChecklist.tsRange task and weekly done persistence, revision conflicts, range reads, and atomic restore.
app/(tools)/timer/server/timerChecklistApi.tsChecklist API validation, matching methods, and demo-only anonymous reads.
app/(tools)/timer/server/timerJsonRequest.tsShared owner, same-origin, content type, and 8 KB JSON body checks for event and checklist writes.
app/api/timer/checklist/route.tsProtected checklist GET, POST, PATCH, and DELETE handlers.
app/(tools)/timer/_components/WeeklyTaskSettings.tsxSynced weekly definitions with name, description, Type, and Save/Cancel drafts.
app/(tools)/timer/_components/WeekTasksBar.tsxWeekly and range task bars on a seven-day grid; done tasks fold into Done in Week and hide in Month.
app/(tools)/timer/_components/DurationFields.tsxShared NumberInput controls for duration units and the preset grid.
packages/ui/src/NumberInput.tsxBase UI number input with labeled field layout, bounds, step, and form state.
app/(tools)/timer/_components/PresetSettings.tsxDuration and task preset editors, six-duration/ten-task limits, and section Save/Cancel drafts.
app/(tools)/timer/_components/durationValue.tsControlled duration units, seconds conversion, and preset labels.
app/(tools)/timer/_components/taskPresentation.tsGrid card layout, spacing, borders, shadows, and state colors.
app/(tools)/timer/_components/taskState.tsTask ordering, completion partition, and earliest running task.
app/(tools)/timer/_components/taskStatus.tsOne phase per task (upcoming, ready, running, paused, reached, missed) and its derived flags.
app/(tools)/timer/_components/floatingTaskState.tsRunning and retained paused task selection across today and yesterday's overnight tasks, and start ordering.
app/(tools)/timer/store.tsTransactional Turso task operations, midnight rollover, overnight playback, preferences, history, and backups.
app/(tools)/timer/server/timerAuth.tsOwner-only Google OpenID Connect, signed session cookies, and request origin checks.
app/api/timer/auth/[action]/route.tsAccount session, Google login, callback, and sign-out endpoints.
app/(tools)/timer/statistics/page.tsxStatistics page header and metadata.
app/(tools)/timer/statistics/Statistics.tsxDate and range selection, the day summary and table, and history refreshes limited to relevant changes.
app/(tools)/timer/statistics/TimeChart.tsxStacked Work, Upkeep, and Other columns with budget ticks, average line, tooltip, and table view.
app/(tools)/timer/statistics/WeekdayHeatmap.tsxWeekday by week heatmap of time spent.
app/(tools)/timer/statistics/RangeSelect.tsxThe 7, 30, and 90-day range buttons.
app/(tools)/timer/statistics/chartFormat.tsDate and duration labels for the statistics charts.
app/(tools)/timer/details/page.tsxThis explanation and file inventory.
app/(tools)/timer/details/relationships.tsPele diagram definitions and explanations of Timer’s file and function relationships.
app/api/timer/route.tsProtected GET, POST, and PATCH handlers for Timer data and actions.
app/(tools)/timer/_components/TimerProvider.tsxLightweight session-aware activation, shared context, and loading boundaries.
app/(tools)/timer/_components/TimerRuntime.tsxDeferred controller creation, snapshot loading, scheduling, and confirmed-only completion effects.
utils/timerSession.tsShared account session request with lightweight response validation.
app/(tools)/timer/_components/FloatingTimerDock.tsxCompact floating task bar, task switcher, retained pause, and completion feedback.
app/(tools)/timer/_components/RunningTaskProgress.tsxShared progress ticks for running cards and ordering updates for concurrent tasks.
app/(tools)/timer/hooks/useTimerClock.tsServer-aligned display ticks, with immediate refresh on visibility changes.
app/(tools)/timer/utils/timerClock.tsRequest-timing clock calibration and synchronized display boundaries.
components/floating/FloatingDock.tsxShared player visibility, Music-above-Timer layout, and notices.
components/floating/useFloatingDockPosition.tsShared Music and Timer navigation gap, desktop positioning, and combined floating layout clearance.
app/(tools)/timer/hooks/useTimerSchedule.tsCompletion and midnight refresh deadlines and timeout cleanup.
app/(tools)/timer/utils/scheduledTaskStarts.tsIn-memory window observation, idle queue, and conditional automatic-start requests.
app/(tools)/timer/hooks/useTimerAudio.tsAudio activation, ticking, and audio ownership.
app/(tools)/timer/hooks/useTimerTicking.tsSettings subscription to local ticking and audio unlock on user interaction.
app/(tools)/timer/utils/timerController.tsStable actions and cached field selections over the mutation controller.
app/(tools)/timer/utils/timerConnection.tsLoading, ready, reconnecting, or failed status derived from read failures.
app/(tools)/timer/utils/timerInput.tsShared task-input limits and form parsing; legacy stored limits remain separate.
app/(tools)/timer/hooks/useTimerNotifications.tsxCompletion claims, browser notifications, sound, and visible feedback.
app/(tools)/timer/utils/timerClient.tsAPI transport, cache keys, validation, and tab change subscriptions.
app/(tools)/timer/utils/timerMutations.tsIn-memory optimistic projection, ordered saves, revision reconciliation, rollback, and failed form drafts.
app/(tools)/timer/utils/timerEngine.tsShared settlement, actions, completion claims, Multitask, and Autoplay rules.
app/(tools)/timer/server/timerDatabase.tsTurso schema, indexed reads, historical totals, task/preference writes, and transactions.
app/(tools)/timer/utils/timerBackup.tsVersioned backup validation, paused export copies, and conflict-safe imports.
app/(tools)/timer/hooks/useTimerAudioOwner.tsSingle-owner ticking audio, with a focused-tab fallback.
app/(tools)/timer/hooks/useTimerPolling.tsOne visible polling tab through Web Locks, with independent polling as a fallback.
app/(tools)/timer/utils/timerSound.tsAction sounds, Quartz clock ticking, and completion ringing.
app/(tools)/timer/utils/timer.tsTypes, time calculations, empty personal days, and sample data generation.
app/(tools)/timer/utils/timerValidation.tsValidation schemas for stored records and API messages.
app/(tools)/timer/migrate-timer.tsSaves every Timer table to ~/Documents/Backup, initializes Turso, and imports backup or legacy JSON history.
app/(tools)/timer/seed-timer.tsCreates sample history for the previous 30 completed days.

Integration files

Timer integration file locations
File locationPurpose
app/layout.tsxMounts TimerProvider so a running activity survives page navigation.
app/page.tsxHome page content and tool navigation.
components/topbar/TopBar.tsxDesktop Timer navigation and shared top bar account controls.
app/api/page.tsxDocuments the Timer API.
app/sitemap.tsIncludes the public Timer pages in the sitemap.
data/routes.tsMakes Timer pages available in site search.
packages/ui/src/Button.tsxShared buttons, including circular timer actions and small field-clear controls.
components/TabBarMobile.tsxMobile navigation surface measured for floating Timer placement.
components/ArticleDiagram.tsxShared Pele flowchart/ERD viewer with zoom, pan, keyboard scrolling, and a full-width dialog.
public/sw.jsOpens or focuses Timer when a completion notification is clicked.
next.config.tsExcludes personal Timer records from deployment tracing.
package.jsonDefines the migration and sample generation commands.
knip.jsoncRegisters the migration and seed scripts as an operational entry point.
.gitignoreExcludes daily JSON records and temporary storage files from Git.
AGENTS.mdDeveloper setup, verification rules, and architecture notes.
app/(tools)/timer/_components/README.mdTimer component and runtime implementation guide.

Legacy data files

Previous local JSON records are migration sources; live tasks use Turso.

Timer daily data file locations
File locationPurpose
data/timer/YYYY-MM-DD.jsonLegacy migration source; no longer used for runtime persistence.
data/timer/*.tmpLegacy temporary files; no longer written by Timer.

Changelog

Messages mentioning Timer or its components, newest first; dates and times use Jakarta time (WIB).

Loading change history…