Skip to content

How TithiKit works

A plain-language walkthrough of what the planned API does with a request. No code here: this page is for anyone deciding whether TithiKit fits their app or website.

The flow

  1. 1

    A place, a date, a timezone

    You send coordinates (or pick a city), a civil date and an IANA timezone name such as Europe/London. You also choose the regional calendar and, for some festivals, the tradition.
  2. 2

    Local sunrise

    The engine computes sunrise for those coordinates using a published definition. In the Hindu calendar the day runs from sunrise to sunrise, so this one moment anchors everything else.
  3. 3

    What is in effect, and when it changes

    Lunar-day and other boundaries are precomputed instants. The engine reads which ones are in effect at local sunrise and lists every change during the day in your local time.
  4. 4

    Months and festivals

    Month names follow the scheme you asked for. Festival rules (for example, an observance tied to a lunar day at local sunset) are applied for that location, so the date can differ from India's.
  5. 5

    The reasons, attached

    The response names each rule used and the ayanamsa, sunrise definition and timezone database version, so you can show users why a date is what it is.
  6. 6

    Tested in public

    Every engine release is planned to run against a public test suite of printed-almanac entries and edge cases, with pass rates and failures published.

What a response is planned to contain

PartContents
Elements at sunriseTithi (lunar day), paksha (fortnight), nakshatra, yoga, karana and vara (weekday) in effect at local sunrise
TransitionsEvery change of those elements within the civil day, as local times with the zone abbreviation
Sun and Moon timesSunrise, sunset, moonrise and moonset for the coordinates
MonthLunar month name under both amanta and purnimanta schemes, with an adhika (leap) month flag
YearSamvatsara (year name in the 60-year cycle)
Regional solar dateTamil solar month and day first; other regional solar calendars only after their rules pass tests
FestivalsDates with rule_id, the rule text, and the observance window, per tradition where traditions differ
metaengine_version, tzdb_version, ayanamsa, sunrise_definition and rules_applied, on every response

The API is in development. Field names may change before launch; reference documentation will be published when the endpoints are live.

Why the location matters so much

A lunar day (tithi) ends at a single instant worldwide. Whether that instant falls before or after sunrise depends on where you are. If a tithi ends at 05:30 UTC, that is 11:00 in Delhi, well after sunrise, but 01:30 in New York during daylight time, before sunrise. The two cities can therefore assign that tithi to different civil dates, and festivals tied to it can move too.

Many calendar sources compute for one Indian city and convert the times. That gives correct instants but can give wrong dates for users abroad. TithiKit computes the day where the user is. The guide why festival dates differ outside India goes through this step by step.

What TithiKit does not do

TithiKit is a calendar. It reports which lunar day, month or festival applies and when, under named rules. It does not interpret dates, rank them, or make claims about outcomes, and it never needs anyone's birth details.

Where to go next

Want a key when the API opens?

Calendar and astronomical data for cultural and religious observance. Not advice of any kind.