New
Apps 6,345Makers 6,324This week 13
Promote your app−30%
This Week in Tucson screenshot 1
1views in
the last 30 days

This Week in Tucson

Free, ad-free, locals-first events calendar for Tucson

Built with Claude Code

by s-david-kyle · Unclaimed · from USUnited States · added Nov 3, 2026
no ratings0 comments

This Week in Tucson

A free, ad-free events calendar for Tucson, built locals-first: thisweekintucson.com

Every listing shows three things: the title, the time, and the venue. No ads, no tracking, no paywall.

This is a showcase repository: architecture notes and design decisions only. The application code is private.


The problem

Tucson's events are scattered across dozens of venue sites, ticketing platforms, university calendars and nonprofit pages. No single place shows what is on this week, and the big listing sites are built around ads and paid placement, not around neighbors finding things to do.

Constraints I set

  • Free and ad-free, with no money in the loop. The site has to be cheap enough to run that nothing needs to be sold.
  • Locals first. A venue's own listing beats a ticketing platform's copy of the same show.
  • Private by design. No cookies, no IP addresses stored, no third-party hosts.
  • Polite to the sites it reads. Small organizations should never feel the load.
  • Trustworthy. A wrong event is worse than a missing one, so doubtful cases go to a person, not a guess.

How it works

Sources (APIs, feeds, web pages)
        │   polite fetcher: robots.txt, crawl-delay, retries, hard request limits
        ▼
Extractors (one per source) ──► Listings
        │
        ▼
Duplicate Match ──► Events (one per real-world show, many listings behind it)
        │              ├─ rules settle clear matches
        │              ├─ a language model breaks ties on ambiguous pairs (capped per run)
        │              └─ uncertain results are held for human review
        ▼
Categorizer (small model) ──► Postgres (row-level security) ──► Next.js site on Vercel
        ▲
Admin queue: approve, merge, hide (never delete)
  • Ingestion: a Python pipeline reads about a dozen sources (a ticketing API, WordPress feeds, plain web pages, and hand-saved imports where a site asks not to be read by machines), runs once a day on GitHub Actions, and writes to Postgres on Supabase.
  • Site: Next.js (App Router, TypeScript) on Vercel, with hourly incremental regeneration so pages stay fast and cheap.
  • Data model: a Listing is what one source says; an Event is the real-world show. Several listings can sit behind one event, and the venue's own source leads.

The AI design decisions

The interesting part is where a language model is used, and where it is not.

  1. Rules first. Equal titles at close times are the same show, settled in code, for free, the same way every run.
  2. A model only for the ambiguous middle. A Claude model breaks ties on pairs the rules cannot settle, capped at a fixed number of calls per run, with the cost ceiling set by design at roughly a dollar a month.
  3. Hold, don't guess. When the model is unsure, or its answer contradicts the evidence (for example, a "same show" with start times an hour apart), the pair is held on an admin card for a person to settle.
  4. A cheaper model for easy work. Categorization runs on a smaller model.
  5. Testable AI. Model calls are recorded and replayed in tests, so CI is deterministic and never calls a live API. Model-versus-model comparisons on real pairs decided which model does the tie-breaking.

Engineering practices

  • Politeness is enforced in code: robots.txt rules are matched the way the standard specifies (wildcards, query strings, longest match wins), crawl-delay is honored, every source has request and page limits, and a source that misbehaves fails loudly instead of looping.
  • Honest postmortems: when a bug made one source request far more pages than planned, the fix added hard limits and a written account of what it cost the site, plus a courtesy note to its owner.
  • Privacy: a cookieless, server-side page-view counter stores only the date, the page and a count, with a privacy page that says exactly that.
  • Process: tickets, architecture decision records, two independent AI review passes on every change, human-only merges, strict typing and linting in CI, and a test suite that runs on a real local database. Built with Claude Code as the pair-programming agent.
  • Hide, don't delete: anything removed from the site stays recoverable.

Stack

Python (uv, pytest, pyright strict, ruff) · Next.js / TypeScript · Supabase (Postgres, row-level security) · Vercel · GitHub Actions · Claude API

Status

Live at thisweekintucson.com.

Contact

David Kyle, Tucson, AZ · thisweekintucson.com

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.

Related apps

#events · #calendar · #local