Things To Do
Scegli una città dal menu a tendina e trovi le cose da fare in un’unica tabella ordinabile e ricercabile. Include ventiquattro guide — Philadelphia, NYC, Brooklyn, Queens, Boston, DC, Chicago, Toronto, Los Angeles, San Francisco, Seattle e altre.
Pagina singola, tutto lato client, nessuna fase di build.
Sotto il cofano
Il README del progetto, in inglese.
A single-page, fully client-side web app — pick a city from the dropdown, get things to do in one sortable, searchable table. Ships with twenty-six guides: Philly (Willow Grove) · Forest Hills · NYC · Brooklyn · Queens · Flushing · Ithaca (Cornell) · Verona · Atlantic City · Baltimore · Washington DC · Pittsburgh · Richmond · Stamford · Boston · Virginia Beach · Buffalo · Cleveland · Raleigh-Durham · Chicago · Toronto · Nashville · Los Angeles · San Francisco · Seattle · San Diego.
Live site: https://pfeilbr.github.io/things-to-do/
Features
- City switcher — a region-grouped dropdown in the app bar swaps the whole guide (tabs, data, distances, favorites) between cities; your pick is remembered, and
?city=nyclinks directly - Interest-focused tabs per city:
- Spots / Attractions — date-worthy highlights and experiences, sorted by distance
- Nightlife — dance floors and hip-hop/R&B nights first, then lounges, live music, speakeasies, and KTV
- Sushi & Eats — omakase and sushi across price points, plus standout Japanese/Korean/SEA spots
- Chinese 中华 — authentic Chinese food and culture: Sichuan restaurants, dim sum, hot pot, bakeries & tea, markets, temples, festivals (Flushing’s is the deepest)
- Fishing — piers, lakes, party boats, and surf spots with license notes
- MTB — real mountain-bike trails within a drive, labeled honestly (singletrack vs. greenway)
- Social — recurring series where strangers actually talk: dance socials, run clubs, trivia, language exchanges, night markets — with a “today” badge on ones happening now
- Events — dated, source-verified listings for the next few weeks, on Philly, Ithaca, Verona, Stamford, Boston and the five NYC-area guides; the ones happening today get a TODAY badge
- Coffee — on the Ithaca/Cornell guide only: campus cafés and Ithaca’s roasters, sorted by popularity
- Skiing — on the Stamford guide (the pilot): every operating ski area within about a two-hour drive, sorted by drive time, with vertical, trail count and night-skiing nights in each line
- 🚆 To NYC — a live train board, piloted on Stamford. It opens on the next train from Noroton Heights, Darien or Stamford to Grand Central (or to Bryant Park, walk included), with the New York time, live delays, track and cancellations, the fare for that train, and whether your bike can ride it. Below that are the rest of the day’s trains, any day in the next week, and the ride home. A strip above every Stamford list shows the next train at a glance. Panels cover fares, parking, the MTA TrainTime app, taking a full-size bike, and the walk or ride from Grand Central. The timetable is baked from Metro-North’s published GTFS feed by
scripts/transit.pyand rebuilt weekly by a GitHub Action, so it never needs an LLM or a person. Live times come straight from the MTA’s open GTFS-realtime feed in the browser - ☀ Today — every city opens on it. It reads the city’s own clock: in the morning it lists the whole day, in the afternoon only what’s still ahead, in the evening what’s still on tonight. Up top: the weather (Open-Meteo) and the daylight left. Then “Get outside today” orders riding, rollerblading, ice skating, skiing, walks and fishing for the month, and swaps in rinks and indoor spots after dark or when rain is likely. Group runs, rides and pickup games from Meetup sit under “Show up and play”, followed by a filterable timeline of everything on today, tonight’s best floors and tables, and the rest of the week. An “Open on Today” checkbox at the bottom switches the default back to the lists. The code lives in
today.js - ✦ Start here — a first-visit guide, piloted on Stamford. The first time you open the city it asks what you’re into (date spots, shows, nightlife, sushi, Chinese, fishing, MTB, skiing, meeting people) and whether it’s a day trip or a weekend, then builds a page from that: the next three weeks of events, a day-by-day plan whose stops swap to match your interests and the season, hand-picked rows per interest with a line on why, the neighborhoods, and know-before-you-go facts with sources. Every pick is a live row from the city’s data, so distances, ratings, favorites and the detail view all work from it. The content lives in
guide-<city>.jsonand is checked bytests/data/guide.test.js - Everyday-life tabs on the seven guides for places actually lived in (Forest Hills, NYC, Brooklyn, Queens, Flushing, Boston, Ithaca) — the stuff you actually look up when you live somewhere rather than visit it:
- Museums — museums and galleries, from the Met down to a museum inside a Tribeca freight elevator
- Sights — things worth looking at: observation decks, public art, architecture, World’s Fair ruins, oddities like Grand Central’s whispering gallery
- Walks — walking routes, not just parks: greenways, promenades, park loops, woodland trails, boardwalks, brownstone wanders
- Shops — bookstores, record shops, vintage, markets, department stores and the specialist places worth crossing town for
- Essentials — the errand layer: gas stations, pharmacies, hardware, laundromats, urgent care, licensed dispensaries, post offices, car washes, bike repair
- Forest Hills is a neighborhood guide rather than a borough one — nearly everything in it is inside a two-mile walk of Austin Street
- Ithaca is a campus guide — everything is measured from central campus at Cornell, and it carries a Coffee tab of its own alongside the gorges, Collegetown and the Finger Lakes around it
- Boston covers the whole metro: Cambridge, Somerville, Brookline, Charlestown, Quincy, Salem and the Blue Hills, not just the peninsula
- ☀ Tonight — one tap shows everything happening today in the active city (events + recurring socials), with a live count badge; shareable via
#tonight=1 - Smart search — cross-tab hints (“also 10 in Sushi & Eats”) that keep your query when you tap through
- Near-me city switch — using 📍 in another covered city offers to swap you to that guide
- Trip notes — every away city shows its distance from home base ("≈1¾ hr drive")
- Favorites — star any row (saved in your browser, per city); filter to favorites with ★
- Near me — recompute all distances from your current location (computed entirely in-browser)
- Map view — see the current filtered list as pins on an OpenStreetMap map
- Shareable links — tab, search, filters, and sort are encoded in the URL hash
- Per-item permalinks — every row’s detail panel has a Share button (native share sheet on phones, copy-link elsewhere); the link opens the app with that item expanded and scrolled into view
- Sortable columns — click any header to sort, click again to reverse; a sort dropdown appears on mobile
- Live search across name, category, summary, and event times
- Filters — a category chip bar with live per-category counts (tap the active chip to clear it), and one distance control covering both walking bands (≤ ½ mi / 1 mi / 2 mi) and drive times (≤10/20/30/45/60/90 min and up); a “clear: …” button appears whenever anything is filtering
- Expandable rows — tap any row to reveal a detail panel with an embedded Google Map, directions, and website links
- Responsive — full table on desktop, stacked cards below 760px; visible keyboard focus; respects
prefers-reduced-motion - Installable PWA — add it to your phone’s home screen via the ☰ menu → “Install app” (manifest + service worker; works offline with last-fetched data)
- No build step, no dependencies, no backend —
index.htmlplus a manifest, service worker, and icons
How distances work
Distances are straight-line (haversine) from the active city’s center (or any origin you set — tap the dotted place name, or use 📍 Near me), multiplied by a 1.3 road factor. Drive times use an average speed that scales with trip length (24 mph for short local hops up to 55 mph for highway trips: mph = min(55, 24 + 0.45 × road_miles)). They’re estimates — verify before you go.
Data sources
Google Places ratings, official venue sites, VisitPhilly, Visit Bucks County, Time Out NY, The Infatuation, PA DCNR, PFBC stream guides, and local event calendars. Event data is time-sensitive and reflects the weekend noted in the page header.
Fishing licenses: PA license (+ trout stamp on stocked water) for the Philly guide; NY freshwater license or the free saltwater registry for the NYC guides.
Development
The data files are fetched at runtime, so the page doesn’t work over file://. Serve the folder instead:
python3 -m http.server 8000
Then open http://localhost:8000. Pushes to main deploy automatically via GitHub Pages.
Tests use only node and Python builtins:
node --test 'tests/unit/*.test.js' 'tests/data/*.test.js'
python3 -m unittest discover -s tests/scripts
sh scripts/check.sh runs all of those plus the timetable-freshness check in one go (add --e2e for the Playwright browser suite).
scripts/transit.py build rebuilds the baked train timetables (transit-<city>.json) from the agency’s GTFS feed; .github/workflows/transit.yml runs it every Monday and deploys if anything changed. scripts/transit.py status shows how many days each one has left.
scripts/events.py maintains the dated Events tabs (status, prune, add) and appends researched rows to any tab with add --tab <tab>, computing distances so no origin coordinate is ever stored.
Operations
- Deploy — every push to
mainthat touches a served file runs.github/workflows/pages.yml. It runs the schema and unit suites first, publishes only what the site serves (notests/,scripts/, dotfiles or Markdown), then waits until the live site answers with the newBUILDstamp and checks that every file the service worker precaches returns 200. A deploy that serves the old page fails. - Release stamp — bump
const BUILDinindex.htmlon every deploy. Open pages compare it against ano-storefetch of themselves and reload when it changes. - Monitoring — CI runs weekly (Monday 11:00 UTC). It catches dated data going stale, a timetable refresh that stopped landing, and a live site that drifted from
main. - Rollback — every change ships as one commit:
git revert <sha> && git pushundoes it and redeploys within a few minutes. The only setting outside git is the Pages source (GitHub Actions); seeCLAUDE.mdfor the one-line command to switch it back to branch builds. - Offline copies — after any change to
sw.js, bump itsCACHEname so installed copies replace their cache.