How tvnl-charan/test-xss-vuln works
This repository implements a Nexus agency website: a React frontend presents company, services, portfolio, and contact content, while a FastAPI backend exposes corresponding content APIs plus contact submission and account signup/login. The README describes a testimonials app, but the sampled source and router index instead support the agency-site architecture shown here. Frontend-to-API calls are not evidenced in the excerpts, so no such links are asserted; unsampled router behavior is represented only where the source index supports its dependencies.
Main entry points: App.js Page coordinator · main.py FastAPI application · store.py Content and memory stores · responses.py Response envelopes
Components 21
Website UI
- Page coordinator
packages/web-app/src/App.js - Navigation bar
packages/web-app/src/components/Navbar.js - Site footer
packages/web-app/src/components/Footer.js - Home page
packages/web-app/src/pages/Home.js - About page
packages/web-app/src/pages/About.js - Services page
packages/web-app/src/pages/Services.js - Work page
packages/web-app/src/pages/Work.js - Contact page
packages/web-app/src/pages/Contact.js
API Routing
- FastAPI application
packages/api-backend/main.py - Authentication routes
packages/api-backend/routers/auth.py - Contact route
packages/api-backend/routers/contact.py - Service routes
packages/api-backend/routers/services.py - Project routes
packages/api-backend/routers/projects.py - Statistics routes
packages/api-backend/routers/stats.py - Team routes
packages/api-backend/routers/team.py
Domain Data
- Content and memory stores
packages/api-backend/data/store.py
Shared API Logic
- Auth request models
packages/api-backend/models/auth.py - Contact request model
packages/api-backend/models/contact.py - Response envelopes
packages/api-backend/utils/responses.py
Other components
- Site visitor
- API client
Connections 29
- Site visitor → Page coordinator: uses
- Page coordinator → Navigation bar: renders
packages/web-app/src/App.js - Page coordinator → Site footer: renders
packages/web-app/src/App.js - Page coordinator → Home page: selects page
packages/web-app/src/App.js - Page coordinator → About page: selects page
packages/web-app/src/App.js - Page coordinator → Services page: selects page
packages/web-app/src/App.js - Page coordinator → Work page: selects page
packages/web-app/src/App.js - Page coordinator → Contact page: selects page
packages/web-app/src/App.js - API client → FastAPI application: requests
- FastAPI application → Statistics routes: registers
packages/api-backend/main.py - FastAPI application → Service routes: registers
packages/api-backend/main.py - FastAPI application → Project routes: registers
packages/api-backend/main.py - FastAPI application → Team routes: registers
packages/api-backend/main.py - FastAPI application → Contact route: registers
packages/api-backend/main.py - FastAPI application → Authentication routes: registers
packages/api-backend/main.py - Service routes → Content and memory stores: reads services
packages/api-backend/routers/services.py - Service routes → Response envelopes: wraps result
packages/api-backend/routers/services.py - Project routes → Content and memory stores: reads projects
packages/api-backend/routers/projects.py - Project routes → Response envelopes: wraps result
packages/api-backend/routers/projects.py - Statistics routes → Content and memory stores: reads statistics
packages/api-backend/routers/stats.py - Statistics routes → Response envelopes: wraps result
packages/api-backend/routers/stats.py - Team routes → Content and memory stores: reads team
packages/api-backend/routers/team.py - Team routes → Response envelopes: wraps result
packages/api-backend/routers/team.py - Contact route → Contact request model: validates with
packages/api-backend/routers/contact.py - Contact route → Content and memory stores: appends submission
packages/api-backend/routers/contact.py - Contact route → Response envelopes: wraps result
packages/api-backend/routers/contact.py - Authentication routes → Auth request models: validates with
packages/api-backend/routers/auth.py - Authentication routes → Content and memory stores: reads and updates users
packages/api-backend/routers/auth.py - Authentication routes → Response envelopes: wraps result
packages/api-backend/routers/auth.py