An augmented-reality restaurant menu built for La Storia di Jojo. Point your phone at the table placemat and the dishes appear in AR. Not sure what to order? Jojo, the AI waiter, asks you a few quick questions and recommends the 3 dishes that fit you best.
- Mobile menu (
index.html): phone-first menu with categories, prices and dish cards. - AR view (
ar.html): image tracking on the placemat (placemat.png) with MindAR + A-Frame; Jojo's picks are highlighted on the table. - Jojo, the AI waiter (
jojo-chat.js):- Understands requests like "something spicy under 20 DT, no meat" (tags to prefer, tags to avoid, max price).
- Scores every dish and returns the best 3.
- Starts the conversation with a short tap-to-answer quiz (drink or food, hot or cold, mood, budget).
- Can call an optional LLM server; if it is slow or offline, Jojo falls back to the built-in rule-based brain, so the demo always works.
- Learning from customers (
jojo-learn.js): choices are saved to Supabase, and popular picks get ranked higher for the next customers.
Customer message โโบ understand() โโบ wishes {prefer, avoid, maxPrice}
โ
recommend() โโโโโโโ scores menu-data.js + learned stats
โ
โผ
top 3 dish cards โโบ highlighted in AR
AR needs the camera, so serve it over HTTPS or localhost:
npx serve . # open http://localhost:3000 on your computer, or use your deployed HTTPS link on your phone
Optional settings live in config.js (AI server URL, Supabase project URL and publishable key).
| File | Role |
|---|---|
index.html |
Mobile menu page |
ar.html |
AR page (MindAR image target) |
menu-data.js |
Dishes, prices, tags |
jojo-chat.js |
Chat panel and recommendation logic |
jojo-learn.js |
Shared learning via Supabase |
placemat.png / placemat.mind |
AR target image and compiled tracking file |