GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - tdeemon/tdeemon: Self-hosted, AI-first nutrition tracking with an adaptive TDEE

BranchesTags
Open more actions menu

Latest commit

 

History

260 Commits
260 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.mise/locks
.mise/locks
 
 
api
api
 
 
cmd/tdeemon
cmd/tdeemon
 
 
deploy/compose
deploy/compose
 
 
docs
docs
 
 
internal
internal
 
 
scripts
scripts
 
 
web
web
 
 
.dockerignore
.dockerignore
 
 
.editorconfig
.editorconfig
 
 
.editorconfig-checker.json
.editorconfig-checker.json
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.golangci.yml
.golangci.yml
 
 
.hadolint.yaml
.hadolint.yaml
 
 
.markdownlint-cli2.jsonc
.markdownlint-cli2.jsonc
 
 
.sqlfluff
.sqlfluff
 
 
.sqlfluffignore
.sqlfluffignore
 
 
.testcoverage.yml
.testcoverage.yml
 
 
.yamllint.yaml
.yamllint.yaml
 
 
AGENTS.md
AGENTS.md
 
 
CLAUDE.md
CLAUDE.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
cog.toml
cog.toml
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
lefthook.yml
lefthook.yml
 
 
mise.lock
mise.lock
 
 
mise.toml
mise.toml
 
 
osv-scanner-licenses.toml
osv-scanner-licenses.toml
 
 

Repository files navigation


tdeemon

A self-hosted nutrition tracker that measures your real TDEE,
and lets an AI coach change your plan only with your yes.

Features · Try it · Self-hosting · AI coach · How the numbers work · Discussions

Latest release CI License: AGPL-3.0-only

The day on a desktop: what is left of the target in a ring,
    the macros, the week, an AI coach's proposal, the meals and today's
    weight, sleep, steps and resting heart rate

The screenshots show tdeemon user demo: three months of made-up data. More in the tour.

Why

Calorie apps estimate what you burn from a formula, and leave you to guess why the scale won't move. tdeemon measures your TDEE from what you eat and how your trend weight moves, tells you whether your cut, maintenance, bulk or recomp is on pace, and changes your targets only through proposals you accept, within limits enforced in code.

It is made to work with an AI coach. Tell Claude, Codex or a local model "I had 200 g of skyr and a banana", and tdeemon finds the foods, logs them and does every sum. The model never does the arithmetic, and it can't push your plan past your limits.

How it works

flowchart LR
  you([You, in the app]) -- meals, weigh-ins --> core[(tdeemon<br>one binary, SQLite)]
  coach([An AI coach<br>over MCP]) -- meals, questions --> core
  health([Apple Health<br>via Health Auto Export]) -- weight, sleep, workouts --> core
  core -- measured TDEE,<br>verdict on the phase --> review{Weekly review:<br>autopilot or coach}
  review -- a proposal --> you
  you -- accept or reject --> core
