Sanskrit Setu (संस्कृत सेतु) is an immersive, modern, and interactive mobile application built with React Native and Expo. It bridges ancient Indian linguistic heritage with cutting-edge web and AI technologies.
Featuring a custom "Royal Peacock" and "Midnight Temple" dual-theme system, glassmorphism UI elements, real-time AI translation, direct Supabase cloud library downloads, embedded YouTube masterclasses, and endless gamified learning challenges.
Real-time neural translation powered by Sarvam.ai (sarvam-translate:v1).
- 🔄 4-Language Support: English (
en-IN), Sanskrit (sa-IN), Hindi (hi-IN), and Marathi (mr-IN). - ⚡ Bi-directional Translation: Seamlessly translate back and forth between any language pair.
- ⏱️ Debounced Auto-Translation: Live typing response with loading indicators (
<ActivityIndicator>). - 📋 One-Tap Clipboard Copy: Easily copy translated Devanagari output.
A curated digital library for sacred texts, philosophy, and classical literature hosted on Supabase Storage.
- ⚡ Direct PDF Access: High-speed direct previewing and one-tap PDF downloading.
- 📜 Featured Sanskrit Texts:
- Atharva Veda (अथर्ववेदः) — Sacred Samhita & hymns.
- Vaimanika Shastra (वैमानिक शास्त्र) — Maharshi Bharadwaja's treatise on ancient aeronautics.
- Vivekachudamani (विवेकचूडामणिः) — Adi Shankaracharya's masterwork on Advaita Vedanta.
- 🔍 Live Search & Category Filtering: Search by title, author, or filter by Grammar, Scriptures, Philosophy, or Chants.
- 📖 Interactive Book Modal: View detailed book cards, metadata, and action buttons.
A masterclass video platform featuring hardcoded YouTube video lessons (data/videos.json).
- 🖼️ Dynamic YouTube Thumbnails: Automatically fetches high-resolution thumbnails via YouTube CDN (
img.youtube.com). - 🏷️ Categories & Difficulty Levels: Filter video masterclasses by Pronunciation, Grammar, Conversation, or Chanting.
- 🎬 Embedded Video Player Modal:
- Web: Embedded YouTube iframe player (
https://www.youtube.com/embed/<id>). - Mobile: Direct launcher button to watch inside YouTube app.
- Web: Embedded YouTube iframe player (
An interactive learning suite with infinite round generation and level progression.
| Game Mode | Description | Highlights |
|---|---|---|
| 🧩 Word Chain (शब्दशृंखला) | Build classical Sanskrit quotes & proverbs | 12+ proverbs (Satyameva Jayate, Vasudhaiva Kutumbakam, etc.) with scrambled brick pools. |
| 🖼️ Picture Quiz (चित्रपरिचयः) | Identify Sanskrit symbols and vocabulary icons | 14+ icon challenges (Sun, Moon, Book, Rain Cloud, Peacock Feather, Fire, Mountain). |
| 📝 Sentence Master (वाक्यपूर्तिः) | Complete Sanskrit sentences with correct verb conjugations | 15+ grammar fill-in-the-blank questions (Vibhakti, Lakara, Purusha). |
- 🏆 Scholar Rank System: Progress from Prarambhika (Beginner) → Madhyama (Intermediate) → Kovidha (Proficient) → Acharya (Scholar Master) based on earned XP.
- 🔄 Infinite Multi-Round Engine: Reshuffles questions and multiple-choice options dynamically for endless replayability.
- Adaptive Dual Themes: Switch between Royal Peacock (Light Mode) and Midnight Temple (Dark Mode) with a single tap.
- Glassmorphism Design: Frosted glass effects (
BlurView) over video player buttons and headers. - Modern Typography: Clear high-contrast font styles optimized for both Devanagari script and Latin text.
sanskrit-learning-app/
├── assets/ # App icon, logo, and static media
├── components/
│ └── khela/ # Khela Room Game Components
│ ├── CompleteSentence.tsx # Grammar fill-in-the-blank game
│ ├── GuessImage.tsx # Picture symbol quiz game
│ ├── KhelaMenu.tsx # Khela room lobby & scholar rank
│ ├── WordChain.tsx # Sentence brick builder game
│ └── khelaState.ts # XP tracking & rank calculation
├── data/
│ ├── books.json # Supabase Storage PDF library dataset
│ └── videos.json # YouTube video masterclasses dataset
├── App.tsx # Main Navigation, Theme System & Screens
├── app.json # Expo application configuration
├── package.json # Project dependencies and scripts
└── tsconfig.json # TypeScript configuration
| Domain | Technology |
|---|---|
| Framework | React Native (Expo SDK 57) |
| Language | TypeScript |
| Neural AI Translation | Sarvam.ai API (sarvam-translate:v1) |
| Cloud Storage | Supabase Storage (PDF hosting) |
| Navigation | @react-navigation/bottom-tabs v7 |
| Icons | lucide-react-native |
| Visual Effects | expo-blur, expo-linear-gradient |
| Local Storage | @react-native-async-storage/async-storage |
- Node.js (v18 or higher recommended)
- Expo Go app installed on your physical mobile device (or Android Studio / Xcode for simulators)
-
Clone the repository
git clone https://github.com/mustuchulaw/sanskrit-learning-app.git cd sanskrit-learning-app -
Install dependencies
npm install
-
Start the Expo development server
npm start
| Command | Action |
|---|---|
npm run start |
Launch Expo development server & QR code |
npm run web |
Run application in desktop browser |
npm run android |
Launch in Android Emulator |
npm run ios |
Launch in iOS Simulator |
Contributions are welcome! If you'd like to add new Sanskrit literature, extra video lessons, or new Khela room games:
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for details.
