Public
Like
eventsCalendar
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v422View latest version
For a while I have been using a personal Notion db to track interesting art/music/etc events that are upcoming in NYC.
I grew tired of manually entering the time/place/other info into Notion. So I made this Val to serve as the backend for a bookmarklet — now I have one-click ability to munge an arbitrary event webpage → structured data → Notion db.
You can subscribe to your events in Calendar.app (macOS/iOS) or any other calendar application that supports iCalendar feeds.
-
Get your calendar feed URL:
https://extract-event-data.val.run/calendar.ics?token=YOUR_API_TOKENReplace
YOUR_API_TOKENwith your API token (same token used for the bookmarklet). -
Subscribe in Calendar.app (macOS):
- Open Calendar.app
- Go to File > New Calendar Subscription...
- Paste the calendar feed URL
- Click Subscribe
- Configure update frequency (recommended: Every hour)
- Choose which calendar to add it to
- Click OK
-
Subscribe on iOS:
- Go to Settings > Calendar > Accounts > Add Account
- Select Other
- Tap Add Subscribed Calendar
- Paste the calendar feed URL
- Tap Next and then Save
- Only events with categories: music and lecture
- Only future events (past events are excluded)
- Updates automatically based on your calendar app's refresh settings
Currently the calendar requires your API token for access. To make it public in the future:
- Open server.ts
- Find the
/calendar.icsendpoint (around line 28) - Remove or comment out the token validation block:
// Remove these lines: const apiToken = c.req.query("token"); if (apiToken !== process.env.API_TOKEN) { return c.text("Unauthorized", 401); }
- The calendar feed will then be accessible without a token