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” (and http://localhost:5500 for local testing). 2) Paste the Client ID above. 3) The “Google Calendar” button imports your events from Google and sends your events there. Without a Client ID only ICS-link import and the calendar.ics subscription work.
This is the content of calendar-data.json in the repository. You can edit it manually (JSON).