Drik Panchang calculator with modern web interface. Calculate traditional Panchanga for any date (5000 BCE - 5000 CE) and location.
⭐ If you find this project useful, please consider giving it a star on GitHub! It helps others discover this tool.
# Clone repository
git clone https://github.com/bidyashish/vedicpanchanga.com
cd vedicpanchanga.com
# One-command setup and run
./setup.sh
# Or manual setup:
# Terminal 1 - Backend (runs on port 8121)
cd backend
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
python api.py
# Terminal 2 - Frontend (runs on port 3121)
cd frontend
npm install
# .env.local is optional - defaults to http://localhost:8121
npm run devPanchanga Elements: Tithi • Nakshatra • Yoga • Karana • Vaara Timings: Sunrise/Sunset • Moonrise/Moonset • Rahu Kala • Yama Ganda • Gulika • Abhijit Astronomical: Planetary positions • Vimsottari Dasha • Ayanamsha (Lahiri) Modern UI: Dark/Light mode • 100,000+ locations • Responsive design
Backend: Python • FastAPI • PySwisseph Frontend: Next.js 15 • React 19 • TypeScript • Tailwind CSS v4 • Shadcn/ui
vedicpanchanga.com/
├── backend/ # Python FastAPI server (port 8121)
├── frontend/ # Next.js 15 application (port 3121)
├── infra/ # Deployment scripts and infrastructure
├── tests/ # Testing and verification scripts
├── API.md # API documentation
├── CLAUDE.md # AI assistant instructions
└── README.md # This file
The tests/ directory contains various testing and verification scripts:
# API Testing
python tests/test_api.py # Basic API tests
./tests/verify_apis.sh # Verify API endpoints
# Timezone Testing
python tests/test_timezones.py # Test timezone calculations
./tests/test_all_timezones.sh # Test all timezone scenarios
./tests/verify_timezones.py # Verify timezone accuracy
# Load Testing
python tests/stress_test_panchanga.py # Stress test calculations
python tests/stress_test_rate_limited.py # Test rate limiting
# Production Testing
./tests/test_production_api.sh # Test production deploymentMain endpoint: http://localhost:3121/api/v1/panchanga
Full docs: See API.md • Backend docs: http://localhost:8121/docs
Backend: AGPL-3.0 • Frontend: MIT
We welcome contributions! Here's how you can help:
Open an issue with details about the problem and steps to reproduce.
- Star this repository to help others find it
- Share it with others who might find it useful
- Report issues and suggest improvements
Thanks to all the contributors who have helped make this project better!
Based on Drik Panchanga by Satish BD. Uses Swiss Ephemeris for astronomical calculations.