Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

🍞 Dough Calculator

A single-file, dependency-free web app for scaling bread and pizza dough recipes — with proper sourdough starter math built in.

Open index.html in any modern browser. No build step, no install, no backend.

Features

  • Portion scaling — change the target portion count and every ingredient is scaled proportionally.
  • Sourdough mode — adds a starter to the recipe and automatically subtracts the flour and water it contributes from the rest of the ingredients, so total flour and hydration stay correct. Warns if the starter exceeds the recipe's flour or liquid.
  • Starter presets — liquid (100%), stiff (50%), pizza (65%), or a custom hydration.
  • Recipe library — three predefined recipes (Neapolitan pizza, basic bread loaf, brioche) plus your own, saved to localStorage.
  • Shareable links — the share button encodes the current recipe state into a URL hash, so you can send a link that opens with everything filled in.
  • Bilingual — English / German, toggled in the header.
  • Drag-to-reorder ingredients, free-form notes, and a clean print layout.

How the sourdough math works

Given a starter weight S and hydration H (as a percentage):

  • flour in starter = S / (1 + H/100)
  • water in starter = S − flour in starter

Those amounts are subtracted proportionally from the recipe's flour and liquid ingredients (categories you set per ingredient when sourdough mode is on). The starter is then listed as its own line in the result, and the totals reflect the full final dough weight.

Project structure

Everything lives in a single file: index.html — markup, styles, and logic. There is intentionally no build tooling.

Running locally

# any static server works, or just open the file directly
python -m http.server
# → http://localhost:8000

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages