How rs9313399-dot/saatvik-cars works
Saatvik Cars is a used-car marketplace and dealership site. Customers browse and filter inventory, inspect listings, and contact the dealership through test-drive, callback, service, or sell-car inquiries; administrators manage listings and review submissions. The graph also preserves documented content, trust, chat, newsletter, and SEO capabilities. Source excerpts show selected API-to-database and valuation/authentication calls; other links are limited to README-documented relationships because those implementation files were not sampled.
Main entry points: db.ts Neon database · app Site pages · FeaturedCars.tsx Inventory browsing · cars Inventory API
Components 23
Marketplace experience
- Site pages
src/app - Inventory browsing
src/components/cars/FeaturedCars.tsx - Inventory filters
src/components/cars/FilterSidebar.tsx - Fitness pages
src/components/fitness
Dealership operations
- Admin panel
src/components/cars/AdminPanel.tsx - Test drive leads
src/app/api/leads/route.ts - Sell-car inquiry
src/app/api/sell-inquiry/route.ts - Service inquiries
src/app/api/service-inquiry/route.ts - Image uploads
src/app/api/upload/route.ts
Content and trust
- Customer reviews
src/components/cars/CustomerReviews.tsx - Testimonials API
src/app/api/testimonials/route.ts - Blog content
src/app/api/blog/route.ts - Live chat
src/app/api/chat/route.ts - Newsletter
src/app/api/newsletter/route.ts - SEO sitemap
src/app/sitemap.ts
Application services
- Inventory API
src/app/api/cars - Admin authentication
src/lib/auth.ts - Car valuation
src/lib/valuation.ts - Object storage
src/lib/storage.ts - Neon database
src/lib/db.ts - Dealership details
src/lib/business.ts
Other components
- Customer
- Administrator
Connections 31
- Customer → Site pages: visits
- Site pages → Inventory browsing: presents
- Customer → Inventory browsing: browses
- Inventory browsing → Inventory filters: uses
src/components/cars/FeaturedCars.tsx - Inventory browsing → Inventory API: fetches listings
src/components/cars/FeaturedCars.tsx - Inventory API → Neon database: reads and writes
src/app/api/cars/route.ts - Administrator → Admin panel: manages inventory
- Admin panel → Inventory API: manages listings
- Inventory API → Admin authentication: checks access
src/app/api/cars/route.ts - Admin authentication → Neon database: checks admin
src/lib/auth.ts - Customer → Test drive leads: requests test drive
src/app/api/leads/route.ts - Test drive leads → Neon database: stores leads
src/app/api/leads/route.ts - Customer → Sell-car inquiry: requests valuation
- Sell-car inquiry → Car valuation: estimates value
src/app/api/sell-inquiry/route.ts - Sell-car inquiry → Neon database: stores inquiry
src/app/api/sell-inquiry/route.ts - Customer → Service inquiries: requests service
src/app/api/service-inquiry/route.ts - Service inquiries → Neon database: stores inquiry
src/app/api/service-inquiry/route.ts - Administrator → Service inquiries: reviews inquiries
src/app/api/service-inquiry/route.ts - Administrator → Image uploads: uploads images
- Image uploads → Object storage: authorizes uploads
src/app/api/upload/route.ts - Customer → Customer reviews: submits review
- Customer reviews → Testimonials API: loads and submits
- Testimonials API → Neon database: reads and writes
src/app/api/testimonials/route.ts - Customer → Blog content: reads posts
- Customer → Live chat: chats
- Live chat → Neon database: persists messages
src/app/api/chat/route.ts - Customer → Newsletter: subscribes
src/app/api/newsletter/route.ts - Newsletter → Neon database: stores subscribers
src/app/api/newsletter/route.ts - Site pages → SEO sitemap: provides sitemap
- Site pages → Dealership details: uses details
src/app/api/chat/route.ts - Customer → Fitness pages: visits