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
The header, as the file states it
What it loads
- yantra/spanda-lattice.jsmodule
- yantra/udaya-bija.jsmodule
- yantra/patha/panchanga.jsmodule
- yantra/patha/utsava.jsmodule
- yantra/patha/muhurta.jsmodule
- yantra/patha/dasha.jsmodule
- yantra/patha/kala-dvara.jsmodule
- yantra/patha/ss-udaya.jsmodule
- yantra/omni-cosmic-orchestrator.jsmodule
- yantra/meridian.jsmodule
- yantra/bija-samskara.jsmodule
- yantra/rahu-ketu-sandhi.jsmodule
- yantra/drk-lambana.jsmodule
- yantra/drk-udaya.jsmodule
- yantra/ss8-dhruva.jsmodule
- yantra/bija-vyakhya.jsmodule
- yantra/parashara-hora-vargas.jsmodule
- yantra/patha/kala-vibhaga.jsmodule
- yantra/patha/graha-ghadi.jsmodule
- yantra/patha/ss-ahargana.jsmodule
- yantra/bhugola-aside.jsmodule
- yantra/anka-sarani.jsmodule
- yantra/drk-grahana.jsmodule
What it exports
SUNRISE_RULESCHANNELSfacesOfTurnSpandasfacesOfDaysfacesghadigrahaGhadiDISCLAIMERMERIDIAN_DEGKALI_JD0daysOfJdjdOfDayssiteOfsthanatirthasankadegreesbackpalabhaOflatitudeOfPalabhainversegrahasjddisclaimerspreadlazygrahasAtDaysbijaPlaceskulaAtDayskulavargasAtDaysvargaslatayanamshaayanamshaAtDaysayanamshaTextsiblinglibrationframeonesunrisesitenumberscivilDaylonEastcivilDayBysunriseJdsunsetJdSS 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.46verseyugānāṃ trighanaṃ yātaṃ tathā kṛtayugaṃ tvidam । projjhya sṛṣṭestataḥ kālaṃ pūrvoktaṃ divyasaṃkhyayā ।।
- SS 1.47versesūryābdasaṃkhyayā jñeyāḥ kṛtasyānte gatā amī । khacatuṣkayamādryagniśararandhraniśākarāḥ ।।
The channels it runs in
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.
civil days since midnight at Laṅkā at the Kali epoch ↔ the day number (JD, UT)
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
the calendar modules' places(t): the shape of sphuta.sphutaAtDays, on the bīja tier
कुल · 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
वर्ग · 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
opts.sunrise = a key of SUNRISE_RULES → the calendar's own options and site (its sphere path reads opts.sunrise 'sphere' and site.dip).
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
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)
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)
M08's paksha bounds are whole spandas of the turn (graha-ghadi pakshaStartSpanda, pakshaEndSpanda): each JD from its spanda
Phase B STEP 3b: sankrantis, rtus, saurNakshatras and ayanas on a given utsava instance, JD in and JD out, {value, sutra, pramana, source}.