Skip to content

๐ŸŒ™โœจ AI-powered astrological insights and life advice platform with professional chart generation using Kerykeion. Features natal charts, synastry, composite charts, planetary returns, and personalized guidance.

connorodea/LunaScopeAI

Repository files navigation

LunaScope AI - Personal Life Advisor

A modern web application inspired by Astra Life Advice, providing AI-powered life guidance through astrological insights. Built with React, TypeScript, and Material-UI.

๐ŸŒŸ Features

Core Features

  • AI-Powered Advice: Get personalized guidance on relationships, career, personal growth, and more
  • Compatibility Analysis: Discover cosmic connections with others through detailed compatibility reports
  • Dream Interpretation (Premium): Unlock the mysteries of your subconscious mind
  • Astrological Insights: Personalized cosmic guidance based on birth chart data
  • User Onboarding: Seamless setup process to create your astrological profile

Premium Features

  • Unlimited AI advice questions
  • Advanced dream interpretation with symbol analysis
  • Detailed compatibility reports
  • Priority customer support
  • Export reports as PDF
  • Early access to new features

๐Ÿš€ Getting Started

Prerequisites

  • Node.js 16+
  • npm or yarn

Installation

  1. Clone the repository:
git clone <repository-url>
cd LunaScopeAI
  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev
  1. Open your browser and navigate to http://localhost:3000

๐Ÿ› ๏ธ Built With

Frontend

  • React 18 - UI framework
  • TypeScript - Type safety
  • Material-UI (MUI) - Component library
  • Framer Motion - Animations
  • Zustand - State management
  • React Router - Navigation
  • Vite - Build tool

Astrology Integration

The app integrates with existing astrology libraries:

  • Kerykeion - Python astrology library for calculations
  • AstroChart - JavaScript chart generation

๐Ÿ“ Project Structure

src/
โ”œโ”€โ”€ components/           # Reusable UI components
โ”‚   โ”œโ”€โ”€ common/          # Common components (Navbar, Sidebar)
โ”‚   โ”œโ”€โ”€ charts/          # Astrology chart components
โ”‚   โ”œโ”€โ”€ advice/          # Advice-related components
โ”‚   โ”œโ”€โ”€ onboarding/      # User onboarding components
โ”‚   โ””โ”€โ”€ subscription/    # Subscription components
โ”œโ”€โ”€ pages/               # Main application pages
โ”œโ”€โ”€ services/            # API and business logic
โ”œโ”€โ”€ store/               # Zustand store configuration
โ”œโ”€โ”€ types/               # TypeScript type definitions
โ”œโ”€โ”€ utils/               # Utility functions
โ””โ”€โ”€ assets/              # Static assets

๐ŸŽจ Key Components

Pages

  • HomePage - Landing page with features and testimonials
  • OnboardingPage - Multi-step user registration and profile setup
  • DashboardPage - Main user dashboard with quick actions
  • AdvicePage - AI-powered advice system with category selection
  • CompatibilityPage - Relationship compatibility analysis
  • DreamsPage - Dream interpretation (Premium feature)
  • SubscriptionPage - Pricing and subscription management
  • ProfilePage - User profile and settings management

Services

  • AIService - Mock AI service for generating advice, dream interpretations, and compatibility analysis
  • Store Management - Zustand-based state management for user data, advice history, and app state

๐ŸŽฏ Features in Detail

AI Advice System

  • 8 advice categories: Relationships, Career, Personal Growth, Health, Finance, Spirituality, Family, Dreams
  • Contextual question input with category-specific guidance
  • Astrological insights integrated with AI responses
  • Action steps and related topics for each advice session
  • Complete advice history with expandable details

Compatibility Analysis

  • Partner information input (name, birth date, time, location)
  • Overall compatibility scoring (0-100%)
  • Category breakdown: Romantic, Friendship, Business, Communication
  • Strengths and challenges identification
  • Personalized advice for relationship improvement
  • History of previous compatibility analyses

Dream Interpretation (Premium)

  • Dream recording with title, description, date, and emotions
  • AI-powered symbol recognition and interpretation
  • Main themes identification
  • Emotional significance analysis
  • Life connections and reflection points
  • Dream journal with search and filtering

User Experience

  • Responsive design for all screen sizes
  • Dark theme with cosmic gradient accents
  • Smooth animations and transitions
  • Progressive onboarding experience
  • Intuitive navigation with collapsible sidebar

๐Ÿ”ง Development

Available Scripts

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm run preview - Preview production build
  • npm run test - Run tests
  • npm run lint - Lint code
  • npm run type-check - TypeScript type checking

State Management

The app uses Zustand for state management with persistence:

interface AppState {
  user: User | null;
  isAuthenticated: boolean;
  adviceRequests: AdviceRequest[];
  adviceResponses: AdviceResponse[];
  dreams: Dream[];
  compatibilityAnalyses: CompatibilityAnalysis[];
  // ... actions
}

Mock AI Services

Currently uses mock AI services that simulate real API calls:

  • 2-5 second response delays
  • Realistic response generation
  • Category-specific advice templates
  • Astrological insight generation

๐ŸŽจ Design System

Color Palette

  • Primary: Purple (#8B5CF6) - Spiritual, mystical
  • Secondary: Amber (#F59E0B) - Cosmic energy, warmth
  • Background: Dark navy (#0F0F23) - Night sky
  • Surface: Dark purple (#1A1A2E) - Depth

Typography

  • Headers: Playfair Display (serif) - Elegant, mystical
  • Body: Inter (sans-serif) - Modern, readable

Components

  • Glass morphism effects with backdrop blur
  • Gradient borders and backgrounds
  • Subtle animations and micro-interactions
  • Consistent spacing and layout grid

๐Ÿš€ Deployment

Production Build

npm run build

The build folder will contain the optimized production files.

Environment Variables

Create a .env file for configuration:

VITE_API_URL=your_api_url
VITE_STRIPE_PUBLIC_KEY=your_stripe_key

๐Ÿ”ฎ Future Enhancements

Planned Features

  • Real AI API integration (OpenAI, Claude, etc.)
  • Payment processing (Stripe/PayPal)
  • Social features and community
  • Mobile app (React Native)
  • Advanced chart visualizations
  • Transit predictions and alerts
  • Personalized daily horoscopes
  • Voice-powered dream recording

Technical Improvements

  • Real-time notifications
  • Offline support with PWA
  • Advanced caching strategies
  • Performance optimizations
  • Accessibility improvements
  • Multi-language support

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ“ž Support

For support and questions:


Built with โค๏ธ and cosmic energy โœจ

About

๐ŸŒ™โœจ AI-powered astrological insights and life advice platform with professional chart generation using Kerykeion. Features natal charts, synastry, composite charts, planetary returns, and personalized guidance.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published