Harmony Advisor is a sophisticated React application design to interpret complex Human Design mechanics into practical, real-time guidance for relationships and personal wellness. By combining precise bodygraph calculations with advanced AI (Google Gemini or Ollama), it offers neutral, jargon-free advice tailored to your specific energetic dynamics.
"Neutral, real-time understanding for couples and self-discovery."
š Multi-Role Dynamics: Tailored guidance for various relationships including Spouses, Children, Parents, Bosses, Colleagues, and Friends, as well as Self-reflection.
ā” Energetic Empathy: "Sage Analysis" explains the "Why" behind dynamics before offering advice.
šÆ Targeted Context Categories: Focused advice for specific scenarios:
š Premium Glassmorphism UI: A stunning, modern interface featuring "Ethereal Bioluminescence" aesthetics, smooth animations (powered by framer-motion), and adaptive dark mode.
āļø Secure Cloud Sync: Integrated Appwrite backend for secure, cross-device profile synchronization and authentication.
š”ļø Admin Command Center: A powerful, dashboard for user management, system orchestration, and "God Mode" profile data inspection.
š Pro Subscription: Stripe-integrated subscription system with "Pro" badging and premium feature access.
š¤ AI-Powered Analysis: Leverages Large Language Models (LLM) to generate:
š® Real-Time Human Design: Calculates Charts (Type, Strategy, Authority, Profile) on-the-fly using a dedicated calculation API.
š Full Localization: Seamlessly switch between English and Turkish interfaces and advice.
ā” Quick-Fill Context: Pre-populated, role-specific examples to quickly describe common situations (e.g., "Dirty dishes", "Homework struggles").
šØ Premium UI: A polished, mobile-first interface built with Tailwind CSS.
š« Lightweight Performance: Removed legacy Three.js and complex background animations to improve page load times and device compatibility.
@google/generative-ai)Clone the repository:
git clone https://github.com/yourusername/harmonyadvisor.git
cd harmonyadvisor
Install dependencies:
npm install
Configure Environment:
Create a .env file in the root directory using the template below:
# Required: API Key for the Human Design Calculation Service
VITE_HD_API_KEY=your_hd_api_key_here
# Google Gemini Configuration (Default Provider)
VITE_GEMINI_API_KEY=your_gemini_key_here
VITE_GEMINI_MODEL=gemini-2.0-flash-exp
# Optional: Ollama Configuration (Local AI)
# VITE_AI_PROVIDER=ollama
# VITE_OLLAMA_BASE_URL=http://localhost:11434
Run the Development Server:
npm run dev
The app will start at http://localhost:32100 (configured in vite.config.js).
harmonyadvisor/
āāā .docs/ # Documentation & Knowledge Base
āāā public/ # Static assets
āāā src/
ā āāā components/ # Reusable UI Components
ā ā āāā admin/ # Admin Dashboard & Tools
ā ā āāā selectors/ # Module, Role & Category Selectors
ā ā āāā ProfileInput.jsx# Birth Data Form
ā ā āāā GuidanceResult.jsx # Result Display
ā āāā services/ # Business Logic
ā ā āāā api.js # HD API & Gemini Interface
ā ā āāā auth.js # Appwrite Authentication
ā ā āāā storage.js # Appwrite Database Operations
ā ā āāā ollama.js # Ollama Client
ā ā āāā prompts.js # AI Prompt Templates
ā āāā data/ # Static Data (Examples)
ā āāā translations.js # i18n Dictionary (EN/TR)
ā āāā App.jsx # Main Application Logic
ā āāā main.jsx # Entry Point
āāā scripts/ # Automation scripts (Docker push, etc)
āāā .env # Env variables (not committed)
āāā Dockerfile # Multi-stage production build
āāā docker-compose.yml # Container orchestration
āāā docker-entrypoint.sh # Runtime environment injection script
āāā nginx.conf # Production web server config
āāā tailwind.config.js # CSS Configuration
āāā vite.config.js # Build & Proxy Configuration
To avoid CORS issues during local development, vite.config.js is configured to proxy requests:
/api/hd -> Proxies to the remote Human Design API./api/ollama -> Proxies to your local Ollama instance (strips Origin header to bypass 403 errors).The app works primarily with Google Gemini. To switch to Ollama:
ollama serve).VITE_AI_PROVIDER=ollama in your .env file.mistral or llama3) and referenced in the code defaults.The application is containerized and optimized for performance and flexibility.
docker build -t harmonyadvisor .
docker run -p 9301:80 harmonyadvisor
Harmony Advisor uses a runtime environment injection system. This allows you to update API keys and configurations on your server without rebuilding the Docker image.
Pull the latest image:
docker pull dturkuler/harmonyadvisor:latest
Configure docker-compose.yml:
services:
app:
image: dturkuler/harmonyadvisor:latest
ports:
- "9301:80"
environment:
- VITE_HD_API_KEY=your_key
- VITE_GEMINI_API_KEY=your_key
- VITE_AI_PROVIDER=gemini # or ollama
Deploy:
docker-compose up -d
For maintainers, use the automated build script:
./scripts/deploy_to_hub.sh
versioned and latest tags to Docker Hub.git checkout -b feature/AmazingFeature).git commit -m 'Add some AmazingFeature').git push origin feature/AmazingFeature).Distributed under the MIT License. See LICENSE for more information.
Content type
Image
Digest
sha256:08bb5c332ā¦
Size
6 MB
Last updated
9 months ago
docker pull dturkuler/harmonyadvisor