Hereβs the updated README.md with the additional instruction to run python analysis.py for Python-based analysis:
This project is a comprehensive solution to generate and analyze a Kundali (horoscope) using Swiss Ephemeris for precise astronomical calculations and React with Vite for an interactive and dynamic frontend experience. The application provides detailed insights into astrological aspects such as planetary placements, houses, Rashis (zodiac signs), and the Vimshottari Dasha system. Additionally, it incorporates AI-driven contextual analysis to generate actionable insights and remedies.
- Swiss Ephemeris: Used for generating accurate planetary positions, Rashis, and Vimshottari Dasha.
- House Analysis: Calculates planetary placements for all 12 houses, along with their status (Exalted, Debilitated, or Neutral).
- Contextual prompts to provide detailed astrological insights:
- House-by-House Analysis: Includes sitting planets, their effects (positive and negative), and remedies.
- Exalted and Debilitated Planets: Identifies and highlights their influence on the nativeβs life.
- Personalized Recommendations: Suggests gemstones, rituals, poojas, mantra jap, and lifestyle changes for planetary imbalances.
- Uploaded multiple JSON files covering:
- Rashis: Characteristics of all zodiac signs.
- Planets: Nature, effects, and attributes of all planets.
- Houses: Details of all 12 houses and their significations.
- Numerology: Insights based on numbers and their astrological significance.
- Remedies: Practical and spiritual remedies for negatively placed planets.
- React + Vite: High-performance frontend framework to ensure a smooth and responsive user experience.
- Interactive UI: Provides an intuitive way to input birth details and view the generated Kundali along with the analysis.
The project leverages an advanced prompt-based AI system to perform astrological analysis. Here's how it works:
The AI takes birth details, planetary placements, and house information to analyze the Kundali based on the following format:
- House Analysis:
- Sitting Planet, Rashi, Status (Exalted/Debilitated/Neutral).
- Positive and Negative Effects of each planet and house lord.
- Remedies: Gemstones, rituals, mantras, lifestyle changes.
- Impact and Recommendations:
- Practical and spiritual remedies to harmonize planetary influences.
- Suggestions to maximize positive effects of exalted or strong benefics.
- Summary:
- Overview of favorable and challenging influences.
- Actionable guidance to balance the Kundali and optimize life experiences.
Question: Based on my birth details and astrological data, identify all exalted and debilitated planets, analyze the positive and negative effects of planets in each house brutally honestly, and provide remedies, gemstones, rituals, and lifestyle changes for any challenges identified.
Answer: (Generated dynamically using AI based on the input data and context.)
- Swiss Ephemeris: For accurate astronomical calculations.
- Flask: Backend framework for APIs to communicate with the frontend.
- Python: Logic for handling ephemeris data and generating Kundali.
- React: Component-based architecture for building a dynamic user interface.
- Vite: Fast development and build tool for a modern frontend.
- Prompt-Based AI Analysis: Generates personalized insights and remedies based on astrological data.
- JSON Files: Comprehensive data for planets, Rashis, houses, numerology, and remedies.
-
User Input:
- The user provides their birth details (date, time, and place) through the frontend.
-
Kundali Generation:
- Swiss Ephemeris calculates planetary positions, Rashis, and houses based on the input.
-
Python-Based Analysis:
- Run
python analysis.pyto process and analyze the generated Kundali.
- Run
-
AI-Driven Analysis:
- The contextual AI performs house-by-house analysis and generates actionable insights, including remedies and lifestyle changes.
-
Frontend Display:
- The Kundali and analysis are displayed interactively using React, with options to explore Vimshottari Dasha, remedies, and more.
- Node.js and npm for frontend.
- Python for backend and Swiss Ephemeris integration.
- Swiss Ephemeris Library installed.
-
Clone the Repository:
git clone https://github.com/your-username/kundali-analysis.git cd kundali-analysis -
Install Dependencies:
- Backend:
pip install flask flask-cors swisseph
- Frontend:
cd frontend npm install
- Backend:
-
Run Python Analysis:
python analysis.py
-
Run the Project:
- Backend:
python app.py
- Frontend:
npm run dev
- Backend:
-
Access the Application: Open your browser and navigate to
http://localhost:5173.
kundali-analysis/
βββ backend/
β βββ .gitignore
β βββ analysis.py # Python script for performing astrological analysis
β βββ app.py # Flask app for backend API
β βββ package-lock.json # Lock file for backend dependencies
β βββ package.json # Node.js backend dependencies
β βββ server.js # JavaScript server logic (if applicable)
β βββ test.py # Python test script
β βββ data/ # Folder containing JSON files for astrological data
β β βββ (JSON files) # Rashi, planets, numerology, remedies, etc.
βββ frontend/
β βββ public/ # Public assets for the frontend
β βββ src/ # Source code for the frontend
β β βββ .gitignore
β β βββ README.md # Frontend-specific documentation
β β βββ eslint.config.js # ESLint configuration for linting
β β βββ index.html # Main HTML file for the app
β β βββ package-lock.json # Lock file for frontend dependencies
β β βββ package.json # Frontend dependencies
β β βββ postcss.config.js # PostCSS configuration
β β βββ tailwind.config.cjs # Tailwind CSS configuration
β β βββ vite.config.js # Vite configuration for the frontend
βββ README.md # Main project documentation
- Transit Analysis: Dynamic analysis based on current planetary transits.
- Compatibility Matching: Kundali matching for relationships.
- Multilingual Support: Generate analysis in multiple languages.
This project is licensed under the MIT License.
For questions or suggestions, reach out to:
- Email: your-email@example.com
- GitHub: your-username
Enjoy exploring the stars! π