Moon-phase and cycle features for wellness apps

Lunar rhythm, personal cycles and observance days, done properly.

Meditation, journaling and wellness apps use the Moon and personal cycles as gentle structure: a new-moon intention, a full-moon reflection, a fasting reminder, a daily card to journal on. These are small features, but users notice when the Moon phase is a day off or a fast is announced on the wrong date, so the arithmetic is worth getting from an ephemeris.

5 endpoints across 4 stages. Updated .

Plan: Free covers biorhythms, panchang observances and the daily tarot card; /v1/western/lunar-metrics (phase, illumination, void-of-course) is Hobby.

Worth knowing first

A fasting day depends on where the user wakes up

Moon phase is one instant for the whole planet; a tithi-based observance is not. The Indian calendar assigns a day the tithi in force at local sunrise, so the same Ekadashi lands on different dates by location. For the Krishna Ekadashi of January 2027, /v1/panchang reports Ekadashi at sunrise on 3 January in New Delhi but on 2 January in New York - the tithi began at 08:54 UTC, after Delhi's sunrise and before New York's. Compute observances with each user's own coordinates and UTC offset, and send the reminder the evening before their date, not India's.

Stage 1

The Moon right now

No birth data and no location: one UTC instant in, the Moon's state out. Fetch once per hour for the whole user base and serve it from cache.

Stage 2

Personal cycles

Biorhythms need only a date of birth - no time, no place - which makes them a low-friction first personal feature. Chart the numeric value of each cycle (-1 to 1): its sign tells a high from a low.

Stage 3

Observance calendar

Ekadashi, Purnima and Amavasya reminders come from the tithi at sunrise for the user's location - one call per date per place, so cache by rounded coordinates and date.

Stage 4

A daily prompt that does not reshuffle

Seed the draw with the user id and date: the same seed returns the same card, so reopening the app does not deal a new one.

Quick answers

Which endpoints does a wellness & meditation build use?
5 endpoints across 4 stages: Moon Phase and Void-of-Course (POST /v1/western/lunar-metrics); Biorhythm (POST /v1/biorhythm); Lunar Biorhythm (POST /v1/biorhythm/moon); Panchang (POST /v1/panchang); Tarot Card Draw (POST /v1/tarot/draw).
Which plan does it need?
Plan: Free covers biorhythms, panchang observances and the daily tarot card; /v1/western/lunar-metrics (phase, illumination, void-of-course) is Hobby.
What goes wrong first?
A fasting day depends on where the user wakes up. Moon phase is one instant for the whole planet; a tithi-based observance is not. The Indian calendar assigns a day the tithi in force at local sunrise, so the same Ekadashi lands on different dates by location. For the Krishna Ekadashi of January 2027, /v1/panchang reports Ekadashi at sunrise on 3 January in New Delhi but on 2 January in New York - the tithi began at 08:54 UTC, after Delhi's sunrise and before New York's. Compute observances with each user's own coordinates and UTC offset, and send the reminder the evening before their date, not India's.

Start

One key covers all of it

Every endpoint above takes the same bearer token and returns the same envelope. Free tier covers 1,000 requests / month. Pick your language in the quickstarts, or run any of these without a key in the playground.