Skip to content
Documentation · all sections

KP & Prashna

panchang-ts · v5.0.0 · MIT

KP sub-lords at any longitude, Placidus-KP cuspal sub-lords, four-fold significators, and horary Prashna charts.

KP sub-lord at any longitude

import { computeKpSubLord } from 'panchang-ts';

// 243 sub-divisions across the zodiac, proportional to Vimshottari years.
const info = computeKpSubLord(45.5);    // 15°30' Taurus
info.signLord;   // 'Venus'
info.starLord;   // 'Moon'
info.subLord;

Cuspal sub-lords

import { computeKpCuspalSubLords } from 'panchang-ts';

// Always Placidus-KP — KP's anchor scheme.
const cusps = computeKpCuspalSubLords(birth, loc);
cusps.cusps[0]!.subLord;   // ascendant
cusps.cusps[6]!.subLord;   // descendant

Placidus houses are undefined beyond ±66.5°, so this throws PanchangError('CIRCUMPOLAR') there — see Errors & Compatibility.

Significators

import { computeKpSignificators } from 'panchang-ts';

// For each planet, the houses it signifies via the 4-fold KP rule
// (occupant + star-lord-occupant + owner + star-lord-owner).
const sig = computeKpSignificators(d1);
sig.byPlanet.Sun;
sig.byHouse[10];

Prashna (horary) chart

import { computePrashnaChart } from 'panchang-ts';

// Cast at the question moment from the querent's location.
const pchart = computePrashnaChart(
  new Date('2026-05-09T14:30:00Z'),
  { latitude: 19.0760, longitude: 72.8777 },
);
pchart.lagna.rashi.name;
pchart.bhava.system;        // 'placidus-kp' by default (KP horary anchor)
pchart.planets[1]!.house;   // Moon — primary mind significator

Same return shape as a natal BirthChart. Pass { houseSystem: 'whole-sign' } to computePrashnaChart for traditional Vedic Prashna.