Version 5
What Would It Take to Go Cross-Platform?
TypeScript · USDA FoodData Central + AI · Android + iOS
As Kidney Buddy’s functionality and cross-platform goals expanded, our original development approach became increasingly limiting. Alan and I co-led the transition toward TypeScript and AI-assisted programming. Version 5 adopted a local-first architecture: high-frequency data is saved on the phone first for faster performance, offline usability, and reduced network traffic, while only necessary data is synchronized to Supabase for services such as authentication, subscription and AI-usage enforcement, and optional backup and restore. This version also added Android + iOS support and sodium tracking for the first time. Version 5 is now published on both Google Play and the Apple App Store.
Version 5 also changed how we used AI. Rather than relying on AI for every nutritional analysis, we integrated USDA FoodData Central as the first source for common foods and reserved AI for cases requiring more complex analysis. This improved performance while reducing unnecessary AI usage and associated costs, reflecting a more deliberate product decision: only using AI where it adds value.
Product infrastructureLocal-first storageUSDA FoodData Central firstAI for complex casesSelective cloud syncBackup & restoreSubscriptionsAndroid + iOSSodium tracking introduced