How mardnts28/claro works
Claro appears to be a health-conscious food product app, with a Flutter client, supporting edge services, and an informational website. The visible service workflow authenticates a request, routes health-profile operations, encrypts or decrypts health fields, and accesses Firestore; group-managed profiles add ownership and member checks. The README describes only a Flutter starter, and the tree omits the Dart application sources, so client features and the Gemini proxy’s role are not verifiable here. Website routes and documented privacy-policy capabilities are represented, but links between unsampled client features and services are omitted.
Main entry points: App.jsx Website router · index.ts HTTP routes · PrivacyPolicy.jsx Privacy policy · groupMemberHealthProfile.ts Group profile handlers
Components 22
Claro client
- Flutter app
- Native app shell
android/app/src/main/kotlin/com/claro/claro/MainActivity.kt - Food product info
- Product scanning
- Health groups
- Product reports
- Admin review
Health data service
- HTTP routes
health-data-worker/src/index.ts - Token verification
health-data-worker/src/verifyToken.ts - Group profile handlers
health-data-worker/src/groupMemberHealthProfile.ts - Field encryption
health-data-worker/src/crypto.ts - Firestore access
health-data-worker/src/firestore.ts
AI proxy
- Gemini proxy
claro-gemini-proxy/src/index.ts
Public website
- Website router
official-website/src/App.jsx - Home page
official-website/src/pages/Home.jsx - User guide
official-website/src/pages/UserGuide.jsx - Privacy policy
official-website/src/pages/PrivacyPolicy.jsx - Terms page
official-website/src/pages/TermsConditions.jsx - Contact page
official-website/src/pages/ContactUs.jsx
Other components
- App user
- Firestore
- Site visitor
Connections 20
- App user → Flutter app: uses
- Native app shell → Flutter app: starts
- HTTP routes → Token verification: verifies token
health-data-worker/src/index.ts - HTTP routes → Firestore access: reads profile
health-data-worker/src/index.ts - HTTP routes → Field encryption: encrypts fields
health-data-worker/src/index.ts - HTTP routes → Group profile handlers: routes group profile
health-data-worker/src/index.ts - Group profile handlers → Firestore access: checks and writes
health-data-worker/src/groupMemberHealthProfile.ts - Group profile handlers → Field encryption: encrypts fields
health-data-worker/src/groupMemberHealthProfile.ts - Firestore access → Firestore: reads and writes
health-data-worker/src/firestore.ts - Site visitor → Website router: visits
official-website/src/App.jsx - Website router → Home page: routes to
official-website/src/App.jsx - Website router → User guide: routes to
official-website/src/App.jsx - Website router → Privacy policy: routes to
official-website/src/App.jsx - Website router → Terms page: routes to
official-website/src/App.jsx - Website router → Contact page: routes to
official-website/src/App.jsx - Home page → Product scanning: explains
official-website/src/pages/Home.jsx - Home page → Food product info: explains
official-website/src/pages/Home.jsx - Privacy policy → Health groups: describes controls
official-website/src/pages/PrivacyPolicy.jsx - Privacy policy → Product reports: describes review
official-website/src/pages/PrivacyPolicy.jsx - Privacy policy → Admin review: describes
official-website/src/pages/PrivacyPolicy.jsx