Skip to content

In development

Accuracy you can check, not just trust

TithiKit will publish a versioned test suite and its results with every engine release. The suite is being built alongside the engine; no results are published yet. This page explains what it will test and what counts as a pass.

Why correctness needs evidence

A Hindu calendar date can be wrong in ways that look plausible. A transition a few minutes off can move a tithi across sunrise and change the date. A timezone handled with a fixed offset is right for half the year. A festival computed for India is published for Chicago. None of these errors is visible in a single response, and your users usually find them first, on the day itself.

In our research we did not find a panchang API that publishes a test suite developers can inspect. So we plan to publish ours: the cases, the references, the tolerances and the failures.

Three layers of tests

LayerWhat is testedReferenceTolerance
L1 AstronomySun and Moon sidereal longitudes, transition instants, sunrise and sunset for 200 cities including high latitudesAn independent ephemeris (Skyfield with JPL DE440s), plus about 50 instants spot-checked by hand against JPL HorizonsSunrise and sunset within ±1 minute (gating)
L2 Calendar rulesTithi at sunrise, month names, leap months, festival dates, Tamil solar datesEntries hand-transcribed from printed regional panchangams (edition, page and place cited) and published diaspora temple calendars (URL and date cited)Dates exact; times within ±2 minutes, with sunrise-definition differences documented per source
L3 PropertiesDST gaps and overlaps, the date line, polar day and night, skipped and repeated tithis, 29- and 30-tithi months, leap and lost monthsInvariants that must always holdMust hold

What “stable” will mean

A festival or regional rule will be marked stable only after at least three L2 reference cases for it pass. Until then it is returned with a beta label, and any page we publish for it carries a visible “rule under verification” notice.

Rules the suite follows

  • Failures are published, and each one gets a public issue.
  • When two reference almanacs disagree, the case is recorded as tradition variance with both values, not quietly resolved in our favor.
  • Every reference case cites its source: almanac edition, page and place, or a URL and access date.
  • We do not scrape commercial panchang sites or other APIs. Any comparison with another provider will be manual and checked against that provider's terms first.
  • The suite version is reported in every API response, so you can tie any answer to a test run.

Planned licensing

Test data under CC BY 4.0 and the runner under MIT, in a public repository. We will link it here when it is published.

Found a date you think is wrong?

Send the place, date, calendar and the source you compared against to us via the contact page. Once the suite is public, confirmed reports become test cases.

Get the first results by email

Early-access members hear first when suite v1 and its pass rates are published.

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