Sugar Sense releases open source glucose math libraries for CGM app developers
The team behind Sugar Sense, a CGM companion app linked to Nightscout, has open-sourced two zero-dependency libraries — sugarsense-glucose-units on npm and sugarsense-units on RubyGems — to standardize glucose data handling. The packages encode five production-tested rules covering unit conversion between mg/dL and mmol/L, zone classification, trend arrows, stale reading detection, and Time in Range calculations. Both libraries are released under the MIT license and reflect the exact conventions used in the Sugar Sense production app. The developers say the rules are valuable even for those who skip the packages, targeting anyone building Nightscout plugins, dashboards, or watch faces. The source code is publicly available on GitHub, with issues and pull requests welcome.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in