Skip to content

Soap Calc

PyPI Claude Code Plugin

The first Python-based soap formulation library.

Define recipes in JSON, calculate lye and water amounts, predict soap properties, and export printable instructions—all from the command line or through AI agents like Claude Code.

Key Features

  • Multi-Lye Support: NaOH (Bar), KOH (Liquid), and Dual-Lye (Hybrid).
  • Transparent Math: No hidden formulas. Every calculation is open source.
  • Ingredient Database: Customizable JSON-based oil library.
  • Property Analysis: Predict hardness, cleansing, conditioning, and more based on fatty acid profiles.
  • Markdown Export: Generate beautiful, printable recipe sheets.

Installation

pip install soap-calc

Quick Example

from soap_calc import SoapCalculator

# Load your recipe
calculator = SoapCalculator("my_recipe.json")
# Calculate
result = calculator.calculate()
# Print results
print(result)