How bhavya681/vedamilan works
VedaMilan AI is a Vedic relationship-intelligence platform combining matchmaking and relationship tools with deterministic astrology, numerology, AI-guided wisdom, and paid services. Users enter through the Next.js application, use authenticated route handlers, and receive results from application services and domain rule engines backed by MongoDB. Sampled routes show session checks, rate limits, service calls, and response formatting; the README documents the broader architecture and the rule-engine/AI boundary. Many feature-to-route links are dashed because their wiring was not sampled.
Main entry points: api Route handlers · matchmaking.service.ts Matchmaking service · ai.service.ts AI services · mongodb.ts MongoDB connection
Components 27
User experience
- Web application
src/app - Matchmaking screens
src/app/(dashboard)/dashboard/matches/page.tsx - Kundli screens
src/app/(dashboard)/dashboard/kundli/page.tsx - Wisdom screens
src/app/(dashboard)/dashboard/vedic-wisdom/page.tsx - Consultation screens
src/app/(dashboard)/dashboard/consultation/page.tsx - Admin screens
src/app/(admin)/admin/page.tsx
Application API
- Route handlers
src/app/api
Astrology and guidance
- Horoscope engines
src/application/horoscope/chart-builder.ts - Panchanga engine
src/application/horoscope/panchanga.ts - Numerology domain
src/domain/numerology/calculations.ts - Wisdom service
src/application/wisdom/wisdom.service.ts - AI services
src/application/ai/ai.service.ts - Virtual astrologer
src/application/consultation/virtual-astrologer.service.ts
Relationship services
- Matchmaking service
src/application/matchmaking/matchmaking.service.ts - Connection service
src/application/relationship/relationship.service.ts - Compatibility rules
src/application/rules/compatibility.service.ts - Relationship journey
src/application/relationship/journey.service.ts
Platform services
- Session and access
src/lib/auth/session.ts - Profile service
src/application/profile/profile.service.ts - Billing service
src/application/billing/billing.service.ts - MongoDB models
src/infrastructure/database/models/index.ts - MongoDB connection
src/infrastructure/database/mongodb.ts - API responses
src/lib/utils/api-response.ts - Rate limiting
src/lib/security/rate-limit.ts
Other components
- Members
- Payment providers
- AI providers
Connections 31
- Members → Web application: uses
- Web application → Route handlers: requests
- Matchmaking screens → Route handlers: requests
- Kundli screens → Route handlers: requests
- Wisdom screens → Route handlers: requests
- Consultation screens → Route handlers: requests
- Admin screens → Route handlers: requests
- Route handlers → Session and access: checks session
src/app/api/wisdom/route.ts - Route handlers → Rate limiting: enforces limits
src/app/api/wisdom/route.ts - Route handlers → Wisdom service: calls
src/app/api/wisdom/route.ts - Route handlers → Profile service: loads birth details
src/app/api/numerology/route.ts - Route handlers → Numerology domain: calculates numbers
src/app/api/numerology/route.ts - Route handlers → Matchmaking service: dispatches requests
- Route handlers → Horoscope engines: dispatches charts
src/app/api/numerology/route.ts - Route handlers → Panchanga engine: dispatches calendars
src/app/api/muhurta/route.ts - Route handlers → Compatibility rules: dispatches reports
- Route handlers → Virtual astrologer: dispatches sessions
- Route handlers → AI services: dispatches prompts
- Route handlers → Billing service: dispatches payments
- Route handlers → API responses: formats results
src/app/api/wisdom/route.ts - Matchmaking service → Numerology domain: calculates numerology
src/application/matchmaking/matchmaking.service.ts - Matchmaking service → Connection service: uses connection data
src/application/matchmaking/matchmaking.service.ts - Connection service → Relationship journey: uses journey service
src/application/relationship/relationship.service.ts - Profile service → MongoDB connection: connects
src/application/profile/profile.service.ts - Matchmaking service → MongoDB connection: connects
src/application/matchmaking/matchmaking.service.ts - Connection service → MongoDB connection: connects
src/application/relationship/relationship.service.ts - Wisdom service → AI services: generates guidance
- Horoscope engines → AI services: provides chart explanations
README.md - Billing service → Payment providers: uses gateways
README.md - AI services → AI providers: uses models
README.md - Billing service → MongoDB connection: persists billing data
src/application/billing/billing.service.ts