Skip to content
mike548141Public

About

Our favourite restaurants — beautiful, fast, mobile-first menus (PWA)

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Faves

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:

  1. "We're hungry — what shall we get?" A group (household, friends, guests) wants to pick a place and order, fast.
  2. "What's on their menu?" Regulars want their usual; first-timers want to browse with confidence (descriptions, prices, dietary and allergen tags, our picks).

Status

Strategy, architecture, and work plan are set. The app is built from docs/WORKPLAN.md — start there.

Documentation

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

Layout

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

Run locally

python3 tools/serve.py     # serves site/ — prints laptop + phone URLs
python3 tools/validate.py  # checks all menu data against the schema

No toolchain, no dependencies, no build. What's in site/ is what ships.

Editing menu data

  1. Edit the JSON in site/data/restaurants/ (schema in docs/ARCHITECTURE.md).
  2. Run python3 tools/validate.py.
  3. Run node tools/gen_summaries.mjs and commit what it writes — the home summary, the search index and site/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? bump SHELL_VERSION in site/sw.js as well (ADR 0015).
  4. Check the change in a browser at mobile width, then commit.

Deploy

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

Contributing

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.

Security

Please report vulnerabilities privately through this repository's GitHub security advisories, not a public issue. See SECURITY.md.

Licence

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.

About

Our favourite restaurants — beautiful, fast, mobile-first menus (PWA)

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages