Deterministic astro-numerology engines & offline-first mobile architecture in JyotiAI
Architectural analysis of JyotiAI: deterministic Vedic planetary algorithms (Lahiri Ayanamsha, Bhavas, Nakshatras), dual Chaldean/Pythagorean numerology matrices, offline-first computation pipelines, and pgvector knowledge retrieval.
Deterministic Astro-Numerology & Offline Mobile Systems
Most modern astrology and numerology applications operate as thin wrappers over remote REST endpoints. When a user queries a horoscope or requests a chart, the client makes an unencrypted or centralized API call transmitting highly sensitive personal identifiable information—exact birth dates, minute-precise birth times, and high-resolution GPS birth coordinates. Beyond severe privacy liabilities, remote architectures suffer from network latency, rate limits, and server-side failure modes.
JyotiAI was engineered to dismantle this dependency. By packaging deterministic astronomical algorithms, dual numerology matrices, and geometric chart visualizers directly into an offline-first mobile client built with React Native and Expo, all computations occur locally on the user's device in sub-millisecond execution cycles with zero network latency. Remote infrastructure is reserved strictly for vector-indexed semantic knowledge retrieval over authentic Vedic texts using Supabase pgvector.
1. The Deterministic Vedic Planetary Engine
Vedic astrology (Jyotish) operates within the sidereal zodiac (Nirayana), accounting for the axial precession of the equinoxes. Tropical systems peg 0° Aries to the vernal equinox; the Vedic system corrects for the Earth's 25,772-year wobble using an offset parameter known as the Ayanamsha.
The offline astrological engine implements:
- Ascendant (Lagna) Determination:Calculates Greenwich Mean Sidereal Time (GMST) and Local Sidereal Time (LST) from UTC timestamp and birth longitude to solve for the rising ecliptic degree on the eastern horizon.
- 12 Bhavas (Equal House Cusps):Constructs the 12 houses starting from the exact degree of the Ascendant, mapping planetary placements, house lordships, and mutual aspect matrices without external roundtrips.
- 27 Nakshatras & 108 Padas:Partitions the 360° zodiac into 27 lunar mansions of 13°20' (800 arcminutes) each, sub-divided into 4 padas of 3°20' (200 arcminutes) each.
- Vimshottari Dasha Engine:Evaluates the moon's exact nakshatra degree at birth to compute the remaining balance of the starting planetary dasha, generating the full 120-year chronological timeline (Mahadashas and Antardashas).
2. Dual Numerology Computation Matrices
JyotiAI is designed with dual-engine architecture: evaluating both the ancient sound-vibrational Chaldean system and the sequential Pythagorean system simultaneously.
The engine calculates continuous temporal cycles without relying on arbitrary daily horoscopes:
3. Kundli Screen, Chart Renderer & Calendar
Rendering Vedic birth charts (Kundli) inside React Native traditionally requires heavy WebView bridges or heavyweight canvas packages. JyotiAI renders North Indian diamond charts and South Indian square matrices directly with lightweight vector primitives:
Draws the 12 houses with fixed geometric boundaries. The Ascendant (Lagna) is placed at House 1 (top central diamond in North Indian format); subsequent signs and planetary coordinates rotate counter-clockwise. Retrograde planetary indicators, combustion distances from the Sun, and friendly/enemy dignity states are calculated and styled dynamically.
A monthly timeline showing the user's daily vibrational cycle numbers (1–9). Color-coded affinity tags indicate days aligned with the native's Life Path or Destiny number, highlighting favorable windows for initiating projects, consolidating resources, or reflective inward contemplation.
4. The Transits & Daily Forecast Engine
Rather than generating generic horoscope text, the Forecast Enginecomputes real-time celestial deltas against the native natal chart. Current planetary longitudes (such as Saturn in Aquarius or Jupiter in Taurus) are compared to the native's natal Moon sign and Ascendant to determine active Gochara (transit) effects.
By combining active planetary transits with the user's daily numerological cycle, JyotiAI delivers context-aware, grounded reflections across career, personal growth, relationships, and health focus—strictly framed as traditional self-inquiry, without supernatural fatalism or fortune-telling claims.
5. Client Architecture & Supabase pgvector
The mobile client is built on Expo (SDK 51/52) and TypeScript strict mode, with a clean separation of concerns:
Vedic chart math, Chaldean reduction, calendar matrix.
Immutable user profile, chart cache, entitlement state.
Kundli vector renderer, Pattern Map, calendar grid.
For contextual guidance and assistant questions, Supabase handles knowledge retrieval over a curated corpus of 13 authentic classical Vedic sources chunked into 27 vector-indexed passages. When a user asks a reflective question, vector cosine similarity retrieves grounded classical insights without exposing user birth profiles to untrusted third parties.
6. Empirical Validation & Implementation Status
In alignment with our engineering principles—Build systems in silence. Reveal results, not intentions—we explicitly distinguish verified working code from operational rollout stages:
- • 96 / 96 Automated Tests Passing: Unit & integration coverage for numerology reductions, house cusps, and RLS policies.
- • Deterministic Offline Math Kernel: Complete independence from external astrology APIs.
- • Interactive 3D Web Universe: Live Three.js static experience deployed on Cloudflare Workers at jyotiai.app.
- • RevenueCat Monetization Architecture: Free daily readings tier + Premium subscription tier (₹288/mo, ₹2,880/yr).
- • Google Play Closed Testing Track: Personal account ID 6720754810142205025; executing required 14-day closed tester verification with ≥12 opted-in testers.
- • Android Package:
ai.jyoti.appbuilt via EAS remote build profiles. - • No Fabricated Metrics: No synthetic download numbers, fake customer reviews, or unverified claims.
Experience the living system of patterns on the official website.