How saikrishna762/lekka-analytics-website works
Lekka Analytics is a services and solutions website with a floating AI assistant and enquiry capture. Visitors explore service, solution, and project content, then contact the business or use the assistant; the frontend sends chat and enquiry requests to a Cloudflare Worker, which connects to Gemini and Supabase as documented. The graph preserves the major marketing capabilities and the principal request flow. Some backend wiring and unsampled page implementations are documented in the README rather than inspected in source.
Main entry points: solutions/page.tsx Solutions page · services/page.tsx Services page · index.ts Worker API · app/page.tsx Home page
Components 30
Website experience
- Home page
src/app/page.tsx - Services page
src/app/services/page.tsx - Solutions page
src/app/solutions/page.tsx - Projects page
src/app/projects/page.tsx - Contact experience
src/app/contact/page.tsx - AI assistant
src/components/chat/LekkaAssistant.tsx - Contact form
src/components/sections/ContactForm.tsx
Offer and demonstrations
- Service catalog
src/data/services.ts - Service browser
src/components/sections/ServicesGrid.tsx - Solution content
src/data/solutions.ts - Solution matrix
src/components/sections/SolutionsMatrix.tsx - Excel insights demo
src/components/visualizations/ExcelToInsightsDemo.tsx - Architecture diagram
src/components/visualizations/ArchitectureDiagram.tsx - Project blueprints
src/components/sections/BlueprintShowcase.tsx - Reporting calculator
src/components/sections/ReportingAuditCalculator.tsx
Frontend services
- UI primitives
src/components/ui - Page header
src/components/layout/PageHeader.tsx - Navigation data
src/data/navigation.ts - SEO metadata
src/lib/seo.ts - API client
src/lib/api.ts - Payload validation
src/lib/validation.ts
Worker backend
- Worker API
worker/src/index.ts - CORS handling
worker/src/cors.ts - Request validation
worker/src/validate.ts - Gemini integration
worker/src/gemini.ts - Enquiry email
worker/src/email.ts - Enquiry database
worker/src/supabase.ts
Other components
- Visitor
- Google Gemini API
- Supabase PostgreSQL
Connections 35
- Visitor → Home page: browses
- Visitor → Services page: browses
- Visitor → Solutions page: browses
- Visitor → Projects page: browses
- Visitor → Contact experience: opens
- Home page → Services page: links to
src/app/page.tsx - Home page → Contact experience: links to
src/app/page.tsx - Services page → Service browser: renders
src/app/services/page.tsx - Services page → Reporting calculator: renders
src/app/services/page.tsx - Service browser → Service catalog: filters
src/components/sections/ServicesGrid.tsx - Solutions page → Solution matrix: renders
src/app/solutions/page.tsx - Solutions page → Excel insights demo: renders
src/app/solutions/page.tsx - Solutions page → Architecture diagram: renders
src/app/solutions/page.tsx - Solutions page → Solution content: reads
src/app/solutions/page.tsx - Projects page → Project blueprints: renders
src/app/projects/page.tsx - AI assistant → API client: sends requests
src/components/chat/LekkaAssistant.tsx - Contact form → API client: submits enquiry
- API client → Payload validation: uses types
src/lib/api.ts - API client → Worker API: posts chat and enquiries
src/lib/api.ts - Worker API → CORS handling: checks origins
- Worker API → Request validation: validates payloads
- Worker API → Gemini integration: dispatches chat
- Worker API → Enquiry email: handles enquiries
- Worker API → Enquiry database: stores enquiries
- Gemini integration → Google Gemini API: calls
- Enquiry database → Supabase PostgreSQL: writes records
- Services page → SEO metadata: builds metadata
src/app/services/page.tsx - Solutions page → SEO metadata: builds metadata
src/app/solutions/page.tsx - Projects page → SEO metadata: builds metadata
src/app/projects/page.tsx - Services page → Page header: renders
src/app/services/page.tsx - Solutions page → Page header: renders
src/app/solutions/page.tsx - Projects page → Page header: renders
src/app/projects/page.tsx - Home page → UI primitives: uses
src/app/page.tsx - Services page → UI primitives: uses
src/app/services/page.tsx - Navigation data → SEO metadata: provides site config
src/lib/seo.ts