whatisgithub

What is calorie?

karpathy/calorie — explained in plain English

Analysis updated 2026-07-17 · repo last pushed 2024-05-30

154HTMLAudience · generalComplexity · 1/5DormantSetup · easy

In one sentence

A single-file HTML app that shows one always-visible number tracking your daily calorie deficit, updated with simple +100/-100 buttons instead of detailed food logging.

Mindmap

mindmap
  root((repo))
    What it does
      Track calorie deficit
      Simple counter
      Green or red status
    How it works
      Baseline metabolic rate
      Plus minus buttons
      Daily deficit goal
    Setup
      One HTML file
      Edit two numbers
      No accounts
    Audience
      Weight loss trackers
      Minimalist users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Keep a running visual counter of your daily calorie deficit open in a browser tab while you eat and exercise.

USE CASE 2

Quickly log a meal or workout with +100/-100 button presses instead of searching a food database.

USE CASE 3

Edit two numbers at the top of the HTML file to set your personal metabolic rate and target deficit.

What is it built with?

HTMLJavaScript

How does it compare?

karpathy/caloriethinkpixeliab/polymarket-ai-tradinggainubi/note-slides
Stars154156151
LanguageHTMLHTMLHTML
Last pushed2024-05-30
MaintenanceDormant
Setup difficultyeasymoderateeasy
Complexity1/53/52/5
Audiencegeneralvibe codervibe coder

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

So what is it?

Calorie is a simple, always-on web app that helps you track whether you're eating in a way that supports your weight loss goal. Instead of logging every food item or counting macros, you just bump a counter up or down as you eat and exercise throughout the day. Here's how it works. Your body burns a baseline number of calories just by existing, this is your metabolic rate, typically around 2000 calories per day depending on your size and metabolism. On top of that, eating adds calories to your intake, and exercise subtracts them. The app shows you a single number: your current calorie deficit versus your goal (for example, a 500-calorie deficit per day, which adds up to about one pound of weight loss per week). As you go through your day, you use simple +100 or -100 calorie buttons to log your meals and workouts. When you eat a Big Mac, you press +100 five times. When you run and burn 400 calories, you press -100 four times. The number stays green as long as you're on track, and turns red if you're overshooting your goal. The appeal is its simplicity and the always-on awareness it creates. Rather than opening an app to painstakingly log a chicken breast and rice, you keep this counter open in a browser corner and glance at it throughout the day. It answers a practical question: how much more can I eat, or how much do I need to exercise, to stay on my deficit goal? It's less about precision tracking and more about building awareness of your calorie balance in real time. To get started, you open the HTML file in your browser and edit two numbers at the top: your hourly calorie burn rate (derived from your base metabolic rate) and your target daily deficit. That's the only setup required. It's deliberately minimal, no accounts, no food databases, no complexity, just a visual feedback loop to keep you accountable to your goal.

Copy-paste prompts

Prompt 1
Explain how this app calculates a calorie deficit from a base metabolic rate and daily goal.
Prompt 2
Walk me through editing the two numbers at the top of this HTML file to match my own calorie targets.
Prompt 3
How would I add a feature to reset the counter automatically at midnight each day?
Prompt 4
Modify this app so it also tracks a weekly calorie deficit total, not just the daily number.

Frequently asked questions

What is calorie?

A single-file HTML app that shows one always-visible number tracking your daily calorie deficit, updated with simple +100/-100 buttons instead of detailed food logging.

What language is calorie written in?

Mainly HTML. The stack also includes HTML, JavaScript.

Is calorie actively maintained?

Dormant — no commits in 2+ years (last push 2024-05-30).

How hard is calorie to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is calorie for?

Mainly general.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.