यन्त्र · The engine
एक यन्त्र, एक शास्त्र, एक ग्रन्थ — सूर्यसिद्धान्त के पूर्णांक, माधव की ज्या, नपा हुआ बीज; भीतर कोई विदेशी सारणी नहीं।
One engine, one text, one book. The only 100% Vedic computation in the world: Sūrya-Siddhānta integers for the means, the four steps on the text's own 24 sines, a measured bīja on top, the frame anchored to Citrā — and no NASA, no Swiss Ephemeris, no VSOP at runtime. Everyone else wraps a foreign kernel; this engine's gates refuse one.
The door as built, byte for byte
| door | bytes | sha256 (first 12) |
|---|---|---|
| yantra.web.cjs | 3,815,229 | 4aa4734cfabb |
| yantra.web-patha.cjs | 6,834,814 | 38baab56348f |
compare-bija-nasa.jsonhorizons-syzygy-fixtures.jsonkula-pariksha.jsonFrom the spanda to the day: SS 1.11–12, and Bhāgavata 3.11 beside it
N = 6,56,10,00,00,000 spanda a nākṣatra turn (D1). Ladder A is the day’s own cut, its counts read from the engine’s one cut of a cycle (kala-vibhaga.js): prāṇa, vināḍī and nāḍī are the Sūrya-Siddhānta’s (SS 1.11–12: 6 prāṇa a pala, 60 pala a ghaṭī, 60 ghaṭī the day); the muhūrta of 2 nāḍikā is the Bhāgavata’s (3.11.8); the prahara is the owner’s eighth of the day, 7.5 ghaṭī (मुख्य, K2), with the text’s yāma beside it (पाठ: four by day and four by night, Bhāgavata 3.11.10); horā = N/24 is the hour’s ancestor. Ladder B is the Bhāgavata’s chain of multipliers from the paramāṇu; it closes on N exactly: verified in this build. Every count here is computed from N and those counts.
| the day’s cut | rule | spanda |
|---|---|---|
| प्रहर prahara (मुख्य) prahara = floor(8 r) + 1 | 8 a day, 7.5 ghaṭī each स्वामी-परम्परा (Pardeep Sehrawat) + गणित याम (पाठ): four by day and four by night, each a quarter of its day or night (Bhāgavata 3.11.10); प्रहरः षड्यामः सप्त वा नृणाम् (Bhāgavata 3.11.8: a yāma of men is six or seven nāḍikā): printed as the text's words; no number is taken from them | 82,01,25,00,000 |
| होरा horā — the hour's ancestor ghanta = floor(24 r) | 24 a day स्वामी-परम्परा (Pardeep Sehrawat) + गणित | 27,33,75,00,000 |
| मुहूर्त muhūrta muhurta = floor(30 r) + 1 | 30 a day, 2 nāḍikā each पाठ + स्वामी-परम्परा (Pardeep Sehrawat) | 21,87,00,00,000 |
| घटी · नाडी ghaṭī ghati = floor(60 r) | 60 a day पाठ | 10,93,50,00,000 |
| पल · विनाडी pala | 60 a ghaṭī (SS 1.11) | 18,22,50,000 |
| प्राण prāṇa | 6 a pala (SS 1.11) | 3,03,75,000 |
| स्पन्द spanda | 3,03,75,000 a prāṇa | 1 |
| Bhāgavata 3.11.5–8 | rule | spanda |
|---|---|---|
| अहोरात्र ahorātra | 30 muhūrta | 6,56,10,00,00,000 |
| मुहूर्त muhūrta | 2 nāḍikā | 21,87,00,00,000 |
| नाडिका nāḍikā | 15 laghu | 10,93,50,00,000 |
| लघु laghu | 15 kāṣṭhā | 72,90,00,000 |
| काष्ठा kāṣṭhā | 5 kṣaṇa | 4,86,00,000 |
| क्षण kṣaṇa | 3 nimeṣa | 97,20,000 |
| निमेष nimeṣa | 3 lava | 32,40,000 |
| लव lava | 3 vedha | 10,80,000 |
| वेध vedha | 100 truṭi | 3,60,000 |
| त्रुटि truṭi | 3 trasareṇu | 3,600 |
| त्रसरेणु trasareṇu | 3 aṇu | 1,200 |
| अणु aṇu | 2 paramāṇu | 400 |
| परमाणु paramāṇu | the closing value | 200 |
The ladders meet at the nāḍī and fork below it (1 prāṇa = 75/8 nimeṣa): the clock has two faces. The site carries Bhāgavata 3.11.4–8 and 3.11.10 as vedabase prints them (vendor/bharat-ephemeris/bhagavata-3-11.json; which printed edition the canon’s P2 names is the owner’s open ruling, D17); the chain is carried as the author’s canon records it (खगोलशास्त्र, ताम्र), the closing value paramāṇu = 200 being the unique one that lands on N.
Sūrya-Siddhānta 13: the gola, the kapāla, the gnomon — the yantras this engine is named after
पाठ (the verses, pinned) · the figures are the constructions the verses describe (गणित). yantra/patha/editions/surya-siddhanta-full-edition.html, adhyāya 13 (यन्त्राध्याय). The hero watch is these instruments on one dial: its sixty is the kapāla’s sixty sinkings (13.23), its rings the gola’s krānti and equinoctial (13.9, 13.12).
The text's own instrument: a wooden earth at the centre, Meru driven through it as the axis, the supporting rings, the equinoctial in the middle of all, the krānti ring tilted by the declination's sine 1397 on 3438, and the day-circles of the signs. The sphere turns about Meru; where the krānti meets the eastern horizon stands the lagna (13.13).
पाठगणितSS 13.3SS 13.4SS 13.5SS 13.9SS 13.12SS 13.13SS 13.15SS 2.28
SS 13.5: the rings are made in aṅgulas equal to half the degrees of a revolution — 180 aṅgulas for 360°. 13.17–19: the gola carries tuṅga and bīja, is made under a teacher, and its art, broken off age after age, reappears by someone’s grace.
ताम्रपात्रं अधश्छिद्रं न्यस्तं कुण्डे अमलाम्भसि — a copper vessel with a hole beneath, set in a basin of pure water, sinks sixty times in a day-and-night: that is the accurate kapāla instrument (SS 13.23). The sixty ghaṭī on the watch's bezel are these sixty sinkings.
| yantra | what the text builds | verses |
|---|---|---|
| गोल-यन्त्र | the armillary sphere: the earth-globe, Meru as the axis, the supporting rings, the equinoctial, the krānti (ecliptic) and the day-circles of the signs | SS 13.3, SS 13.4, SS 13.5, SS 13.6, SS 13.7, SS 13.8, SS 13.9, SS 13.10, SS 13.11, SS 13.12, SS 13.13, SS 13.14, SS 13.15, SS 13.16, SS 13.17 |
| कपाल-यन्त्र | the water-clock: a copper bowl with a hole beneath, set in clean water, sinks sixty times in a day-and-night — the sixty ghaṭī | SS 13.23 |
| नर-यन्त्र | the gnomon, and the shadow methods by day | SS 13.24, SS 13.20 |
| चक्र · धनुः · यष्टि | circle, bow and staff: the shadow instruments of many kinds | SS 13.20 |
| जल-यन्त्र | water instruments, the kapāla and the rest; the peacock, man and monkey devices; mercury, threads, sand | SS 13.21, SS 13.22 |
No edition on disk carries a graha-mantra text to serve; none is invented. SS 13.1 names the worship of the Sun, the planets and the stars before the gola is made — that is all the text says. Searched: surya-siddhanta (3 hits: none a mantra text); parashara-rahasya (156 hits: मन्त्री, minister; यन्त्रमन्त्रौ as a 5th-house signification, 11.6); maha-grantha; panini-rahasya; patanjali-yoga; aryabhata, bhaskara, brahmagupta, madhava, pingala, sulba, mahabhashya (0). The one ritual line the text gives is SS 13.1; nothing is invented beyond it.
What the graha channel computes: the śīghra epicycle and its loop
The epicycle of paridhi 70°/72° rides on the mean Guru; its radius always points to the śīghrocca, the mean Sun. The true place is the line from the Earth through the graha. Where the Sun is opposite, the graha runs backward: the retrograde loop (the station at kendra 130°, SS 2.53).
पाठगणितSS 2.34SS 2.35SS 2.36SS 2.37SS 2.40SS 2.41SS 2.42SS 2.53
Mean motions from the yuga revolutions (SS 1.29–33): Guru 0.08310°/day, the Sun 0.98560°/day; one synodic turn = 398.9 days, drawn in 20 s.
The mean planet moves in four steps on the deferent: half the śīghra-phala; half the manda-phala taken at the first place; the full manda-phala taken at the second place but applied to the mean; and the full śīghra-phala taken at the third place. The last step lands on the true place.
पाठगणितSS 2.43SS 2.44SS 2.45SS 2.40SS 2.41SS 2.42
Means at t0 = 400 days after the Kali start: mean 209.61°, mean Sun 34.24°, mandocca 129.96° (apsisAtKali). Each step is held for 2.5 s; the phalas are the signed amounts applied.
One nākṣatra turn is N = 30⁸ spandas: eight nested wheels of thirty divisions, the outermost turning once a turn and each inner wheel thirty times faster, so the innermost division is a single spanda.
स्वामी-परम्परागणितSS 1.11SS 1.12D1
One turn is about 23 h 56 m (the sidereal day, 86164.09 s). The readings are the engine's at …, carried forward at N ÷ 86164.09 s, and the wheels draw the same count. The innermost wheels turn thousands of times a second and alias on screen; their positions are exact.
The author's rule, bandha: the Sun and Moon means are bound to whole counts of the lattice, so that at the epoch they are integers. Here a free mean is bound to the nearest lattice line at each revolution.
स्वामी-परम्परागणितSS 1.37
At the epoch the bound means are integers of the lattice: the yuga days 1,57,79,17,828 × 7,20,00,000 fix the count (bija-samskara.js, the para). The picture is the rule, not a measurement; one lattice unit is 360°/30 = 12° here.
The record carries its own witness (candra-bandha.json); the bundle refuses to load if the witness disagrees — gate 5.
Which door answers which name
What the build refuses
- 1 the lattice is defined where the plan says and nowhere else
- 2 yantra/ reaches nothing outside yantra/
- 3 no foreign kernel is named in a code line of yantra/
- 4 the line-pinned files keep their line counts
- 5 every sealed record loads and its witness agrees
- 6 every module of yantra/ declares its pramāṇa class in its header
- 7 D11: the orchestrator's report carries the disclaimer and never a lifespan or death prediction
- 8 nothing generated is tracked
- 9 rule 17: no Devanagari digit inside a served string of yantra/ or spanda/
- 10 every test file asserts something
- 11 the aside boundary (APEX §3.14)
One line each, as the engine’s gate file names them.
The sunrise rules, named
| key | machine | note |
|---|---|---|
| patha | text | the text's own rule — SS 2.60–2.63 with 3.42 on the 24 jyās: bhujāntara + udayāntara + cara through the mean-Sun meridian, the Sun's centre on the horizon, no refraction (पाठ) |
| sphere | sphere | the exact sphere on the text's meridian (mean Sun + the hour) and ε = 24°: the Sun's centre on the true horizon, no refraction (गणित) |
| refracted | sphere | the sphere with the 34′ horizon dip (दृक्, named: standard refraction; स्वामी-परम्परा: the author's 'refracted' convention) |
| drk | drk | what is SEEN from the place: drk-udaya.riseSet on the udaya-bīja rotation, refraction and the Sun's semidiameter (दृक्) — the pratyakṣa door, also served as W.riseSet(jd, lat, lon, 'sun', 'rise'|'set') |
Where the civil day is counted
The core counts civil days and spandas; a Julian day is read only at the aside doors.
In-process, from the vendored door
const W = require("yantra.web.cjs");
W.grahas(jd).sun.lon;
W.panchanga(jd, lat, lonEast, { sunrise: "patha" });
W.faces(jd, lonEast);The same engine answers over HTTP at /api/v1/*, the eight routes below, read in-process from the same doors. Every route takes at (ISO 8601; UTC when no zone is given) or jd (Julian day), and defaults to now. Site routes take lat, lon (east positive; default Ujjayinī) and an optional name. Failures return ok: false with the status 400 or 500.
| path | params | returns |
|---|---|---|
| /api/v1/grahas | at · jd | the nine grahas as served (lon, lat, speed, retrograde, mean longitude), the text as written beside each body, and the ayanāṃśa served and as written |
| /api/v1/panchanga | at · jd · lat · lon · name · sunrise | the day as served: vāra, tithi, nakṣatra, yoga, karaṇa, month, the civil-day bounds, and the sunrise rules by key |
| /api/v1/lagna | at · jd · lat · lon | lagna, madhya-lagna, sāyana lagna, RAMC, ε and ayanāṃśa, with the text as written where the door carries it |
| /api/v1/faces | at · jd · lon | the two faces of one instant: the nakṣatra turn clock and the sāvana day, in spandas, ghaṭī and kapāla (large integers as strings) |
| /api/v1/ayanamsha | at · jd | the served ayanāṃśa, the text’s value, and why Lahiri is not served |
| /api/v1/limbs | at · jd | the limb indices at the instant (tithi, nakṣatra, pada, yoga, karaṇa) with sun, moon, rāhu, moon latitude and elongation |
| /api/v1/kula | at · jd · body · family | every phala term at the instant, one by one: the argument (a whole-number combination of the record’s basis means), its jyā and koṭijyā, the measured amplitudes with their slope, the term’s value and its family — the derivation of the served place, laid open; filter by body or family |
| /api/v1/stamp | none | the door as built: name, commit, build time, sha256 and bytes per door, records, edition, and channels |
The text as written beside every number: पाठ →.