How codemisba/visual-lingo- works
VisuaLingo AI combines website summarization and translation with image/text-to-language assistance. In the website workflow, a user selects a language and submits a URL; the React analyzer calls the Flask backend, which fetches and extracts page text, analyzes it, translates the result, and returns both versions for display and browser speech. A separate Supabase function implements a website-analysis path, while another handles image captioning/text extraction and translation. The excerpts do not show these Supabase functions wired to the React UI, so they are shown as independent HTTP entry points; Backend.py is a separate mock image-upload route.
Main entry points: website_analyzer_backend.py Flask analyzer · analyze-website/index.ts Edge website analyzer · vision-speak/index.ts Vision and speech · WebsiteAnalyzer.tsx Website analyzer
Components 12
Web interface
- Website analyzer
src/components/WebsiteAnalyzer.tsx - Language selector
src/components/LanguageSelector.tsx - Browser speech
Website analysis
- Flask analyzer
website_analyzer_backend.py - Edge website analyzer
supabase/functions/analyze-website/index.ts
Vision and language
- Vision and speech
supabase/functions/vision-speak/index.ts
Image upload prototype
- Image upload mock
Backend.py
Other components
- Visitor
- Target website
- Lovable AI gateway
- LibreTranslate
- Uploaded image
Connections 18
- Visitor → Website analyzer: submits URL
src/components/WebsiteAnalyzer.tsx - Website analyzer → Flask analyzer: POSTs analysis
src/components/WebsiteAnalyzer.tsx - Flask analyzer → Target website: fetches page
website_analyzer_backend.py - Flask analyzer → Lovable AI gateway: requests analysis
website_analyzer_backend.py - Flask analyzer → Lovable AI gateway: requests translation
website_analyzer_backend.py - Flask analyzer → LibreTranslate: fallback translation
website_analyzer_backend.py - Website analyzer → Browser speech: speaks results
src/components/WebsiteAnalyzer.tsx - Visitor → Edge website analyzer: submits URL
supabase/functions/analyze-website/index.ts - Edge website analyzer → Target website: fetches page
supabase/functions/analyze-website/index.ts - Edge website analyzer → Lovable AI gateway: requests analysis
supabase/functions/analyze-website/index.ts - Edge website analyzer → Lovable AI gateway: requests translation
supabase/functions/analyze-website/index.ts - Edge website analyzer → Visitor: returns results
supabase/functions/analyze-website/index.ts - Visitor → Vision and speech: submits image or text
supabase/functions/vision-speak/index.ts - Vision and speech → Lovable AI gateway: requests caption and translation
supabase/functions/vision-speak/index.ts - Vision and speech → LibreTranslate: fallback translation
supabase/functions/vision-speak/index.ts - Vision and speech → Visitor: returns result
supabase/functions/vision-speak/index.ts - Visitor → Image upload mock: uploads images
Backend.py - Image upload mock → Uploaded image: saves image
Backend.py