🪔 Vedic Kundli & Divisional Vargas
Computes D1 (Rashi), D9 (Navamsha), and all 16 Shodashavarga charts (D2 to D60). Rendered in high-contrast North Indian (diamond) and South Indian (box) SVGs with Kendra fills and Lagna highlights.
Compute D1 (Rashi) & D9 (Navamsha) divisional charts, Panchanga five limbs, and True Sidereal Solar Year (TSSY) Vimshottari dasha in under 2ms — computed 100% on your device with complete privacy.
The Rust crate, the Python package and the npm package share one core and one version. Their results are the same JSON, down to the key order.
use khagole_engine::ephemeris::{Kernel, KernelSet, Spk};
use khagole_engine::{calculate_chart, ChartRequest, UtcInstant};
use khagole_engine::vedic::{calculate_divisional, calculate_panchang};
let mut kernels = KernelSet::new();
kernels.push(Kernel::new("de440s.bsp",
Spk::open("kernels/de440s.bsp")?)?);
let mut req = ChartRequest::new(
UtcInstant::parse("1950-09-17T04:04:00Z")?, 23.784, 72.636);
req.zodiac_type = "sidereal".into();
req.ayanamsa = "lahiri".into();
let chart = calculate_chart(&kernels, &req)?;
let d1 = calculate_divisional(&chart, chart.houses[0].ecliptic_longitude, "D1")?;
import khagole_engine as ace
engine = ace.Engine(["de440s.bsp"])
chart = engine.chart(
"1950-09-17T04:04:00Z", 23.784, 72.636,
house_system="W",
zodiac_type="sidereal",
ayanamsa="lahiri",
)
d1 = ace.calc_divisional(chart, chart["houses"][0]["ecliptic_longitude"], "D1")
d1["lagna"]["sign"] # 'Scorpio'
import init, { Engine, calcDivisional, calcPanchang } from "khagole-engine";
await init();
const engine = new Engine();
const res = await fetch("/ephemeris/de440s.bsp");
engine.addKernel("de440s.bsp",
new Uint8Array(await res.arrayBuffer()));
const chart = engine.chart({
utc: "1950-09-17T04:04:00Z",
latitude: 23.784, longitude: 72.636,
zodiac_type: "sidereal", ayanamsa: "lahiri"
});
const d1 = calcDivisional(chart, chart.houses[0].ecliptic_longitude, "D1");
Computes D1 (Rashi), D9 (Navamsha), and all 16 Shodashavarga charts (D2 to D60). Rendered in high-contrast North Indian (diamond) and South Indian (box) SVGs with Kendra fills and Lagna highlights.
Multi-level Mahadasha, Antardasha, and Pratyantardasha progressions. Supports True Sidereal Solar Year (TSSY) solar return solver matching canonical Parashari standards, alongside Sidereal, Savana, and Tropical years.
Calculates Tithi, Vara, Nakshatra with Pada, Yoga, and Karana in sub-millisecond execution directly from high-precision Sun and Moon longitudes.
Search any city across the globe with instant autocomplete geocoding. Automatically derives latitude, longitude, and historical/daylight-saving UTC timezone offsets.
Surya to Ketu, outer planets, with instantaneous daily speed and retrograde status (Vakri), and exact Ascendant (Lagna) degrees from JPL DE440s ephemerides.
Whole Sign (Rashi Bhava) standard Parashari, traditional Sripati (Bhava Chalita), Equal House, and cuspal systems with exact planet-to-house mappings.
Supports Chitrapaksha Lahiri (standard Vedic default), True Chitra / Invariable Plane, B.V. Raman, Krishnamurti (KP), Sri Yukteswar, and Fagan-Bradley.
Mean nodes (Rahu/Ketu strictly 180° opposite), geometric true ephemeris positions, and exact Moon-longitude Mahadasha balance at birth.
Defaults are strictly aligned with canonical Vedic Parashari standards: Sidereal zodiac, Lahiri ayanamsa, Mean nodes (TrueNodes=0), Geometric positions (TruePositions=1), Whole Sign houses (W), and TSSY Dasha year standard.
Pure Rust WebAssembly compiles with zero C dependencies. Ephemeris lookups, astrological reductions, and chart generations occur entirely on your local machine with no user data ever sent to remote servers.
Sub-arcsecond celestial positions computed directly from NASA JPL DE440s (1849–2150) or DE441 (13200 BC–17191 AD) Chebyshev polynomials with IAU 2006 precession and IAU 2000A nutation.
Open-source under MIT and Apache-2.0 licenses. Deployed live on GitHub Pages at priyankgahtori.github.io/Khagole. View on GitHub →
Positions come from NASA JPL DE440s (1849–2150) or DE441 (13200 BC–17191 AD), read by a pure-Rust SPK reader. A date outside the loaded kernels is an error, never a guess.
Every release reproduces the reference implementation's output for natal, horary, transit, synastry and derived charts: floats within 10−9, with the same keys in the same order.
Time scales, precession, nutation, light-time, deflection and aberration are checked against Skyfield, and raw kernel states against jplephem.
Pure Rust with no C code and two dependencies (serde, serde_json). Builds for servers,
wasm32-unknown-unknown, Android and iOS.
How accuracy is verified →