adg0480 downloadsA minimalist home for your habits — track manually or automatically, all in Markdown.
Bring habit data together from websites, APIs, and companion apps, alongside ordinary manual logging. Temperans keeps the combined history as readable Markdown in your configured operation folder (default: Habit Logs) and provides calendar views, targets, and analytics. Endpoint and companion imports are core features.

New installations start with just Reading as a clean, editable starter. You can browse presets for Health Connect metrics and Connected APIs, or create custom habits to suit your routine. Existing configurations retain their current habit list.
| Interactive heat map with hover details | Single habit focus (Sleep) |
|---|---|
![]() |
![]() |
Manage all your habits through Settings → Temperans Habits → Configure habits.
| Configure and reorder habits | Add a habit form |
|---|---|
![]() |
![]() |
Jump-start tracking with pre-configured templates accessible from the Browse presets action at the top of the habit creation form:
| Health Connect presets | Connected API presets |
|---|---|
![]() |
![]() |
To change targets or add a historic target revision manually, edit Habit Logs/Settings.md. For example:
# 1. Build habit
- id: reading
name: Daily Reading
unit: pages
cadence: daily
enabled: true
type: session
targetHistory:
- effectiveDate: 2026-08-21
min: 15
# 2. Avoidance habit
- id: no-junk
name: No Junk Food
unit: incidents
cadence: daily
enabled: true
type: avoidance
targetHistory:
- effectiveDate: 2026-08-21
max: 0
# 3. Zero-goal metric tracker
- id: weight
name: Body Weight
unit: kg
cadence: daily
enabled: true
type: tracker
targetHistory:
- effectiveDate: 2026-08-21
The dashboard automatically refreshes after a saved entry and when you edit a note directly.
12 / 15 km (80% complete)) across 4 intensity shades instead of defaulting to a static 50%.Temperans Habits adapts seamlessly across mobile devices and tablets, delivering a touch-first dashboard, responsive monthly heatmaps, and streamlined daily logging.
| Opening dashboard & actions on mobile | Mobile main dashboard view |
|---|---|
![]() |
![]() |
| Responsive 7×5 monthly heat map | Fast daily habit logging |
|---|---|
![]() |
![]() |
Temperans Habits: Open habit dashboard) or ribbon actions.Add an optional logging block inside a habit in the YAML frontmatter of Habit Logs/Settings.md. Omitted options retain their defaults; no extra controls appear in habit creation. Save the note and reopen the logger to see changes.
For example, an existing minutes habit can include:
logging:
amount:
label: Practice time
placeholder: "30 or 0:30"
description: "How long did you practice?"
remark:
label: Reflection
placeholder: "What improved today?"
quickEntry:
values: [10, 25, "0:30"]
mode: add
showClear: false
amount, remark, and title accept label, placeholder, and description. title applies to session habits; amount changes their primary progress field. Empty strings hide default placeholder or description text.quickEntry: false hides the entire quick-entry row for that habit. A configuration object accepts values, mode: add (increment) or mode: set (replace), and showClear. values: [] removes value buttons; set showClear: false to remove Clear too."7h 30m" or "15m" avoid ambiguity.Time habits with units minutes, hours, or seconds accept ordinary numbers in that unit, H:MM, and explicit durations such as 1h 30m, 90m, or 45s. For a minutes habit, 90, 1:30, and 1h 30m all record 90 minutes. For an hours habit, 1.5 records 1.5 hours. No format toggle is needed.
Existing sleep/duration habits retain bare-hour and H:MM entry; typing retains bare-minute and M:SS entry. Both also accept explicit duration strings. Existing log values and targets keep their units.
| Daily habit logging | Goal achieved celebration |
|---|---|
![]() |
![]() |
Habit Logs/Dashboard.md)Temperans Habits features a modular, widget-based dashboard engine. The layout, ordering, and fine-grained options of components are controlled declaratively by a dedicated Markdown note: Habit Logs/Dashboard.md.
You can reorder, duplicate, or omit widgets to design your own custom dashboard layout. Open Dashboard.md from Settings → Temperans Habits → Customize dashboard layout (or via the Command Palette: Temperans Habits: Customize dashboard layout).
Habit Logs/Dashboard.md with full widget options---
temperans: dashboard
version: 1
layout:
# 1. Header with custom title/subtitle, quick-log action, and habit dropdown
- widget: header
title: "My Habit Dashboard" # Optional custom heading
subtitle: "Daily consistency tracker" # Optional custom description
showActions: true # Show or hide Log today and action buttons
showPeriodNav: true # Show or hide period navigation (‹ 2026 ›)
showFilter: true # Show or hide the habit filter dropdown
# 2. Analytics cards (pick which cards appear and in what order!)
- widget: stats
cards:
- consistency # Daily or habit consistency rate
- total-volume # Total volume (reps, pages, km, hours, etc.)
- active-average # Average on active days or per session
- peak-day # Single-day peak amount & date
- current-streak # Active consecutive streak
- best-streak # Longest streak this year
# 3. Calendar & Heat Map View
- widget: calendar # (or widget: heatmap)
showLegend: true # Show or hide Less...More intensity legend
mode: auto # auto (responsive), year (always 53-week), or month (monthly grid)
# 4. Periodic goals & targets (weekly, monthly, quarterly, annual)
- widget: period-goals
cadences: [weekly, monthly, quarterly, annual] # Specify cadences or omit to show all
# 5. Selected day inspector & multi-entry session logs
- widget: day-detail
showSessions: true # Show or hide multi-entry session logs
showNotes: true # Show or hide task notes
---
If you prefer to move day-detail above calendar, remove period-goals, show only a specific subset of stats cards, or force a Monthly Calendar view on desktop, simply edit Dashboard.md. The dashboard automatically detects changes and live-refreshes your layout. Header arrows follow the first calendar widget's mode, stepping by month (including across years) or year as configured.
Custom JavaScript widgets are not part of this release. Old script entries in Dashboard.md are ignored; remove them from the layout. Declarative built-in widget customization remains supported.
temperans or temperans-dashboard)Because all widgets are modular components, you can embed live, interactive habit summaries or an embedded logger directly into your daily notes, homepage, or project notes using either temperans or temperans-dashboard:
```temperans
habits:
- reading
- sleep
- hydration
date: 2026-10-21
widgets:
- logger
```
Both habits and date are optional filters. Without a habit or category filter, the logger displays all your enabled habits from Settings.md. Omitting date automatically targets today.
Use the optional Category field to organize related habits, such as Fitness, Study, or Chores. Set it when creating or editing a habit, or add category: Fitness to its entry in Settings.md. Categories also let you embed a logger for a whole group:
```temperans
category: Fitness
widgets:
- logger
```
Category matching ignores capitalization and surrounding whitespace. With a category alone, the logger includes enabled habits in their Settings.md order. If you also provide habit or habits, it includes only selected habits that belong to the category, in the order you specify. An unmatched category displays an empty message.
You can also put category on an individual logger widget (alongside widget: logger, or inside its config). A widget's category overrides the codeblock's category. Categories currently filter logger widgets only.
For habits that only need completion tracking, choose Boolean (done / not done) in the Unit selector, or set unit: boolean in Settings.md. The logger uses one toggle and saves value: true or value: false, with an optional note. Build habits require completion once per cadence; avoidance habits require no occurrence. Boolean summaries show consistency and streaks instead of volume averages.
Clicking Finish inside an embedded logger automatically collapses it into a sleek, compact summary card showing your progress and status badges (✓ Goal Met, ✓ Clean Day); clicking anywhere on the card expands it right back out anytime.

