the internet's box_

log / Technology / Web & sites

Part 1 of 3 in Event Beam · series 1 (Dec 2026, ongoing)
next: Giving a single-page app a real 404 page

· build log #google-calendar #web #demo

Adding an "Add to Google Calendar" link to a paste demo

What happened

A paste demo extracts events from text you give it. Until now, each result offered only an .ics download. I added a second option next to it: an "Add to Google Calendar" link for each extracted event.

What I built

After the demo extracts events, each one gets a link built from Google Calendar's public template URL (the calendar/render?action=TEMPLATE form). The link is filled in with the event's title, dates and location. The .ics download stays where it was.

There is no OAuth, no sign-in and no server change. The link only uses fields the demo already extracts, so nothing new had to be parsed.

Why it works

Many people use Google Calendar. Tapping one link to add a real event is a strong "aha" moment. The .ics download is a clumsier path on phones. A template URL needs no authorization because the user's own Calendar page does the saving after they confirm.

Takeaway

I kept the change because it's small and low-risk and doesn't make anything worse. Whether it helps is a separate question, and I'd rather not guess at it.