PROJECT_FILE // 2026
Calendar.AI
Self-service meeting booking straight into my Google Calendar
OVERVIEW
A scheduling service that reads my real calendar and writes to it. It computes genuinely free slots by intersecting my declared weekly availability with live free/busy data from the Google Calendar API, then creates a confirmed event with a Meet link and emails the attendee. No third-party scheduling SaaS in the loop.
REQUEST FLOW
- Request for availability
- Weekly availability windows — declared per weekday
- Google Calendar freebusy query — next 14 days
- Overlap filter — drop busy and past slots
- Free slots out
- Booking request — re-validated against live availability
- Calendar event created with Google Meet link
- Invite emailed to attendee
WHAT MAKES IT INTERESTING
Availability is computed, not configured twice
Slots are derived by subtracting live free/busy data from declared availability windows, so a meeting booked elsewhere immediately disappears from the options here. There is no second calendar to keep in sync.
Bookings are re-validated server-side
The requested slot is checked against live availability again at booking time, not just at display time. A stale browser tab or a hand-crafted request cannot book outside my hours or double-book an existing event.
Server-side OAuth, no interactive flow
Runs headless on a refresh token supplied through the environment. The interactive consent flow is a local one-off script, so the deployed service never needs a browser.
Timezone-correct by construction
All slot arithmetic happens in a single explicit zone (Asia/Kolkata) with timezone-aware datetimes, and events carry an explicit timeZone field, so no slot silently shifts an hour.