Or embed a full live dashboard with heatmaps and statistics:
```temperans
habit: reading
year: 2026
widgets:
- stats
- calendar
- day-detail
```
Embedded codeblocks are reactive and automatically update when you log or edit habits.

Temperans Habits provides a generic analytics engine that automatically computes deep metrics for any task:
32 / 34 weeks), average per week, and best period total.| Quick actions palette | Comprehensive analytics summary |
|---|---|
![]() |
![]() |
Add an endpoint block to a habit in Habit Logs/Settings.md to fetch and map data from an HTTP API. The runner supports one request per sync, JSON responses, date templates, standard HTTP methods, headers, request bodies, and optional authentication. API secrets are stored in Obsidian Secret Storage. Imported values use sourceName (or endpoint by default), and existing manual entries are protected.
- id: api-metric
name: External metric
unit: count
cadence: daily
enabled: true
type: tracker
targetHistory:
- effectiveDate: 2026-01-01
endpoint:
sourceName: example-api
url: "https://api.example.com/records?from={{startDate}}&to={{endDate}}"
response:
recordsPath: data
dateField: date
valueField: value
aggregation: sum
Response mapping supports arrays or date-keyed objects. Use aggregation (sum, count, max, latest, or average) and optional numeric valueTransform (divideBy:<number> or multiplyBy:<number>). For JSON responses that contain a text field with a numeric value, valuePattern can extract the first capture group. Templates include {{today}}, {{startDate}}, {{endDate}}, and ISO or epoch variants.
Use Settings → Temperans Habits → Automated API endpoints to store credentials, test a request, or sync the past seven days. Browse or contribute community endpoint recipes in the examples/ directory and the API Recipe Gallery.

