The Rounds: embeddable events widget (prototype)
One shared events calendar for Rev, Otto and Honcho. Events are entered once and shown on all three property sites.
Embed
Add this to a page on each site (YOOtheme HTML element):
<div id="the-rounds" data-feed="FEED_URL"></div>
<script src="https://HOST/rounds.js" defer></script>
Optional attributes on the div:
| Attribute | Purpose |
|---|---|
data-building="rev|otto|honcho" |
Open pre-filtered to one building |
data-rsvp="URL" |
Endpoint RSVPs are posted to. Without it the widget runs in demo mode and keeps RSVPs in the browser |
data-today="YYYY-MM-DD" |
Pin "today" (demo only; remove in production) |
The widget renders in a shadow root, so the site theme's CSS does not affect it and its CSS does not leak out. It loads Libre Franklin from Google Fonts and reads logos from assets/ next to rounds.js. Event pages use the URL hash (#rounds-<slug>), so they can be linked directly.
Feed
The widget expects the standard WordPress REST shape for a custom post type with embedded featured media, for example:
https://MASTER-SITE/wp-json/wp/v2/rounds_event?per_page=100&_embed
Fields read per event (see events.json for a full sample):
| Field | Source | Example |
|---|---|---|
slug |
post slug | trivia-night |
title.rendered |
post title | Trivia Night |
content.rendered |
post body (tags are stripped) | one or two sentences |
acf.event_date |
custom field | 2026-12-03 |
acf.start_time |
custom field, 24h | 19:00 |
acf.building |
custom field | rev, otto or honcho |
acf.space |
custom field | Community Lounge |
acf.category |
custom field | Social |
acf.end_time |
custom field, 24h, optional | 21:00 (defaults to two hours after start) |
acf.capacity |
custom field, integer | 60, or 0 for no limit |
acf.rsvp_count |
computed by the server | confirmed RSVPs so far |
acf.featured |
custom field, boolean | true on one event |
_embedded["wp:featuredmedia"][0].source_url |
featured image | image URL, optional |
Past events are hidden automatically. With no featured image, the event shows its building's color and logo.
RSVPs
Residents RSVP inside the widget with a name, email and mobile number. The widget sends:
POST {data-rsvp} with JSON {"event": "<slug>", "name": "...", "email": "...", "phone": "..."}
and expects {"status": "confirmed"} or {"status": "waitlist"} back. The server is expected to:
- store the RSVP against the event, and ignore a repeat from the same email
- return
waitlistonce confirmed RSVPs reachcapacity, and promote the next person when someone cancels - send the confirmation by email (with a cancel link) and by text
- send texts through an SMS provider, with opt-out handling (reply STOP) and consent wording the client has approved
- expose the running count as
acf.rsvp_countin the feed - give staff a guest list per event with export
- reject spam (the form includes a hidden
companyhoneypot field; add rate limiting server-side)
Guest names and counts are never shown publicly. Calendar links (Google, and an .ics file for Apple and Outlook) are generated in the widget and assume Central time.
staff.html mocks the staff guest list using the demo RSVPs saved in the browser.
Open questions for Resi
- Can a custom script run in a YOOtheme HTML element on these sites, or is an iframe required?
- Can one site host an Events post type with the fields above, exposed through the REST API (custom fields shown in REST)?
- Can that feed be read from the other two domains (cross-origin GET)?
- Where should
rounds.jsand its assets be hosted: on one of the sites, or separately? - Does any caching or security layer on the sites block REST requests or third-party scripts?
- Can the master site store RSVPs and send confirmation emails reliably (what does it use for outgoing mail)?
- Which SMS provider would send the texts, who holds that account, and who registers the sending number?
- Can the RSVP endpoint accept cross-origin POSTs from the other two domains?
-
Who is responsible for the resident emails and mobile numbers collected, and does each site's privacy policy cover it?
-
Would it be easier to run events and RSVPs through Eventbrite or a similar service instead of building this? In that version staff create each event there, your server pulls the event list for the widget, and the RSVP button opens that service's sign-up. If you have a platform you already use for this on other properties, we would like to hear it.
Not in this prototype
- Real events, images and guest counts (placeholders throughout)
- A server: RSVPs are saved in the visitor's browser and no email or text is sent
- Licensed brand fonts