LingualRAG is a fully responsive, production-ready multilingual Retrieval-Augmented Generation (RAG) system with beautiful animations, comprehensive security, and optimized performance for mobile, tablet, iPad, and desktop devices.
- π Multilingual Support - 20+ languages with RTL detection
- π± Fully Responsive - Mobile, tablet, iPad, and desktop optimized
- π¨ Professional UI - Beautiful animations and modern design
- π Highly Secure - JWT, OTP, HTTPS, secure cookies
- β‘ Lightning Fast - Optimized performance, streaming responses
- ποΈ Production Ready - Full TypeScript, error handling, monitoring
- π Real-time Analytics - Admin dashboard with charts
- π¬ Smooth Animations - Framer Motion, 60fps performance
- π Easy Integration - Axios API client with interceptors
- π Scalable - Designed for high-traffic applications
# 1. Clone repository
git clone <repo>
cd vercel/share/v0-project
# 2. Install dependencies
pnpm install
# 3. Set environment variables
NEXT_PUBLIC_API_URL=https://your-backend.onrender.com
NEXT_PUBLIC_APP_NAME=LingualRAG
NEXT_PUBLIC_SENTRY_DSN=https://xxxxx@sentry.io/xxxxx
# 4. Deploy
vercel --prodOr use Vercel Dashboard:
- Connect GitHub repository
- Set environment variables
- Click "Deploy"
π See QUICK_START.md for step-by-step guide
- QUICK_START.md - Fast deployment guide
- DEPLOYMENT.md - Complete deployment docs
- PROJECT_SUMMARY.md - Technical details
- API Documentation - Backend API spec
Frontend (Vercel)
β
Next.js 16 + React 19 + TypeScript
β
Axios API Client (with interceptors)
β
Backend API (Node.js/Python)
β
Database (PostgreSQL/MongoDB)
| Layer | Technology | Purpose |
|---|---|---|
| Framework | Next.js 16 | React meta-framework |
| Language | TypeScript | Type safety |
| Styling | Tailwind CSS | Utility-first CSS |
| UI Components | shadcn/ui | Pre-built components |
| Animations | Framer Motion | Smooth animations |
| HTTP Client | Axios | API requests |
| Charts | Recharts | Data visualization |
| Icons | lucide-react | SVG icons |
| File Upload | react-dropzone | Drag & drop files |
| Auth | JWT + OTP | Secure authentication |
| State | React Hooks + SWR | Client state management |
- OTP-based login - No password hassle
- JWT tokens - Secure session management
- Auto refresh - Seamless token renewal
- Protected routes - Automatic redirects
- HTTP-only cookies - Enhanced security
- Real-time streaming - SSE for instant responses
- RTL support - Auto-detect Arabic, Urdu, Hebrew, etc.
- Source citations - RAG context with references
- Message actions - Copy, delete, regenerate
- Typing indicators - See when AI is responding
- Error recovery - Graceful failure handling
- Drag & drop upload - Intuitive file upload
- Real-time progress - Watch upload status
- Smart processing - Automatic language detection
- Multi-format - PDF, DOC, DOCX, TXT support
- Search capability - Find documents quickly
- Version tracking - Document history
- Real-time metrics - Live statistics
- Language analytics - Distribution charts
- User management - User list and stats
- System health - Performance monitoring
- Auto-refresh - 30-second updates
- Export ready - Metrics for reports
- Profile management - Edit user info
- Language selection - 20+ languages
- Password change - Secure password updates
- Preferences - Save user preferences
- Dark mode ready - Setup included
- Mobile First - Optimized for phones
- Tablet Ready - Perfect on iPad
- Desktop Optimized - Full-featured UI
- Touch Friendly - 44px+ touch targets
- Fluid Typography - Scales with screen
| Device | Viewport | Status |
|---|---|---|
| iPhone 12/13 | 390x844 | β Optimized |
| Android Phone | 360x800 | β Optimized |
| iPad | 768x1024 | β Optimized |
| iPad Pro | 1024x1366 | β Optimized |
| Desktop | 1920x1080 | β Optimized |
| Large Monitor | 2560x1440 | β Optimized |
β
HTTPS enforcement
β
JWT token validation
β
Secure HTTP-only cookies
β
CSRF protection (SameSite)
β
XSS prevention (CSP headers)
β
Input validation & sanitization
β
Error boundary protection
β
API error masking
β
Rate limiting support
β
Environment variable protection
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
Referrer-Policy: strict-origin-when-cross-origin
- LCP (Largest Contentful Paint): < 2.5s
- FID (First Input Delay): < 100ms
- CLS (Cumulative Layout Shift): < 0.1
- TTFB (Time to First Byte): < 600ms
- β Code splitting per route
- β Image optimization (WebP, AVIF)
- β CSS minification
- β JavaScript compression
- β Lazy loading components
- β Asset caching strategy
- β CDN delivery (Vercel)
- Fade in (150ms)
- Slide up (300ms)
- Scale in (200ms)
- Stagger effects
- Hover effects
- Button feedback
- Loading spinners
- Pulse effects
- Bounce animations
- Smooth transitions
- No layout shifts
- GPU accelerated
- 60fps performance
- 20+ Languages - Full language support
- RTL Detection - Auto-detect right-to-left text
- Font Support - Noto Nastaliq for Urdu
- Text Direction - Automatic LTR/RTL handling
- Language Settings - User preference storage
Arabic, Chinese, Dutch, English, French, German, Hebrew, Hindi, Hungarian, Italian, Japanese, Korean, Polish, Portuguese, Russian, Spanish, Swedish, Thai, Turkish, Urdu, Vietnamese, and more...
POST /auth/send-otp - Send OTP to email
POST /auth/login - Login with email + OTP
POST /auth/signup - Register new user
GET /auth/me - Get current user
POST /auth/refresh - Refresh JWT token
POST /chat/message - Send a message
GET /chat/stream - Stream response (SSE)
GET /sessions/{id} - Get session
GET /sessions/{id}/messages - Get history
POST /sessions - Create session
DELETE /messages/{id} - Delete message
POST /documents/upload - Upload document
GET /documents - List documents
GET /documents/{id} - Get document
GET /documents/{id}/status - Check status
DELETE /documents/{id} - Delete document
GET /documents/search - Search documents
GET /admin/analytics - Get analytics data
GET /admin/users - List all users
GET /admin/users/{id} - Get user details
DELETE /admin/users/{id} - Delete user
GET /admin/users/{id}/stats - User statistics
PUT /settings/profile - Update profile
POST /settings/change-password - Change password
GET /settings/preferences - Get preferences
PUT /settings/preferences - Update preferences
vercel/share/v0-project/
βββ app/
β βββ (auth)/
β β βββ login/page.tsx
β β βββ signup/page.tsx
β βββ (protected)/
β β βββ chat/page.tsx
β β βββ documents/page.tsx
β β βββ admin/page.tsx
β β βββ settings/page.tsx
β βββ layout.tsx
β βββ page.tsx
β βββ globals.css
βββ components/
β βββ ProtectedLayout.tsx
β βββ Sidebar.tsx
β βββ Providers.tsx
β βββ ui/ (shadcn components)
βββ hooks/
β βββ useAuth.ts
β βββ useChat.ts
β βββ use-mobile.tsx
βββ lib/
β βββ auth.ts
β βββ api-client.ts
β βββ api-services.ts
βββ types/
β βββ index.ts
β βββ rtl-detect.d.ts
βββ public/
β βββ logo.png
β βββ robots.txt
βββ config files
# Install
pnpm install
# Environment
cp .env.local.example .env.local
# Development
pnpm dev
# Build
pnpm build
# Type check
pnpm tsc --noEmitpnpm dev # Start dev server
pnpm build # Production build
pnpm start # Start production server
pnpm lint # Run ESLint
pnpm type-check # Run TypeScript checker- Image optimization
- Security headers
- Performance settings
- Experimental features
- Design tokens
- Custom colors
- Font configuration
- Responsive breakpoints
- TypeScript strictness
- Path aliases
- Module resolution
- Environment variables
- Build command
- Deployment regions
Before deploying to production:
- Update logo (public/logo.png)
- Change colors in globals.css
- Set backend API URL
- Configure Sentry DSN
- Test all features locally
- Run production build
- Check TypeScript errors
- Test on mobile/tablet
- Verify animations work
- Check security headers
- Enable monitoring
- Set up error tracking
- Configure custom domain
- Enable analytics
- Test email (OTP)
Q: "Cannot connect to API"
- Check NEXT_PUBLIC_API_URL environment variable
- Verify backend is running
- Check CORS headers on backend
- Review network tab in DevTools
Q: "Responsive design broken"
- Clear browser cache (Ctrl+Shift+Delete)
- Test in Chrome DevTools device mode
- Check mobile viewport settings
- Verify Tailwind compilation
Q: "Build fails on Vercel"
- Check environment variables
- Review Vercel build logs
- Verify TypeScript compilation
- Check for missing dependencies
Q: "Animations not smooth"
- Check browser DevTools Performance tab
- Verify GPU acceleration enabled
- Check Framer Motion versions
- Test in production build (not dev)
- Real user monitoring
- Core Web Vitals tracking
- Performance insights
- Deployment analytics
- Error tracking
- Performance monitoring
- Source maps
- Replay session recordings
- Admin dashboard metrics
- User engagement
- Language distribution
- Query patterns
Replace: /public/logo.png
Size: 1024x1024px (PNG)
/* /app/globals.css */
:root {
--primary: 79 70 229; /* Change to your brand RGB */
}- Vercel Dashboard β Domains
- Add domain
- Update DNS records
- SSL auto-provisioned
/* /app/globals.css */
@keyframes customAnimation {
from { ... }
to { ... }
}- Next.js Documentation
- React Documentation
- TypeScript Handbook
- Tailwind CSS Docs
- Framer Motion Guide
- Vercel Deployment Guide
- Check QUICK_START.md
- Review DEPLOYMENT.md
- Check PROJECT_SUMMARY.md
- Review code comments
- Check component examples
- Check existing issues
- Provide detailed description
- Include error messages
- Share reproduction steps
This project is proprietary and confidential. All rights reserved.
- Next.js - React framework
- TypeScript - Type safety
- Tailwind CSS - Styling
- shadcn/ui - Components
- Framer Motion - Animations
- Axios - HTTP client
- Recharts - Charts
Built with attention to detail, production best practices, and modern web standards.
- Deploy to Vercel - 5 minute setup
- Configure Backend - Connect your API
- Customize Branding - Make it yours
- Monitor & Scale - Setup analytics
Ready to launch? β QUICK_START.md
LingualRAG Β© 2026 - Multilingual AI-Powered RAG System
Status: β Production Ready | Last Updated: May 2026 | Version: 1.0.0