sourdough-formulas

Community

Centralize sourdough math for reliable bakes.

Authorscottolmer
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Centralizes sourdough calculation utilities to eliminate duplication across calculators and ensure consistent, maintainable results for the SourdoughSuite app.

Core Features & Use Cases

  • Baker's Percentage Functions:
    • calculateAmountFromPercentage(flourWeight, percentage)
    • calculatePercentageFromAmount(ingredientWeight, flourWeight)
  • Hydration Functions:
    • calculateHydrationPercent(waterWeight, flourWeight)
    • calculateWaterNeeded(waterWeight, targetHydration)
    • calculateFlourNeeded(waterWeight, targetHydration)
  • Scaling Functions:
    • calculateScaleFactor(original, target)
    • scaleAmount(amount, scaleFactor)
  • Starter/Preferment Functions:
    • decomposeLevain(totalLevainWeight, hydration)
    • calculateStarterPercentage(starterFlour, totalFlour)
    • calculatePrefermentFlour(totalFlour, prefermentPercent)
  • Dough Weight Functions:
    • calculatePreBakeWeight(postBakeWeight, bakingLossPercent)
    • calculateWeightLoss(preBakeWeight, postBakeWeight)
    • calculateWeightLossPercent(preBakeWeight, postBakeWeight)
  • Temperature Functions:
    • calculateWaterTemperature(targetDDT, roomTemp, flourTemp, starterTemp, frictionFactor)
  • Utility Functions:
    • roundTo(value, decimals = 1)
    • formatWeight(grams, decimals = 0)
    • formatPercent(percent, decimals = 1)
    • validatePositiveNumber(value, fieldName)
    • validatePercentage(value, fieldName)

Quick Start

Use the sourdough-formulas library to perform core calculations by importing from src/utils/sourdoughCalculations.ts, then call the desired functions (e.g., calculateAmountFromPercentage, formatWeight) in your calculator screens or tests.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: sourdough-formulas
Download link: https://github.com/scottolmer/sourdoughsuitenew/archive/main.zip#sourdough-formulas

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.