Skip to content

[Feature] Add an optional Substance Tracking module #1447

Open

Description

@ferges123

Problem

I want to track alcohol consumption in HealthLog, including what I drink, how much, and when, but there is currently no convenient way to log individual drinks. I think this could be extended into an optional Substance Tracking module covering alcohol, caffeine, nicotine, cannabis, and other user-defined substances.

The goal is not just to record consumption, but also to better understand personal habits and explore possible relationships with health measurements such as sleep, HRV, resting heart rate, blood pressure, and symptoms.

Existing features such as Nutrients, custom metrics, and Medical History provide some related functionality, but they do not offer a simple, structured consumption diary.

Proposed solution

Introduce an optional Substance Tracking module under Settings → Modules. Supported categories:

Category Examples
Alcohol Beer, wine, spirits, cocktails
Caffeine Coffee, tea, energy drinks, tablets
Nicotine Cigarettes, vaping, nicotine pouches
Cannabis Product type, quantity, THC/CBD content
Other Custom substances defined by the user

Users could enable only the categories they want to track.

Quick consumption logging

Each entry could include:

  • Substance and product type

  • Quantity and unit

  • Strength or concentration, where applicable

  • Date and time of consumption

  • Optional notes

For alcohol, HealthLog could automatically calculate pure ethanol in grams based on beverage volume and alcohol percentage.

Examples:

  • Beer: 500 ml, 5% → 19.7 g ethanol

  • Wine: 150 ml, 12% → 14.2 g ethanol

  • Spirits: 50 ml, 40% → 15.8 g ethanol

Users could save frequently consumed products as presets and log them again with one click.

History and statistics

The module could display:

  • Daily, weekly, and monthly consumption

  • Consumption trends and calendar history

  • Number of consumption-free days

  • Optional personal limits or reduction goals

  • A distinction between confirmed zero-consumption days and days without entries

Health correlations

Ideally, consumption data could be compared with existing HealthLog measurements:

  • Alcohol vs. sleep quality, HRV, and resting heart rate

  • Caffeine quantity and timing vs. sleep

  • Nicotine vs. blood pressure and heart rate

  • Other substances vs. symptoms and mood

Both quantity and timing would be important.

Alternatives considered

No response

Affected surface

API, Web (PWA)

Additional context

No response

Pre-flight checks

  • I confirmed this is not a duplicate of an existing feature request.
  • I'm proposing a feature, not asking a usage question (those go to Discussions or the docs).

Activity

  1. added
    enhancement
    on Nov 23, 2026
  2. MBombeck commented on Nov 24, 2026

    @MBombeck
    Owner

    Thanks for writing this up so carefully, @ferges123. It fits HealthLog well, and part of it exists today: caffeine and alcohol arrive as daily nutrient totals (caffeine from Apple Health, alcohol in grams through an API token), an alcohol tag on a mood entry marks a drinking day, and Insights sets alcohol days and caffeine intake against sleep, HRV and resting heart rate. AUDIT-C covers the screening side. What is missing is the part you describe best: a quick diary of single drinks with volume and strength turned into grams of ethanol, presets, nicotine and cannabis, and a real difference between a confirmed zero day and a day with no entry. If we build it, each entry should feed those same daily totals instead of keeping a second set of numbers, so the correlations, the day view and the doctor report all read one figure. 1.50.0 closes for features on 30 November, so a module like this would be a candidate for 1.51.0 at the earliest, and I can't promise a date yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions