How aaryan-sharmaa/pranapulse works
This repository is a yoga-focused web app with an AI chat assistant. Users browse the home/about pages or open a chat, send health-related questions, and receive personalized yoga guidance generated by Groq. The frontend offers two chat interfaces that use the same backend endpoint. The sampled sources show the request handling and model call; database configuration is present, but no sampled runtime code uses it, so it is omitted.
Main entry points: App.jsx App router · server.js HTTP server · Ai.jsx Ask Prana · chatRoute.js Chat API route
Components 14
Web experience
- App router
Client/src/App.jsx - Navigation
Client/src/components/common/header/NavBar.jsx - Home page
Client/src/components/Body/Front.jsx - About page
Client/src/components/about/About.jsx - Footer
Client/src/components/common/footer/Footer.jsx - Not found
Client/src/components/common/errorPage/Error.jsx
Chat experience
- Ask Prana
Client/src/components/ai/Ai.jsx - Yoga Assistant
Client/src/components/yogaChatbot/YogaChatbot.jsx - Loading indicator
Client/src/components/constants/Loader.jsx
Chat backend
- Chat API route
Server/routes/chatRoute.js - HTTP server
Server/utils/server.js - Chat controller
Server/controllers/chatController.js
Other components
- Visitor
- Groq model service
Connections 22
- Visitor → App router: opens
- App router → Navigation: renders
- App router → Footer: renders
- App router → Home page: routes to
- App router → About page: routes to
- App router → Ask Prana: routes to
- App router → Yoga Assistant: routes to
- App router → Not found: handles route errors
- Visitor → Navigation: selects page
- Visitor → Ask Prana: asks questions
- Visitor → Yoga Assistant: asks questions
- Ask Prana → Loading indicator: shows while waiting
- Ask Prana → HTTP server: posts chat
- Yoga Assistant → HTTP server: posts chat
- HTTP server → Chat API route: mounts route
- Chat API route → Chat controller: dispatches
- Chat controller → Groq model service: requests completion
- Groq model service → Chat controller: returns completion
- Chat controller → Chat API route: returns response
- Chat API route → HTTP server: sends JSON
- HTTP server → Ask Prana: returns chat response
- HTTP server → Yoga Assistant: returns chat response