The companion app reads permission-granted Android Health Connect metrics (sleep, hydration, steps, nutrition calories, exercise) and optional offline habit timers/counters, exporting them as habit-sync-staging.json or habit-sync-staging.csv into your chosen vault folder.
In Obsidian (on either mobile or desktop, whenever the staging file is present in your operation folder), run Companion data import → Import companion data to ingest the staged records into your daily Markdown logs. See the Temperance Companion repository and guide for setup details.

If you do not already use a vault sync tool (such as Obsidian Sync, Syncthing, or cloud storage) between your phone and computer, Local Peer Sync provides an optional, built-in way to transfer habit configurations (Habit Logs/Settings.md) and dated daily logs directly over your local Wi-Fi with authenticated AES-256-GCM encryption — zero cloud accounts or third-party servers required.
Open Temperans Habits: Open local peer sync (or go to Settings → Temperans Habits → Local peer sync) on your desktop computer and click Start temporary host. A pairing QR code is generated instantly alongside your local network IP and pairing code:
| Desktop Peer Sync host setup | Generated QR code & pairing credentials |
|---|---|
![]() |
![]() |
On your mobile device:
obsidian://temperans-pair link opens Obsidian and configures the paired desktop profile instantly.| Scanned QR pairing detected | Connected to desktop host |
|---|---|
![]() |
![]() |
| Transfer preview & version comparison | Transferring selected notes | All files caught up |
|---|---|---|
![]() |
![]() |
![]() |
The temporary host listens on local IPv4 interfaces while enabled. Use a trusted network and stop hosting when finished. This implementation has automated protocol coverage but has not undergone an independent cryptographic assessment.
The host is desktop-only, while Android is an outbound client. Files that differ require an explicit direction; a hash is checked again immediately before overwrite. The plugin does not configure WireGuard, discover devices through mDNS, sync automatically, or transfer any files outside Habit Logs.
All targets and daily logs live as Markdown/YAML in your vault. New logs default to plain Habit Logs/YYYY-MM-DD.md filenames.
In Settings → Temperans Habits → Storage & Preferences:
YYYY/MM/YYYY-MM-DD.md. It is off by default.DD-MM-YYYY, YYYY/MMMM/DD-dddd, or [Practice]/YYYY-MM-DD. Enter the format without .md; the example path updates while you type. Click Save format or press Enter to apply it.With year/month organization off, the saved custom format applies, or YYYY-MM-DD by default. Formats must identify a complete date and produce valid paths inside the operation folder.
Changing the naming mode never moves or renames existing notes. Temperans updates an existing day's note in place and discovers old custom names using their stored ISO date, so flat, nested, and custom histories can coexist. Notes retain their body text and unrelated frontmatter. Peer sync identifies daily files by date and uses the receiving device's chosen layout for new files, keeping existing destination paths intact. Settings.md and Dashboard.md keep their existing locations.
New and edited daily logs use one consistent top-level map per task: typing, reading, and custom habits. Numeric tasks use value, source, and an optional note; typing adds value_unit, tests, and imported results, while multi-entry habits use sessions with optional notes. This keeps every integration’s write path predictable without a separate metadata block.
temperans: habit-log
temperans_schema: 3
date: 2026-08-22
calories: { value: 2200, source: health-connect }
guitar: { value: 15, source: manual }
typing:
value: 930
value_unit: seconds
tests: 21
source: monkeytype
imported: []
reading:
sessions: []
Obsidian plugin storage retains local display/configuration state; the optional Monkeytype ApeKey and peer-sync pairing secrets use Obsidian Secret Storage. Companion JSON and CSV staging data remain only in the selected local vault folder until replaced by the companion or removed by you.
The plugin and companion have no hosted backend or telemetry. Optional endpoint integrations contact the services you configure. Local peer sync transfers selected habit files, which can contain health data, to the paired device.
Stat cards automatically scale large values for readability: 100,000 ml becomes 100 L, 300 minutes becomes 5 h, and 1,000 hours becomes 41.7 days. Other large counts use k, mn, and bn suffixes. Card values are rounded to one decimal place; stored values, logging inputs, and goals keep their original precision and units. Save feedback appears as a quiet icon beside the selected habit name, with status text available to assistive technology and on hover.
History discovery uses Obsidian metadata when available, then reads only the requested logs. File edits and renames update individual index entries. Parsed-log caching is bounded to 800 entries and an estimated 16 MiB serialized payload; up to four content reads run at once, shared across consumers. Large discovery and loading jobs yield to the host, and plugin unload cancels further reads.
If metadata is unavailable, discovery still reads the history in cooperative batches. Before creating a missing day, unverified metadata hints are checked against file contents so custom-named notes cannot be duplicated. These fallback checks prioritize data integrity. Dashboards show controls and daily details before broader history. Widgets request only their required dates; annual statistics retain their full yearly scope even with a month calendar. Hidden views and offscreen embeds defer history work, obsolete requests are cancelled, and matching selected-habit analytics are shared between views.
Shared challenges (exploratory, after the first release): allow friends to contribute toward a shared target, such as one million pull-ups. Contributions would carry a separate contributor identity alongside their data source, with combined totals, individual breakdowns, contributor colors and labels, and filters for everyone, yourself, or selected friends. Sharing would be explicit per habit, with personal tracking remaining available independently.
This is a candidate for a future pilot, subject to user demand and feasibility, not a committed release feature. It would require duplicate-safe contribution records, correction/conflict handling, clear authorship and privacy rules, and aggregation appropriate to each habit. The loading architecture should support date- and contributor-scoped queries so shared histories do not add full-folder work at startup.
Use Node 22.13+ and the pinned pnpm version. Run pnpm install --frozen-lockfile, pnpm typecheck, pnpm lint, pnpm test, pnpm build, and pnpm check:release. The lint gate checks official Obsidian-specific rules; TypeScript checks run separately. Browser fixtures use pinned Playwright: install Chromium with pnpm exec playwright install chromium, set BROWSER_CHANNEL=chromium, then run pnpm test:responsive. Windows can use the installed Edge browser with the default channel.
See contributions.md for guidance on code changes and new endpoint examples.