Soap Making API
Soap-making and saponification maths as an API, computed locally and deterministically — the lye-calculator numbers every cold- and hot-process soaper needs, with the safety margin built in. The lye endpoint takes a list of oils as oil:grams pairs (olive, coconut, palm, shea, castor, lard, tallow and a couple of dozen more, each with its standard SAP value) and returns the sodium hydroxide (NaOH) or potassium hydroxide (KOH) to saponify them: lye = Σ(oil grams × SAP) × (1 − superfat), so 1 kg of coconut oil at 5 % superfat needs 169.1 g of NaOH (or 263.6 g of 90 %-pure KOH for liquid soap). It sizes the water by lye-to-water ratio, percentage of oils, or lye-solution concentration, adds the fragrance (a few percent of the oils) and totals the batch weight. The mould endpoint sizes a batch to a mould: oils to fill it ≈ volume(cm³) × 0.40, from a volume or length × width × height. SAP values are grams of NaOH per gram of oil. Everything is computed locally and deterministically, so it is instant and private. Ideal for soap-making, cosmetics, handmade-craft and maker app developers, lye-calculator and recipe tools, and soaping education. Pure local computation — no key, no third-party service, instant. Metric: grams, cm³, percent. Live, nothing stored. 2 compute endpoints. Lye is caustic — wear protection and double-check a new recipe; this is a planning aid.
api.oanor.com/soap-api