भारत · ग्रहगणित
स्थान उज्जयिनी Ujjayinī · change it on a tool⌕ search the कोश ⌘Kप्रहर — · —:—:—ours, from sunriseउज्जयिनी —:—:—UTC + λ/15 h, λ = 75.7682° E (D13)IST Error −26.9 minlocal mean time − IST = 4λ − 330 min (K12)engine 3f94072the site ↗

yantra/web.js

the engine's door for a site or a page: the bīja tier (the text carried to the sky by the measured bīja) and the

361 lines · 48 exports

प्रमाण: गणित (composition) · the classes are on the modules named · D11: every object carries the disclaimer
लेख · the header

The header, as the file states it

yantra/web.js — the engine's door for a site or a page: the bīja tier (the text carried to the sky by the measured bīja) and the text tier's calendar, muhūrta and utsava rules run ON the bīja tier's Sun and Moon (panchanga.withPlaces), the udaya-bīja frame (ayanāṃśa, sunrise, lagna). Time in and out is the civil day number (JD, UT); inside, the engine's own count: civil days since midnight at Laṅkā at the Kali epoch (SS 1.45-47) — jd − 588465.5 + MERIDIAN_DEG/360 (meridian.js, D13; the records keep their own day). Degrees out, nirayaṇa in the owner's Citrā-pakṣa frame (udaya-bīja); sāyana = + ayanamsha(jd). No file, no foreign kernel. प्रमाण: गणित (composition) · the classes are on the modules named · D11: every object carries the disclaimer
आवश्यक · requires

What it loads

required by
निर्यात · exports

What it exports

SUNRISE_RULESCHANNELSfacesOfTurnSpandasfacesOfDaysfacesghadigrahaGhadiDISCLAIMERMERIDIAN_DEGKALI_JD0daysOfJdjdOfDayssiteOfsthanatirthasankadegreesbackpalabhaOflatitudeOfPalabhainversegrahasjddisclaimerspreadlazygrahasAtDaysbijaPlaceskulaAtDayskulavargasAtDaysvargaslatayanamshaayanamshaAtDaysayanamshaTextsiblinglibrationframeonesunrisesitenumberscivilDaylonEastcivilDayBysunriseJdsunsetJd
पाठ · the verses it cites

SS verses named in the header

  • SS 1.45verse
    ṣaṇmanūnāṃ tu sampīḍya kālaṃ tatsandhibhiḥ saha । kalpādisandhinā sārdhaṃ vaivasvatamanostathā ।।
  • SS 1.46verse
    yugānāṃ trighanaṃ yātaṃ tathā kṛtayugaṃ tvidam । projjhya sṛṣṭestataḥ kālaṃ pūrvoktaṃ divyasaṃkhyayā ।।
  • SS 1.47verse
    sūryābdasaṃkhyayā jñeyāḥ kṛtasyānte gatā amī । khacatuṣkayamādryagniśararandhraniśākarāḥ ।।
नलिका · channels

The channels it runs in

not on a channel
कार्य · the functions

Every function, what it calls, who calls it

37 top-level functions read from the source; the doc line is the comment above each; calls and callers are resolved across the registry’s modules by name. Line numbers are the file’s at engine 3f94072.

mod(a, m = 360)lines 17–17
calls nothing in the registry
daysOfJd(jd)lines 19–19exported

civil days since midnight at Laṅkā at the Kali epoch ↔ the day number (JD, UT)

calls nothing in the registry
dayQ(t)lines 20–20
called by nothing in the registry
wrap(x)lines 24–24
calls nothing in the registry
called by grahasAtDays
placesAt(t)lines 28–31

every graha at a civil day count — the bīja tier as the engine serves it (computeAllSpashtaGrahasBija's places: bija-samskara's evaluator, Rāhu and Ketu on the crossing tracks of rahu-ketu-sandhi.js), without the lattice bookkeeping, so a calendar can call it thousands of times: nirayaṇa longitude (deg), latitude (deg), daily motion (deg/day), retrograde, the mean place

motion()lines 36–36
calls placesAt
called by grahasAtDays
bijaPlaces(t)lines 51–55exported

the calendar modules' places(t): the shape of sphuta.sphutaAtDays, on the bīja tier

kulaAtDays(t)lines 64–76exported

कुल · every phala term of every body at the instant, laid out one by one: the argument (a whole-number combination of the record's basis means D g gp F Me V E Ma J Sa kp Ar Va — bija-samskara.js), its jyā/koṭijyā, the measured amplitudes with their slope in Ts, the term's value, and the family it belongs to (bija-vyakhya.js; 'avyakhyata' = measured, not yet read). Σ value over an array = the termS

vargasAtDays(t, lat, lonEast)lines 83–88exported

वर्ग · the sixteen ṣoḍaśavargas of the nine grahas and the lagna at the instant, cut on the served places by parashara-hora-vargas.js: per body the rāśi index (0 = Meṣa) in each varga and the navāṃśa pāda; the lagna from udaya-bija on the place. प्रमाण: पाठ BPHS ch. 6–7 as the local Parāśara edition carries it (4.24: the 30° rāśi and its equal parts) · गणित on the bīja tier's places

ayanamshaAtDays(t)lines 89–89exported
called by nothing in the registry
siteOf(lat, lonEast)lines 92–92exported
calls nothing in the registry
called by ghadi
sunriseOf(opts, site)lines 108–115

opts.sunrise = a key of SUNRISE_RULES → the calendar's own options and site (its sphere path reads opts.sunrise 'sphere' and site.dip).

calls nothing in the registry
called by civilDayBy, ghadi
civilDayBy(t, site, opts)lines 121–130exported
calls sunriseOf, at
called by ghadi
floorDivB(a, b)lines 139–139

D1a parallel faces (owner 2026-11-02: "add nakshtra also parallel"): ONE instant on BOTH decompositions, side by side. nakshatra — the turn clock (D1): τ turn-spandas since the Kali epoch; turns = whole nākṣatra ahorātras, spandas = the rest of the turn (N = 30⁸ a turn), kapāla = the bowl that sinks 60 times a turn (SS 1.12 with 13.23). savana — the civil day (SS 1.36, 14.18): ahargaṇa = whole civ

calls nothing in the registry
kap(x)lines 148–148
calls nothing in the registry

the faces of a civil day count (the engine's clock, Laṅkā): a float is put on the turn lattice (nearest spanda, ≤ 66 ns)

calls nothing in the registry
spandaOf(x)lines 169–169
calls floorDivB
called by ghadiOfDay
decQ(x)lines 171–171
exactDaysOfJd(jd)lines 173–173

civil days since Laṅkā midnight on the D13 line at the Kali epoch, exact: jd − KALI_JD0 + MERIDIAN_DEG/360 (each as written in decimals)

minutes(q)lines 198–198
calls nothing in the registry
called by ghadiOfDay
ghadi(jd, lat, lonEast, opts)lines 217–220exported
called by nothing in the registry
jdOf(spanda, days)lines 225–225

M08's paksha bounds are whole spandas of the turn (graha-ghadi pakshaStartSpanda, pakshaEndSpanda): each JD from its spanda

called by grahaGhadiAt
grahaGhadi(jd)lines 229–229exported
called by nothing in the registry

Phase B STEP 3b: sankrantis, rtus, saurNakshatras and ayanas on a given utsava instance, JD in and JD out, {value, sutra, pramana, source}.

calls VV
called by nothing in the registry
calls VV
called by nothing in the registry
calls VV
called by nothing in the registry
calls VV
called by nothing in the registry