Loading
  1. Log meals in the app (search, barcode, a recipe's portion, an estimate), or just tell your AI coach.
  2. Measure. After a few weeks tdeemon knows your real TDEE, ± its interval, and whether your phase is on pace.
  3. Adjust. Each week the autopilot, or your coach, proposes a change within your limits. You accept or reject it, and can take it back.

Highlights

Logging that stays out of the way

  • Search and a tray: your foods first, then the ones you eat at this meal; yesterday's meal again in one tap.
  • Barcodes from the camera, with Open Food Facts for a product you don't have.
  • Recipes weighed by the pot, logged as a portion or a share of the dish.

Numbers you can trust

  • A measured TDEE with its interval and a verdict on your phase, every number explained (methodology).
  • A plan with limits: phases, targets by type of day, and floors the code enforces (limits).
  • Autopilot: a weekly review that steps your target, or asks first.

An AI coach, your choice of model

  • An MCP server with 23 tools, three coaching sessions and the methodology, for Claude, Codex, Hermes or a local model (AI coach).
  • Proposals, not edits: the AI suggests, you decide, and any change can be undone.

Yours, on your server

  • One container, one SQLite file; export everything as a ZIP of JSON and CSV.
  • Apple Health through Health Auto Export, and a morning summary and alarms as push notifications or on Telegram.
  • Several users and households: a shared kitchen, each person's plan their own.
  • An installable app (PWA), light and dark, in English and Croatian, and quick with a keyboard on a desktop.

The full tour, with screenshots →

Is it for you?

tdeemon fits if you want to run it yourself, you weigh most of what you eat, and you like the idea of an AI coach that can't fudge the math. It is not for you (yet) if you need imperial units, an Android health integration, a hosted service, or ChatGPT's or claude.ai's connectors, which sign in with OAuth that tdeemon doesn't offer yet (what it doesn't do).

Try it

To look around with made-up data on your own machine, with Docker:

(umask 077 && printf 'TDEEMON_BASE_URL=http://localhost:8080\nTDEEMON_SECRET_KEY=%s\n' \
  "$(openssl rand -base64 32)" > try.env)
docker run -d --name tdeemon-try --env-file try.env -v tdeemon-try:/data \
  -p 127.0.0.1:8080:8080 ghcr.io/tdeemon/tdeemon:latest
until docker exec tdeemon-try /tdeemon healthcheck 2>/dev/null; do sleep 1; done
docker exec tdeemon-try /tdeemon user demo --email [email protected]

Open http://localhost:8080 and sign in as [email protected] with the password the last command printed. When you are done: docker rm -f tdeemon-try && docker volume rm tdeemon-try && rm try.env.

Run it

With Docker and Compose, on the machine that will run it:

mkdir tdeemon && cd tdeemon
base=https://raw.githubusercontent.com/tdeemon/tdeemon/main/deploy/compose
curl -fsSLO "$base/compose.yaml" -O "$base/compose.caddy.yaml" -O "$base/Caddyfile" -O "$base/.env.example"

# The address it will have, such as https://tdeemon.example.com;
# http://localhost:8080 to try it on this machine.
url=http://localhost:8080
# The settings, readable by you only, with a new secret key. Keep the key.
# set -C refuses to replace an existing .env, so running this again keeps it.
(umask 077 && set -C && sed -e "s|^TDEEMON_SECRET_KEY=\$|TDEEMON_SECRET_KEY=$(openssl rand -base64 32)|" \
  -e "s|^TDEEMON_BASE_URL=.*|TDEEMON_BASE_URL=$url|" .env.example > .env)

docker compose up -d --wait
docker compose exec tdeemon /tdeemon user create --admin --email [email protected]

The last command prints your password once. Open the base URL and sign in; the first steps on the day take you to a plan.

tdeemon then listens on 127.0.0.1:8080. For HTTPS, put your reverse proxy in front of it, or let Caddy do it: uncomment COMPOSE_FILE in .env and run docker compose up -d --wait again (Docker Compose).

Documentation

  • Features: a tour of the app, with screenshots.
  • Self-hosting: configuration, users, devices, backups and upgrades.
  • AI coach: connecting an MCP client, the tools and the coaching sessions.
  • Methodology: how the numbers come about.
  • Limits: the limits of a plan and their sources.
  • Design: the design and why it is so.
  • Discussions: questions, ideas, and setups to show.
  • Contributing, and security: report a vulnerability privately.

tdeemon is stable and runs every day for its author. Each release says what changed in its notes, and a change that needs something of you raises the major version.

Disclaimer

tdeemon is not medical advice. Talk to a professional before making significant changes to your diet or training.

License

AGPL-3.0-only. Contributions come under the same licence, with no CLA to sign (CONTRIBUTING.md).

About

Self-hosted, AI-first nutrition tracking with an adaptive TDEE

Topics

apple-healthcalorie-trackergolangmacro-trackermcpmcp-servernutritionpwaself-hostedsqlitetdee

Resources

Readme
AGPL-3.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

4 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.