How srikanth198v/weblens-pro works
WebLens Pro is a website-audit SaaS: a visitor submits a URL, an analysis run gathers and interprets evidence, and a dashboard presents scores and actionable recommendations. The product also supports accounts, saved and shared reports, comparisons, exports, and conversational questions. The graph reflects inspected excerpts and SOURCE INDEX references; several feature modules and route implementations were not sampled, so their internal wiring is omitted or marked unverified.
Main entry points: live-engine.ts Live engine · build-report.ts Report builder · report.tsx Report view · use-session.ts Session hook
Components 28
Entry and identity
- Landing route
src/routes/index.tsx - URL submission
src/components/landing/url-analyze-form.tsx - Account access
src/routes/auth.tsx - Session hook
src/hooks/use-session.ts - Supabase client
src/integrations/supabase/client.ts
Audit pipeline
- Analysis route
src/routes/analysis.tsx - Analysis run
src/hooks/use-analysis-run.ts - Live engine
src/lib/analysis/live-engine.ts - Inspection functions
src/lib/analysis/inspect.functions.ts - Evidence model
src/lib/analysis/evidence.ts - Site understanding
src/lib/analysis/understanding.ts - Evidence scoring
src/lib/analysis/score-from-evidence.ts - Visual analysis
src/lib/visual/analyze.functions.ts
Insights and chat
- Report builder
src/lib/dashboard/build-report.ts - Recommendation context
src/lib/analysis/recommendation-context.ts - Dashboard route
src/routes/dashboard.tsx - Dashboard presentation
src/components/dashboard - Ask WebLens UI
src/components/chat/ask-weblens.tsx - Chat service
src/lib/chat/ask.functions.ts
Reports and library
- Report library hook
src/hooks/use-report-library.ts - Local report store
src/lib/reports/storage.ts - Cloud reports
src/lib/reports/cloud.ts - Report view
src/routes/report.tsx - Report presentation
src/lib/report/build-report-view.ts - Report comparison
src/lib/report/compare.ts - Report sharing
src/lib/reports/share.ts - Report export
src/lib/dashboard/export.ts
Other components
- Visitor
Connections 29
- Visitor → Landing route: opens
src/routes/index.tsx - Landing route → URL submission: renders
src/routes/index.tsx - Landing route → Analysis route: navigates
src/routes/index.tsx - URL submission → Analysis route: submits URL
- Analysis route → Analysis run: starts run
- Analysis run → Live engine: runs analysis
- Live engine → Inspection functions: invokes
src/lib/analysis/live-engine.ts - Live engine → Evidence scoring: scores evidence
src/lib/analysis/live-engine.ts - Live engine → Site understanding: interprets
src/lib/analysis/live-engine.ts - Live engine → Evidence model: uses types
src/lib/analysis/live-engine.ts - Report builder → Evidence model: reads
src/lib/dashboard/build-report.ts - Report builder → Evidence scoring: uses scores
src/lib/dashboard/build-report.ts - Report builder → Site understanding: uses
src/lib/dashboard/build-report.ts - Report builder → Recommendation context: builds context
src/lib/dashboard/build-report.ts - Recommendation context → Evidence model: classifies
src/lib/analysis/recommendation-context.ts - Dashboard route → Dashboard presentation: renders
src/routes/dashboard.tsx - Dashboard route → Report builder: loads report
- Ask WebLens UI → Chat service: asks
src/components/chat/ask-weblens.tsx - Account access → Session hook: checks session
src/routes/auth.tsx - Session hook → Supabase client: reads auth
src/hooks/use-session.ts - Report library hook → Session hook: uses identity
src/hooks/use-report-library.ts - Report library hook → Local report store: reads and writes
src/hooks/use-report-library.ts - Report library hook → Cloud reports: loads cloud reports
src/hooks/use-report-library.ts - Report view → Report presentation: builds view
src/routes/report.tsx - Report view → Session hook: checks identity
src/routes/report.tsx - Report comparison → Report view: compares reports
- Report sharing → Cloud reports: uses report data
- Report export → Report view: exports report
- Visual analysis → Live engine: contributes analysis