A React-based frontend application that provides spiritual guidance from sacred texts across multiple religions and languages.
- Multi-Religious Support: Bhagavad Gita, Vedas, Quran, Bible, Guru Granth Sahib, Tripitaka, Tao Te Ching, Analects of Confucius, Dhammapada, Upanishads, Talmud, and Avesta
- Multi-Language Support: English, Hindi, Spanish, Portuguese, French, German, Arabic, Punjabi, Urdu, and more
- Interactive UI: Breathing background animations, floating particles, and spiritual loader
- Responsive Design: Works seamlessly on desktop, tablet, and mobile devices
- Performance Optimized: Lazy loading, code splitting, and efficient rendering
- React 18 - Modern React with hooks and functional components
- Vite - Fast build tool and development server
- Bootstrap 5 - Responsive UI framework
- FontAwesome - Icon library
- Franc-all - Comprehensive language detection for multiple scripts
- JSON-based mappings - Efficient book name translations
- Code Splitting - Lazy loading of components and chunks
- Service Worker - Caching and offline functionality
- Canvas Optimizations - Hardware-accelerated animations
- Memoization - React.memo and useMemo for performance
- Bundle Optimization - Tree shaking and minification
# Clone the repository
git clone <repository-url>
cd epic
# Install dependencies
npm install
# Start development server
npm run dev
# Build for production
npm run build
src/
├── components/ # React components
│ ├── BreathingBackground.jsx
│ ├── FloatingParticles.jsx
│ ├── GuidanceForm.jsx
│ ├── ResponseSection.jsx
│ └── ...
├── hooks/ # Custom React hooks
│ ├── useGuidance.js
│ └── useTheme.js
├── styles/ # CSS stylesheets
├── data/ # Static data files
│ └── book-name-mappings.json
├── utils.js # Utility functions
├── prompts.js # AI prompts configuration
└── App.jsx # Main application component
- Code Splitting: Separate chunks for React, UI libraries, and app logic
- Lazy Loading: ResponseSection component loaded on demand
- Tree Shaking: Unused code eliminated during build
- Minification: Aggressive code and CSS minification
- Memoization: Components and expensive calculations cached
- Canvas Optimization: Hardware acceleration for animations
- Debouncing: Input handlers optimized for performance
- Caching: Service worker for static assets and API responses
- Component Cleanup: Proper cleanup of event listeners and animations
- Efficient Parsing: Optimized response parsing algorithms
- Memory Monitoring: Performance metrics tracking
npm run dev
- Start development servernpm run build
- Build for productionnpm run preview
- Preview production buildnpm run clean
- Clean build directory
The application includes built-in performance monitoring:
- Parse time tracking
- Render time optimization
- API call performance
- Memory usage monitoring
The application is optimized for deployment on Vercel, Netlify, or any static hosting service. The build process creates optimized static files in the dist/
directory.
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
MIT License - see LICENSE file for details.