Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Building an open‑source TDEE calculator you can actually verify

Описание и применение

Создан открытый пакет TDEE‑калькулятора с проверенными формулами и расширением для Firefox без разрешений, позволяющий легко интегрировать расчёты в другие проекты.

Задача

Existing online TDEE calculators are opaque, ad‑laden, and hard to reuse in other projects.

Результат

The project delivers a lightweight, open‑source TDEE calculator that can be easily integrated into other applications, with full test coverage and a privacy‑friendly browser extension.

Рабочий процесс

  • 1. Extract BMR formulas (Mifflin‑St Jeor, Katch‑McArdle, Harris‑Benedict).
  • 2. Implement TDEE as BMR × activity multiplier.
  • 3. Add macro‑split logic with fixed fat percentage and protein per kg.
  • 4. Write unit tests against hand‑derived reference values.
  • 5. Publish @aadifit/tdee‑calc to npm.
  • 6. Wrap the same formulas in a Firefox extension with a popup UI and a zero‑permission manifest.
  • 7. Provide documentation and example usage in the README.

Доказательства

Every TDEE calculator I found online was the same thing: a form behind a wall of ads, math you can't see, and no way to reuse it in your own project.

Источник

The package @aadifit/tdee-calc – zero dependencies, ~150 lines, MIT licensed, every formula checked against hand‑derived reference values in the test suite (16 tests).

Источник

  • Дата записи: 2026-09-22T19:00:25.359Z