vedaksha-vedic-astrology

v11.1.0
io.github.arthiqlabs/vedaksha-vedic-astrology Checked 8 hours ago Published 16 hours ago

Vedic astrology and astronomical ephemeris: kundali, panchanga, dashas, vargas, transits

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

compute_natal_chart

Compute a natal astrological chart for a given time and location. Returns JSON with each body's longitude, latitude, speed, sign, house, dignity and retrograde flag, the house cusps with ascendant and MC, the aspects, and the ayanamsha applied. Pass a sidereal ayanamsha for a Vedic chart (kundali); the default is tropical. To get a property graph, pass this output to emit_graph.

ParameterTypeDescription
julian_day *numberJulian Day number in UT1 (Universal Time) — not TT, not TDB. The engine converts to TT internally for the dynamical terms (planetary positions, nutation, obliquity) and evaluates the Earth-rotation…
latitude *numberGeographic latitude in degrees [-90, +90]
longitude *numberGeographic longitude in degrees [-180, +180], east positive
ayanamshastringSidereal zodiac system. Eleven systems, each derived forward from a primary source and none tuned to match another implementation. The chart's true_ayanamsha_value output field reports the TRUE ayanam…
house_systemstringHouse system: Placidus, Koch, Equal, WholeSign, etc.

compute_dasha

