Our favourite restaurants — beautiful, fast, mobile-first menus.
A personal project, published because the build might be useful to
someone else: an installable, fully offline restaurant-menu PWA with
no build step, no framework and no third-party code at all. What is
in site/ is the entire product — vanilla HTML, CSS and ES modules,
served as static files. The menu data is one JSON file per restaurant
with git as the CMS.
The venues are simply the ones we like — mostly around Wellington, New Zealand, because that is where we live, but the collection is not scoped to a city or a country. The data is only useful to us; the app, the schema and the tooling are not. Fork it and point it at your own places.
Faves answers two questions:
- "We're hungry — what shall we get?" A group (household, friends, guests) wants to pick a place and order, fast.
- "What's on their menu?" Regulars want their usual; first-timers want to browse with confidence (descriptions, prices, dietary and allergen tags, our picks).
Strategy, architecture, and work plan are set. The app is built from docs/WORKPLAN.md — start there.
| Doc | Purpose |
|---|---|
| docs/STRATEGY.md | Why this exists, who it serves, what success looks like |
| docs/ARCHITECTURE.md | Stack, data model, PWA, hosting — with decision rationale |
| docs/DESIGN.md | Visual direction and mobile-first design rules |
| docs/WORKPLAN.md | Phased build plan with acceptance criteria |
| docs/DEPLOY.md | Cloudflare Pages hosting — one-time setup and the deploy flow |
| docs/decisions/ | Decision records — the deliberation behind each significant call |
| CLAUDE.md | Standing instructions for AI builders |
site/ ← the deployable artefact (no build step)
data/index.json ← list of restaurant ids
data/restaurants/ ← one JSON file per restaurant (details + menu)
docs/ ← strategy, architecture, design, work plan
python3 tools/serve.py # serves site/ — prints laptop + phone URLs
python3 tools/validate.py # checks all menu data against the schemaNo toolchain, no dependencies, no build. What's in site/ is what ships.
- Edit the JSON in
site/data/restaurants/(schema in docs/ARCHITECTURE.md). - Run
python3 tools/validate.py. - Run
node tools/gen_summaries.mjsand commit what it writes — the home summary, the search index andsite/data/catalogue.json. Each data file carries a content fingerprint, and a changed fingerprint is what tells installed phones to fetch that one file (and only it). Skip it and offline visitors keep the old menu. There is no data version to bump any more (roadmap 510/030). Changed HTML/CSS/JS too? bumpSHELL_VERSIONinsite/sw.jsas well (ADR 0015). - Check the change in a browser at mobile width, then commit.
Hosting is Cloudflare Pages, git-connected to this repo. Once set up, the everyday flow is nothing more than:
git push origin main # Cloudflare builds and deploys; branches get preview URLs- Live: https://lets-eat.myspot.nz (default:
https://faves.pages.dev) - First-time setup (authorise the GitHub App, scoped API token, then
python3 tools/deploy.py apply) is a one-off — see docs/DEPLOY.md. Hosting config is code in tools/deploy.json.
Issues and pull requests are welcome, with the caveat that this is a personal project built to a specific brief — see CONTRIBUTING.md for the conventions, and CLAUDE.md for the hard constraints any change has to hold (zero build step, offline-capable, WCAG 2.2 AA, no third-party dependencies). A change that breaks one of those will be declined however good it is otherwise.
The menu data describes real businesses. Corrections to opening hours, prices or addresses are genuinely useful; please cite where you got them.
Please report vulnerabilities privately through this repository's GitHub security advisories, not a public issue. See SECURITY.md.
Apache-2.0. The restaurant data describes third-party businesses and is published as factual information about them; the licence covers this repository's own code and documentation.