nx_soda_design.nx
buildroot/runtime/nx_soda_design.nx
about
nx_soda_design.nx -- CRAFT-SODA capstone: the "AIR-TO-SODA" chain.
The operator's thesis: one air intake -> pure water (harvested) + CO2 ->
nanobubble carbonation -> crystallized-citrus flavor -> craft soda on
demand, like a SodaStream but sovereign end-to-end. This organ composes
the pillars into ONE scored craft soda and a per-glass dispense recipe:
WATER (pure, low-TDS = a clean canvas so citrus is unmasked)
+ FIZZ (nx_soda_carbonation: nanobubble CO2, no heavy equipment)
+ FLAVOR (nx_soda_flavor: smooth strong SUGAR-FREE citric:malic blend)
-> a craft_score and an on-demand crystal dose.
MEASURED EXCEEDS (gate-checked, see nx_soda_design_test) -- the SYSTEM-level
claim that every pillar is load-bearing:
- the clean cold chain scores high AND is sugar-free by construction
- WARM water breaks the "no heavy equipment" promise (needs >5 bar) and
drops the score -- carbonating cold is what keeps the gear compact
- HARD (high-TDS) water muddies the canvas and drops the score
- the on-demand per-glass crystal dose is a sane craft quantity
No single number is hand-set; each falls out of the composed physics.
genealogy_id: nishi_soda_carbonation_2026 + nishi_soda_flavor_2026
+ nishi_water_awg_2026 (pure-canvas premise) + air_to_soda_2026
dependencies 3 imports · 1 importers
imports: nx_syscalls.nxnx_soda_carbonation.nxnx_soda_flavor.nx
imported by: nx_soda_design_test.nx
structs
| 33 | struct NxCraftSoda |
consts
| 30 | const SODA_CITRIC_MW: i64 = 192 |
| 31 | const SODA_MALIC_MW: i64 = 134 |
functions
| 55 | func soda_water_purity_milli(tds_ppm: i64) -> i64 called by 1: soda_craft |
| 64 | func soda_craft_score_milli(smoothness: i64, clarity: i64, intensity: i64, purity: i64, nanobubble_ok: i64) -> i64 called by 1: soda_craft |
| 73 | func soda_craft(serve_temp_c: i64, target_sour_milli: i64, water_tds_ppm: i64) -> *NxCraftSoda |
| 100 | func soda_glass_crystal_mg(cs: *NxCraftSoda, glass_ml: i64) -> i64 called by 1: main |