#
i wrote asked cursor to write a component that displays the latest cleveland cavaliers game i’ve watched (we can safely assume i watch every game). a vercel function at /api/cavaliers hits JSON from the NBA, walks leagueSchedule.gameDates to get every finished cavs game (noting home vs. away), sorts them in chrono desc order by gameDateTimeUTC, and then takes the most recent game.
the result renders team names and scores in the expected, human-readable order with an editorial suffix, e.g., cavs @ suns (113 – 126) oof or lakers @ cavs (99–129) w!. the response is cached for 24 hours as there’s never more than one game per day.