Skip to content

aariz51/Trustit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trustit

Trustit is an open-source Flutter and Node.js application for analyzing consumer product labels. Users can scan the front and back of a food, cosmetic, supplement, or household product, then receive an AI-assisted safety breakdown with ingredient-level risk notes, scores, summaries, and scan history.

The project includes a cross-platform Flutter app, an Express backend, OpenAI-powered product analysis, AI chat support, subscription handling, and UI design screenshots.

Screenshots

Trustit splash screen Trustit image confirmation screen Trustit scan history screen

Features

  • Product label scanning with front and back image capture
  • AI product analysis for foods, cosmetics, supplements, beverages, and household products
  • Ingredient extraction with risk levels and plain-language explanations
  • Safety, efficacy, transparency, and overall scoring
  • Scan history saved locally with Hive
  • AI assistant for ingredient and food-safety questions
  • Flutter mobile app with onboarding, paywall, profile, camera, history, and analysis screens
  • Express API with image upload, health check, analysis, chat, legal pages, and receipt verification routes
  • Local storage, provider-based app state, and route-based app navigation

Tech stack

  • Flutter and Dart
  • Provider, GoRouter, Hive, Dio, Camera, Image Picker
  • Node.js and Express
  • OpenAI API for product analysis and chat
  • Multer for image uploads
  • In-app purchase support

Repository structure

trustlit_app/       Flutter mobile application
trustlit_backend/   Express API and AI analysis backend
ui_designs/         Product and interface screenshots

Getting started

Backend

cd trustlit_backend
npm install
cp .env.example .env
npm run dev

Set the required environment variables in trustlit_backend/.env.

OPENAI_API_KEY=your_openai_api_key
PORT=3000
NODE_ENV=development

Flutter app

cd trustlit_app
flutter pub get
flutter run

The app expects the backend API to be reachable from the configured API service in trustlit_app/lib/services/api_service.dart.

API overview

GET  /api/health
POST /api/analyze
POST /api/ai-chat
POST /api/verify-receipt
GET  /privacy-policy
GET  /terms

Notes

Trustit is designed as a consumer-facing product safety companion. AI analysis should be treated as informational support, not as medical, dietary, or professional safety advice.

License

No license has been selected yet.

About

Open-source Flutter and Node.js app for AI-assisted product label and ingredient safety analysis.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors