Skip to main content
RAHUUL Brand Logo
RAHUUL.
Back to Research Index
Author: Rahuul Kalappatt• Oct 8, 2026• 14 min read

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.

Vedic AstrologyNumerologyMobile ArchitectureTypeScriptSupabase
Engineering Paper · Production Systems Architecture

Deterministic Astro-Numerology & Offline Mobile Systems

Live Site (jyotiai.app)

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.

// Sidereal Planetary Longitude Calculation
λ_sidereal = (λ_tropical - Ayanamsha_Lahiri) mod 360°
* Lahiri Ayanamsha (Chitra Paksha) calibrated precisely to the epoch J2000.0 with annual precession delta: ~50.29" / year.

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.

Chaldean Sound-Frequency Mapping (1–8)
1: A, I, J, Q, Y
2: B, K, R
3: C, G, L, S
4: D, M, T
5: E, H, N, X
6: U, V, W
7: O, Z
8: F, P
* Number 9 is reserved as sacred & transformative; compound vibrations (11, 22, 33) preserved as Master Numbers.
Pythagorean Alphabetical Matrix (1–9)
1: A, J, S | 2: B, K, T | 3: C, L, U
4: D, M, V | 5: E, N, W | 6: F, O, X
7: G, P, Y | 8: H, Q, Z | 9: I, R
* Root reduction of birth date gives Life Path; sum of vowels gives Soul Urge; sum of consonants gives Personality.

The engine calculates continuous temporal cycles without relying on arbitrary daily horoscopes:

Personal Year = DigitalRoot(BirthMonth + BirthDay + CurrentCalendarYear)
Personal Month = DigitalRoot(PersonalYear + CurrentCalendarMonth)
Personal Day = DigitalRoot(PersonalMonth + CurrentCalendarDay)

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:

Kundli Chart Screen

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.

Numerology Calendar

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:

Offline Client KernelZero Network Dependencies for Math
Layer 1:Math Engines

Vedic chart math, Chaldean reduction, calendar matrix.

Layer 2:Zustand State

Immutable user profile, chart cache, entitlement state.

Layer 3:UI Components

Kundli vector renderer, Pattern Map, calendar grid.

Cloud Knowledge Layer (Supabase + pgvector)PostgreSQL 16 · 9 Strict RLS Policies

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:

Verified Implemented Capabilities
  • • 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).
In-Progress Store Rollout Status
  • • 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.app built via EAS remote build profiles.
  • • No Fabricated Metrics: No synthetic download numbers, fake customer reviews, or unverified claims.
Explore The Project

Experience the living system of patterns on the official website.

Visit jyotiai.app