Sync: GitHub + Google Calendar
⚠️ A token entered here is stored in the browser and visible to every visitor of the site. Recommendation: instead, set the GH_TOKEN secret in Cloudflare Pages → Settings → Functions — the browser will then use your site's /api/gh and the token never reaches it. The old token in the code was already exposed — revoke it on GitHub.
How to enable two-way sync: 1) Google Cloud Console → create an OAuth Client ID (type “Web application”), add https://calendar-dah.pages.dev to “Authorized JavaScript origins”. 2) Paste the Client ID above. 3) Enter the shared calendar ID below and press the “Google Calendar” button. ⚠️ The app only ever works with the calendar ID you enter here — it never touches your main calendar. Find your calendar ID: Google Calendar → click the shared calendar's ⚙️ Settings → copy “Calendar ID” (e.g. abc123@group.calendar.google.com). You can also clear the “Shared ICS link” below so the same calendar isn’t imported twice.
This is the content of calendar-data.json in the repository. You can edit it manually (JSON).