How guilhermealmeidao/caloriesday works
Calories Day is a browser-based meal and nutrient tracker. A first-time user enters personal measurements to establish daily nutrient limits; the main screen then records meals, totals their nutrients, and shows progress against those limits. Users can also manage reusable saved foods and share their local history and personal data through a shortened link and QR code. The README documents these capabilities; some setup, settings, and import details are represented at subsystem level because their implementations were not excerpted.
Main entry points: components/index.tsx Dashboard coordinator · logsTable/index.tsx Daily log & totals · barTools/index.tsx Action toolbar · page.tsx Home route
Components 19
Setup & limits
- Home route
src/app/page.tsx - Personal setup
src/components/startModule.tsx - Personal settings
src/components/barTools/settingsDialog - Browser storage
Daily food tracking
- Dashboard coordinator
src/components/index.tsx - Meal entry
src/components/barTools/addFoodDialog/index.tsx - Daily log & totals
src/components/logsTable/index.tsx - Edit daily entry
src/components/logsTable/editDialog.tsx - Delete daily entry
src/components/logsTable/trashDialog.tsx - Nutrient progress
src/components/barProgress.tsx - Action toolbar
src/components/barTools/index.tsx
Saved foods & sharing
- Saved foods
src/components/barTools/addFoodDialog/addFoodSaved/index.tsx - Edit saved food
src/components/barTools/addFoodDialog/addFoodSaved/editFoodDialog/index.tsx - Share history
src/components/barTools/shareDialog.tsx - URL shortener client
src/http/getSmallUrl.ts - TinyURL service
- Shared-data route
src/app/getShare/page.tsx
Interface foundation
- UI primitives
src/components/ui
Other components
- User
Connections 24
- User → Home route: opens
README.md - Home route → Personal setup: starts setup
src/app/page.tsx - Home route → Dashboard coordinator: renders
src/app/page.tsx - Personal setup → Browser storage: stores profile
README.md - Personal settings → Browser storage: updates profile
README.md - Dashboard coordinator → Browser storage: loads daily data
src/components/index.tsx - Dashboard coordinator → Daily log & totals: renders log
src/components/index.tsx - Dashboard coordinator → Nutrient progress: renders progress
src/components/index.tsx - Dashboard coordinator → Action toolbar: renders actions
src/components/index.tsx - Daily log & totals → Browser storage: reads food log
README.md - Daily log & totals → Edit daily entry: opens editor
src/components/logsTable/index.tsx - Daily log & totals → Delete daily entry: opens deletion
src/components/logsTable/index.tsx - Action toolbar → Meal entry: opens entry
src/components/barTools/index.tsx - Action toolbar → Personal settings: opens settings
src/components/barTools/index.tsx - Action toolbar → Share history: opens sharing
src/components/barTools/index.tsx - Meal entry → Browser storage: saves meal
README.md - Meal entry → Saved foods: shows saved foods
src/components/barTools/addFoodDialog/index.tsx - Saved foods → Browser storage: adds saved meal
src/components/barTools/addFoodDialog/addFoodSaved/index.tsx - Saved foods → Edit saved food: opens editor
src/components/barTools/addFoodDialog/addFoodSaved/index.tsx - Share history → Browser storage: reads share data
src/components/barTools/shareDialog.tsx - Share history → URL shortener client: requests short link
src/components/barTools/shareDialog.tsx - URL shortener client → TinyURL service: shortens URL
README.md - User → Shared-data route: opens shared link
README.md - UI primitives → Dashboard coordinator: supports interface
src/components/index.tsx