8000 GitHub - lofimichael/stim: Science-based caffeine tracker w/ half life measurements+graphing
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Science-based caffeine tracker w/ half life measurements+graphing

License

Notifications You must be signed in to change notification settings

lofimichael/stim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stim - Caffeine Intake Tracker

A command-line tool for tracking caffeine intake with half-life calculations and visualization.

Medical Disclaimer: This software is for informational purposes only and is not intended to be a substitute for professional medical advice, diagnosis, or treatment. The calculations and tracking features are approximations based on general well-studied caffeine half-life data and should not be used in isolation for medical decisions. Always seek the advice of your physician or other qualified health provider with any questions you may have regarding caffeine consumption or a medical condition.

Features

  • Track caffeine doses with precise timing
  • Calculate current caffeine levels based on 6 hour half-life
  • Visualize caffeine levels over time with ASCII graphs
  • Project future caffeine levels
  • Undo/redo functionality
  • Historical dose tracking

Installation

Using Homebrew (recommended for macOS)

brew tap lofimichael/stim https://github.com/lofimichael/stim && brew install stim

Note: This package is not in Homebrew Core as it uses a dual license model - This model helps fund custom implementations for organizations concerned with quantified self while keeping the tool free for individuals.

Usage

stim                     # Show current caffeine level
stim <amount>           # Add caffeine dose in mg
stim <amount> -h <hours> # Add dose with hours offset (negative = past)
stim <amount> <minutes>  # Add dose with minutes offset (negative for past)
stim check <amount>      # Check impact of potential dose
stim undo               # Show last 5 doses and remove most recent
stim redo               # Restore the last undone dose
stim history            # Show last 5 doses with remaining amounts
stim graph [hours] [projection_hours]  # Show caffeine levels over time
stim help               # Show this help message

Common Caffeine Amounts

  • Espresso Shot: ~63mg
  • Coffee Cup (8 oz): ~95mg
  • Cold Brew (12 oz): ~155mg
  • Green Tea (8 oz): ~28mg
  • Energy Drink (8.4 oz): ~80mg

Development

To install for development:

git clone https://github.com/lofimichael/stim.git
cd stim
./dev-reinstall.sh

License

This software is available under a dual license:

Personal Use

Free for individual, non-commercial use. See LICENSE.md for details.

Commercial Use

For company/organizational use, a commercial license is required. See LICENSE.md for licensing and custom implementation information.

About

Science-based caffeine tracker w/ half life measurements+graphing

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0