Compute Vedic dasha (planetary period) sequences. Supports eight classical systems: Vimshottari, Ashtottari, Yogini (Moon-longitude based, require `moon_longitude`); Chara, Narayana (sign based, require BOTH `lagna_sign` AND `graha_signs`, since each sign's period length is counted to the sign its lord occupies in this chart); Sthira, NiryanaShoola (`niryana_shoola` is accepted too) and Maheshwara (Jaimini rashi dashas, require `lagna_sign` AND `graha_longitudes`, since the atmakaraka and the tie-breaks of the strength tests read degrees). `graha_signs` takes the eight `sign_index` values comp…

ParameterTypeDescription
birth_jd *numberBirth Julian Day used as the dasha epoch, in UT1 (Universal Time) — not TT, not TDB, i.e. the same scale as compute_natal_chart's julian_day. This epoch is only added to, never converted: every retu…
antardashasbooleanChara only: when true each of the twelve periods carries its twelve antardashas in `antar` (BPHS 51.5-51.9: the stronger of the dasha rashi and its seventh starts, by modality, a twelfth of the period…
graha_longitudesobjectSidereal longitudes in degrees [0, 360) of the seven classical grahas plus Rahu, as compute_natal_chart serves them (Rahu from its MeanNode). Required, with lagna_sign, for Sthira, NiryanaShoola and M…
graha_signsobjectNatal sign positions of the seven classical grahas plus Rahu, 0-11 each (0 = Aries), as served by compute_natal_chart's sign_index. Required for Chara, Narayana, whose period lengths are chart-depende…
karaka_schemestringWhich chara karakas name the atmakaraka for Sthira and Maheshwara: "7" (Sun to Saturn) or "8" (adds Rahu), as compute_karakas takes it. Applies to those two systems only.
lagna_signintegerLagna (ascendant) sign 0–11 (0 = Aries). Required for Chara, Narayana, Sthira, NiryanaShoola, Maheshwara. This is the same 0-indexed convention compute_natal_chart, compute_bhavas and compute_vargas…
levelsintegerNumber of nested dasha levels (1–5). Ignored by the sign-based systems (Chara, Narayana, Sthira, NiryanaShoola, Maheshwara).
moon_longitudenumberNatal Moon sidereal longitude in degrees [0, 360). Required for Vimshottari, Ashtottari, Yogini.
roundsintegerYogini only: how many whole 36-year rounds of the cycle to produce. Round 1 is the round from birth, whose first maha is the birth yogini's unelapsed share; each later round runs all eight yoginis who…
systemstringDasha system selector
untilnumberYogini only: a horizon as a Julian Day (UT1). Whole rounds are produced until the tree reaches it, at least one and at most the maximum of `rounds`; compare the last maha's end_jd with it to see wheth…

compute_karakas

Compute Jaimini Chara Karaka assignments from sidereal planet longitudes. Ranks planets by degrees within their current sign: highest = Atmakaraka (soul significator), lowest = Darakaraka (spouse significator). Supports 7-karaka (Sun–Saturn) and 8-karaka (adds Rahu) schemes.

ParameterTypeDescription
jupiter *numberSidereal longitude of Jupiter [0, 360)
mars *numberSidereal longitude of Mars [0, 360)
mercury *numberSidereal longitude of Mercury [0, 360)
moon *numberSidereal longitude of Moon [0, 360)
saturn *numberSidereal longitude of Saturn [0, 360)
sun *numberSidereal longitude of Sun [0, 360)
venus *numberSidereal longitude of Venus [0, 360)
rahunumberSidereal longitude of Rahu [0, 360). Required for scheme '8'.
schemestringKaraka scheme: '7' (default, Sun–Saturn) or '8' (adds Rahu + Pitrikaraka)

compute_combustion

Compute combustion state for each planet relative to the Sun: principle per BPHS Ch.7 vv.28-29, orbs per Surya Siddhanta IX.6-8 and X.1 (Moon 12, Mars 17, Mercury 14 or 12 retrograde, Jupiter 11, Venus 10 or 8 retrograde, Saturn 15 deg). Returns Combust, DeeplyCombust, or None for Moon, Mars, Mercury, Jupiter, Venus, Saturn with degrees of separation. This is a low-level tool over already-known positions, not a natal-chart tool: call compute_natal_chart first and pass its planets[].longitude (matched by planets[].name) and planets[].retrograde values straight through as this tool's inputs —…

ParameterTypeDescription
jupiter *numberSidereal longitude of Jupiter [0, 360). From compute_natal_chart's planets[] entry where name == "Jupiter", field longitude.
mars *numberSidereal longitude of Mars [0, 360). From compute_natal_chart's planets[] entry where name == "Mars", field longitude.
mercury *numberSidereal longitude of Mercury [0, 360). From compute_natal_chart's planets[] entry where name == "Mercury", field longitude.
moon *numberSidereal longitude of Moon [0, 360). From compute_natal_chart's planets[] entry where name == "Moon", field longitude.
saturn *numberSidereal longitude of Saturn [0, 360). From compute_natal_chart's planets[] entry where name == "Saturn", field longitude.
sun *numberSidereal longitude of Sun [0, 360). From compute_natal_chart's planets[] entry where name == "Sun", field longitude.
venus *numberSidereal longitude of Venus [0, 360). From compute_natal_chart's planets[] entry where name == "Venus", field longitude.
jupiter_retrogradebooleanTrue if Jupiter is retrograde. Accepted for symmetry; Jupiter's orb is 11 deg either way, so this does not change the result. From compute_natal_chart's Jupiter entry, field retrograde.
mars_retrogradebooleanTrue if Mars is retrograde. Accepted for symmetry; Mars's orb is 17 deg either way (Surya Siddhanta IX.6 gives it no retrograde figure), so this does not change the result. From compute_natal_chart's…
mercury_retrogradebooleanTrue if Mercury is retrograde, which narrows its combustion orb from 14 deg to 12 deg (Surya Siddhanta IX.8). From compute_natal_chart's Mercury entry, field retrograde.
saturn_retrogradebooleanTrue if Saturn is retrograde. Accepted for symmetry; Saturn's orb is 15 deg either way, so this does not change the result. From compute_natal_chart's Saturn entry, field retrograde.
venus_retrogradebooleanTrue if Venus is retrograde, which narrows its combustion orb from 10 deg to 8 deg (Surya Siddhanta IX.7). From compute_natal_chart's Venus entry, field retrograde.

compute_shadbala

Compute the complete six-fold Shadbala of the seven grahas (Sun to Saturn) for a birth moment and place, per BPHS Ch.27, with Ishta and Kashta Phala per Ch.28, in virupas. Pass the moment and the place; the tool casts the chart itself and reads sunrise, sunset and the next sunrise from the engine. Every part is in the output, each in its own field: Sthana (uccha, saptavargaja, ojhayugma, kendradi, drekkana), Dig (continuous, the arc from the weak cusp over 3, 27.7), Kala (nathonnata, paksha, tribhaga, abda, masa, vara, hora, ayana and yuddha, which is signed), Cheshta (the cheshta kendra for M…

ParameterTypeDescription
ayanamsha *stringSidereal zodiac system. Eleven systems, each derived forward from a primary source and none tuned to match another implementation. The chart's true_ayanamsha_value output field reports the TRUE ayanam…
julian_day *numberJulian Day number in UT1 (Universal Time) — not TT, not TDB, i.e. the same scale as compute_natal_chart's julian_day.
latitude *numberGeographic latitude in degrees, north positive. The Hindu day is reckoned from this place's sunrise.
longitude *numberGeographic longitude in degrees, east positive.
elevation_mnumberObserver elevation in metres above sea level [-500, 9000] (default 0). Lowers the horizon by the dip and so moves sunrise and sunset.
house_systemstringHouse system whose first, fourth, seventh and tenth cusps Dig Bala is measured from, and whose house placements give Kendradi Bala: Placidus, Koch, Equal, WholeSign, etc. The same names compute_natal_…
tz_offset_minutesintegerOffset of the observer's civil clock from UT, in minutes, in [-720, 840] (UTC-12:00 to UTC+14:00). Names the calendar date of the sunrise that begins the Hindu day, from which the lords of the year, m…

compute_vargas

Compute Vedic divisional charts (vargas). Given a time and place, returns one chart per requested division: the varga lagna, and for each of the ten bodies compute_natal_chart returns — the seven grahas plus the mean, true and osculating lunar node — its rashi longitude, the sign it occupies within that varga, its dignity in that sign, and its whole-sign bhava counted from the varga lagna. Ketu is not listed separately: it is the node's opposite point, 180 degrees away. The nodes carry no dignity, so that field is absent for them. Supply planet_longitude instead to divide a single longitud…

ParameterTypeDescription
divisions *arrayVarga division codes to compute, e.g. ["D1", "D9", "D10"]
julian_day *numberJulian Day number in UT1 (Universal Time) — not TT, not TDB. Same scale as compute_natal_chart's julian_day: the engine converts to TT internally for the dynamical terms and uses UT1 directly for th…
latitude *numberGeographic latitude in degrees [-90, +90]
longitude *numberGeographic longitude in degrees [-180, +180], east positive
ayanamshastringSidereal zodiac system. Eleven systems, each derived forward from a primary source and none tuned to match another implementation. The chart's true_ayanamsha_value output field reports the TRUE ayanam…
planet_longitudenumberSidereal longitude of a single body in degrees [0, 360). When supplied, only this longitude is divided and no ephemeris is consulted; the result carries no graha name, dignity or bhava.
traditionstringWhich Parashari reading to use where the texts diverge. 'modality' (default) starts the division from a movable/fixed/dual sign; 'element' starts it from a fire/earth/air/water sign. This changes D16,…

emit_graph

Turn a chart into a queryable property graph. Accepts the output of compute_natal_chart directly (pass latitude and longitude alongside it), or an existing ChartGraph. Emits Neo4j Cypher, SurrealDB SurrealQL, JSON-LD, plain JSON, or RAG embedding text.

ParameterTypeDescription
chart_json *objectEither the output of compute_natal_chart ({planets, houses, aspects, ...}), which is converted to a graph here, or an existing ChartGraph ({nodes, edges, chart_id, classification})
format *stringTarget output format
classificationstringOptional label or session ID attached to emitted nodes
latitudenumberObserver latitude, degrees north. Required when chart_json is a computed chart; a chart result does not record where it was cast. Ignored for an existing ChartGraph.
longitudenumberObserver longitude, degrees east. Required when chart_json is a computed chart.

compute_transit

Compute transiting planet positions relative to a natal chart at a specific moment. Returns planet longitudes for the transit time alongside natal positions, enabling aspect calculation between transit and natal placements.

ParameterTypeDescription
natal_jd *numberJulian Day of the natal chart in UT1 (Universal Time) — not TT, not TDB. The engine converts to TT internally for the dynamical terms.
natal_lat *numberNatal geographic latitude in degrees [-90, +90]
natal_lon *numberNatal geographic longitude in degrees [-180, +180], east positive
transit_jd *numberJulian Day of the transit moment to compute, in UT1 (Universal Time) — not TT, not TDB. The engine converts to TT internally for the dynamical terms.

search_transits

Search for transiting planet–natal planet aspects within a time window. Supply natal positions and a Julian Day range; receive a list of exact transit moments with aspect type, orb, and applying/separating status.

ParameterTypeDescription
end_jd *numberEnd of the search window as a Julian Day in UT1 (Universal Time) — not TT, not TDB.
natal_positions *arrayArray of natal planet positions to check transits against
start_jd *numberStart of the search window as a Julian Day in UT1 (Universal Time) — not TT, not TDB. The engine converts to TT internally for the dynamical terms; each event's exact_jd is returned on this same UT1…
aspectsarrayAspect types to filter (e.g. conjunction, opposition, trine). Defaults to major aspects.
bodiesarrayTransiting bodies to include. Defaults to all planets.
max_orbnumberMaximum orb in degrees (default 1.0)

search_muhurta

Search for auspicious time windows (muhurta) within a given period for a geographic location. Returns ranked muhurta candidates with quality scores based on tithi, nakshatra, yoga, karana, and planetary positions. The search window is capped at 30 days (see MUHURTA_SEARCH_RANGE_TOO_LARGE), a scope limit; for a longer horizon, issue several searches.

ParameterTypeDescription
end_jd *numberEnd of the search window as a Julian Day in UT1 (Universal Time) — not TT, not TDB. The span from start_jd to end_jd must not exceed 30 days.
latitude *numberGeographic latitude in degrees [-90, +90]
longitude *numberGeographic longitude in degrees [-180, +180], east positive
start_jd *numberStart of the search window as a Julian Day in UT1 (Universal Time) — not TT, not TDB. The engine converts to TT internally for the dynamical terms and uses UT1 directly for sunrise, which each candi…
elevation_mnumberObserver elevation in metres above sea level [-500, 9000] (default 0). Lowers the horizon by the dip and so moves sunrise, which is what each candidate's vara is reckoned from — at 3650 m (Lhasa) 9.…
min_qualitynumberMinimum quality score [0.0, 1.0] for muhurta inclusion (default 0.5)
tz_offset_minutesintegerOffset of the observer's civil clock from UT, in minutes. Names the vara (weekday) reported for each candidate — it does not change which sunrise bounds the vara, only what that vara is called. Defa…

compute_ashtakavarga

Compute Bhinna Ashtakavarga (raw bindu tables) and Sarvashtakavarga for all 7 planets from sign positions. Source: BPHS Ch.66 vv.13-68. Trikona/Ekadhipatya Shodhana and Pinda Sadhana are not included.

ParameterTypeDescription
jupiter *integerSign index of Jupiter (0=Aries…11=Pisces)
lagna *integerSign index of Lagna (Ascendant)
mars *integerSign index of Mars (0=Aries…11=Pisces)
mercury *integerSign index of Mercury (0=Aries…11=Pisces)
moon *integerSign index of Moon (0=Aries…11=Pisces)
saturn *integerSign index of Saturn (0=Aries…11=Pisces)
sun *integerSign index of Sun (0=Aries…11=Pisces)
venus *integerSign index of Venus (0=Aries…11=Pisces)

compute_gochara

Compute Gochara (transit interpretation) for the seven grahas against a natal reference sign per Phaladeepika ch. 26. Returns favourable/unfavourable verdict, house from natal, and raw vedha (obstruction) candidates per planet. The natal reference sign is the caller's choice — typically the natal Moon's sign (Chandra Gochara) or the natal Lagna's sign. Rahu and Ketu are not included.

ParameterTypeDescription
jupiter *integerTransit sign index of Jupiter
mars *integerTransit sign index of Mars
mercury *integerTransit sign index of Mercury
moon *integerTransit sign index of Moon
natal_reference_sign *integerSign index of the natal reference point — natal Moon for Chandra Gochara, natal Lagna for Lagna-based Gochara
saturn *integerTransit sign index of Saturn
sun *integerTransit sign index of Sun (0=Aries … 11=Pisces)
venus *integerTransit sign index of Venus
schoolstringExemption profile applied to the raw vedha candidate list
vedha_tablestringVedha pair table source: the vedha places of Phaladeepika ch. 26, which agree with Muhurta Chintamani ch. 4

compute_panchanga

Compute the panchanga — the five limbs of the Vedic almanac — for an instant: tithi (lunar day, with paksha and lord), vara (weekday reckoned from local sunrise, with its lord and the Rahu and Gulika Kalam windows as Julian Days), nakshatra (with pada), yoga (one of the 27 nithya yogas, with degrees remaining), and karana (half-tithi). Takes sidereal longitudes; all returned instants are Julian Days (UT). vara.from_sunrise reports HOW the weekday was reckoned: true means it was taken from an actual local sunrise (the Vedic definition); false means no sunrise exists to reckon from — the p…

ParameterTypeDescription
jd *numberJulian Day number in UT1 (Universal Time) — not TT, not TDB. The engine converts to TT internally for the dynamical terms and uses UT1 directly for sunrise, which the vara is reckoned from; every re…
latitude *numberObserver latitude in degrees. Required — the vara is reckoned from local sunrise, so it depends on the observer.
longitude *numberObserver longitude in degrees, east positive. Required.
moon *numberSidereal longitude of Moon [0, 360)
sun *numberSidereal longitude of Sun [0, 360)
elevation_mnumberObserver elevation in metres above sea level [-500, 9000] (default 0). Lowers the horizon by the dip and so moves sunrise — at 3650 m (Lhasa) 9.2 minutes earlier, enough to change the vara in that w…
tz_offset_minutesintegerOffset of the observer's civil clock from UT, in minutes, in [-720, 840] (UTC-12:00 to UTC+14:00). Used only to name the vara's weekday.

compute_drishti

Compute graha drishti — Vedic sign aspects — for all nine grahas. Unlike Western aspects, drishti is cast from sign to sign and is asymmetric: every graha aspects the 7th from itself, and Mars additionally aspects the 4th and 8th, Jupiter the 5th and 9th, Saturn the 3rd and 10th. Returns each aspect with its graded strength (Full, ThreeQuarter, Half, Quarter) and the house distance.

ParameterTypeDescription
jupiter *numberSidereal longitude of Jupiter [0, 360)
ketu *numberSidereal longitude of Ketu [0, 360)
mars *numberSidereal longitude of Mars [0, 360)
mercury *numberSidereal longitude of Mercury [0, 360)
moon *numberSidereal longitude of Moon [0, 360)
rahu *numberSidereal longitude of Rahu [0, 360)
saturn *numberSidereal longitude of Saturn [0, 360)
sun *numberSidereal longitude of Sun [0, 360)
venus *numberSidereal longitude of Venus [0, 360)

compute_bhavas

Compute the whole-sign bhava (house) chart from an ascendant. In the Vedic whole-sign system the entire sign containing the ascendant is the 1st bhava, the next sign the 2nd, and so on — houses do not have cusps within signs. Returns the sign of each of the twelve bhavas with its kendra / trikona / dusthana / upachaya classification, and optionally places supplied grahas into their bhavas.

ParameterTypeDescription
ascendant *numberSidereal longitude of the ascendant [0, 360)
planetsobjectOptional map of graha name to sidereal longitude, e.g. {"Mars": 200.4}. Each is placed into its bhava.

compute_synastry

Compute synastry — the aspects each graha in one chart makes to each graha in another chart. Every graha in chart A is tested against every graha in chart B (the two charts do not need the same graha names), and each hit is returned with its aspect type, orb in degrees and strength (1.0 at exact, falling linearly to 0.0 at the orb boundary). Orbs are the traditional Lilly values — conjunction, trine and opposition 8°, square 7°, sextile 6°, minors 2° — scaled by orb_factor. Longitudes only: this tool needs no birth time, place or ephemeris.

ParameterTypeDescription
chart_a *objectMap of graha name to sidereal longitude [0, 360) for the first chart, e.g. {"Sun": 10.0, "Moon": 130.0}.
chart_b *objectMap of graha name to sidereal longitude [0, 360) for the second chart. Need not use the same names as chart_a.
aspect_setstring'major' (default) tests the five Ptolemaic aspects; 'all' adds semi-sextile, semi-square, quintile, sesquiquadrate, bi-quintile and quincunx.
orb_factornumberMultiplier on the default orbs. 1.0 (default) is standard, 0.5 is tight. Must be greater than 0 and at most 5.0, above which the major-aspect windows cover every separation.

compute_composite

Compute the midpoint composite chart of two charts: for each graha, the shorter-arc midpoint of its longitude in the two charts, and the arithmetic mean of its two speeds. The two charts must carry the SAME graha names — each graha is paired with its namesake, not with whatever happens to sit at the same position in a list — and a name present in one chart but not the other is an error naming that graha. Longitudes only: this tool needs no birth time, place or ephemeris.

ParameterTypeDescription
chart_a *objectMap of graha name to position for the first chart, e.g. {"Sun": {"longitude": 350.0, "speed": 1.0}}. `speed` is optional and defaults to 0.
chart_b *objectMap of graha name to position for the second chart. Must have exactly the same graha names as chart_a.