Back to Quick Picks

How it works

Quick Picks is a set of static pages. There is no server code, no database and no account. A restaurant's whole menu lives in one JSON file.

The menu file

Each dish keeps the restaurant's own number. Three fields drive the picker: protein, kind of dish, and spice from 0 to 2. Stir-fry dishes also get a sauce, which builds the sauce-by-meat grid.

{ "n": "47", "name": "Hunan Chicken", "zh": "湖南鸡",
  "section": "chicken", "protein": "chicken", "kind": "saucy",
  "sauce": "Hunan", "spice": 2, "price": [8.50, 12.95],
  "tag": "popular" }

Design choices

Sources

Stack

Plain HTML, CSS and JavaScript modules. The picker logic is one file of pure functions with node tests. Hosted on Vercel as static files. A service worker keeps the menu usable on a weak signal.