Skip to content

Use case

Festival dates for diaspora calendar apps

Design notes for developers building Hindu calendar, festival-reminder or family-organizer apps for users in the US, UK, Canada, Australia, Singapore and elsewhere. The advice applies whichever data source you use; TithiKit is being built for exactly this case.

The problem in one sentence

Your users live in many timezones, but most published Hindu calendar data is computed for India. Showing India's dates, or India's times converted to the user's zone, gives the wrong day whenever a lunar transition falls near local sunrise, sunset or midnight. Those are often the festival days your users open the app for. The guide why festival dates differ outside India walks through the mechanism.

A typical architecture

  1. Onboarding: city (resolved to coordinates and an IANA zone), calendar scheme, optional tradition, and which festivals to be reminded about.
  2. Yearly fetch: when the user joins, and once a year after, fetch the festival list for their location and settings for the coming 12–18 months. Cache it on your server keyed by rounded location and settings, so users in the same city share one request.
  3. Daily view: fetch the day's panchang on demand, or prefetch a month at a time, and cache by city and date.
  4. Reminders: schedule notifications in the user's zone from the cached list. Re-schedule if they change city.
  5. Calendar export: offer an ICS subscription so festival dates appear in Google, Apple or Outlook calendars, as all-day events in the user's zone.

Planning your request volume

Caching by city changes the economics. A few hundred users spread across a dozen metro areas need only a dozen yearly festival fetches and a dozen daily panchang fetches per day. A rough planning formula:

monthly_requests ≈ cities × (30 daily views + 1 festival list)
                 + recomputes for users who move

Round coordinates to two decimal places (about 1 km) for the cache key; sunrise differs by seconds within that distance. Use exact coordinates only if your users need sub-minute times.

Design decisions to make early

DecisionRecommendation
LocationAsk for a city at onboarding; store latitude, longitude and the IANA zone name. Offer device location as an option, not a requirement.
Calendar schemeAsk which calendar the family follows (for example Telugu amanta, North Indian purnimanta, Tamil solar). Do not infer it from language or name.
TraditionFor festivals where traditions differ, let users pick a tradition, or show both dates with a short label.
LabelsShow month names with their scheme, and transition times with the zone abbreviation (ends 14:32 EDT).
ExplanationsKeep the rule that produced each date, and show it on tap. It answers the inevitable "my temple says otherwise" question.
TravelRecompute when the user changes city. A festival date can change when they fly from Dallas to Chennai.

Edge cases your QA should cover

  • A festival whose date differs between India and your user's city.
  • The DST transition days in the user's country.
  • A skipped or repeated tithi (two days with the same tithi name, or none).
  • A leap month year, where month names shift.
  • A user in a city with long summer days, such as Edinburgh or Helsinki.

The daylight saving guide lists concrete test cases.

What TithiKit is planned to provide

  • Daily panchang and month grids for any coordinates and IANA zone.
  • Festival lists with the rule behind each date and tradition variants.
  • Both amanta and purnimanta month names, adhika masa, and Tamil solar dates.
  • ICS feeds, TypeScript and Python SDKs.
  • No personal data required: you never send us anything about your users beyond a location.

See planned pricing: the free tier (2,000 requests a month) is enough to build and test; Builder ($29 a month, 100,000 requests) is sized for a small production app with city-level caching.

Building for families abroad?

Tell us your stack and your users' countries when you join early access.

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