EverShelf

EverShelf

Docker app from DevlinDelFuego's Repository

Self-hosted pantry manager: AI expiry tracking, barcode scanning, smart shopping lists and an Android kiosk for the kitchen wall.

Overview
Self-hosted pantry manager: AI expiry tracking, barcode scanning, smart shopping lists and an Android kiosk for the kitchen wall. Free, open source, no account and no advertising. Product data comes from OpenFoodFacts (millions of items); the AI features need a free Gemini key (see docs). First start: open the Web UI and pair the device with the one-time code printed in the container log: docker logs evershelf 2&1 | grep -i "pairing code" | tail -1 Keep both paths on the array: "App data" holds the database, "Configuration" holds .env.

🏠 EverShelf

Self-hosted pantry manager — inventory, barcode scan, AI recipes, less waste.

git clone https://github.com/dadaloop82/EverShelf.git && cd EverShelf
cp .env.example .env && docker compose up -d    # → http://localhost:8080

No framework, no runtime build step: a PHP 8 router, one SQLite file and a vanilla-JS PWA. Everything runs on your own hardware, and nothing about your pantry leaves it.


🎉 EverShelf 2.x — the biggest update this project has ever had

This is not a patch release. EverShelf 2.x is the release where the app the household actually touches was rebuilt from the inside: every screen, every list, the settings page, the idle screen, the medicine cabinet, the stocktake, the API and the upgrade path — and a demo with a real pantry in it, so you can see all of it before you install anything.

The pantry you already have is safe: the database repairs and verifies itself on the first request, and a second boot changes nothing. Everything you look at is new.

EverShelf 2.x — Home, Pantry, Opened items, Shopping list and the product sheet

Before: eighteen settings tabs and a Save button, a clock with a canned sentence on the wall, three different list layouts, and a demo that answered with an empty pantry.

After: six settings sections that save themselves, a dashboard that reads your own data, one 132 px row in every list, a medicine cabinet that reads the pack instead of guessing — and a demo that opens on a real, seeded household.

EverShelf 1.x EverShelf 2.x
Settings 18 tabs in two strips, one Save six sections, four essentials always visible, no Save button — every control writes itself
Idle screen a big clock + a sentence from a list four cards from your own data (a recipe you already cooked, what to eat first, charts, an idea of the day)
Lists three different row designs one 132 px row: photo strip, name + brand, stock, date, one pill, two actions
Medicines — opt-in cabinet, national catalogues imported locally, PAO on the pack, no model in the loop
Stocktake one row at a time, one device three ways, one ledger, resumable from any device
AI Gemini only Gemini · OpenAI · Llama, one provider switch
Demo a “mock pantry” that did not exist its own seeded database, English first, six languages, embeddable in a page
Security token optional token minted on first boot, pairing code, single-use OAuth state, webhook secret

📸 A look at it

Home dashboard Pantry list
Home — what to eat first, what is opened, one strip for the month Pantry — one row grammar, photo strip, state pill, stock and date
Opened items Shopping list
Opened — the PAO clock, with Use it in a recipe inline Shopping list — anti-waste quantities, swipe left to buy, right to skip
Product sheet Use an item
Product sheet — photo, brand, packs, places, opened clock Use — fractions, packs and where it goes after opening
Recipes Recipe detail
Recipes — generated from what is really in the pantry Recipe — ingredients checked against the shelves
Cooking mode Barcode scanner
Cooking mode — steps, TTS, timers, hands-free (mic off until you ask) Scanner — one lock box, the controls under the picture
SHELFY assistant
SHELFY — voice or text, and it acts where you stand

🔄 Before → After, on the same screens

Home / Dashboard — counters and a list became a dashboard that tells you what to doDashboard: before (1.x) and after (2.x)
Pantry list — 88 tiles in a grid became one readable row grammarPantry list: before (1.x) and after (2.x)
Shopping list — its own design became the same row as the HomeShopping list: before (1.x) and after (2.x)
Product sheet and editing — one hierarchy, photo and brand in the head, no wall of fieldsProduct sheet: before (1.x) and after (2.x)
Use an item — fractions, packs and the place the rest wentUse an item: before (1.x) and after (2.x)
Opened items — a yellow card became the PAO clock with the two actions inlineOpened items: before (1.x) and after (2.x)
Recipes and recipe detail — generated from the shelves, with the pantry checkedRecipes: before (1.x) and after (2.x)Recipe detail: before (1.x) and after (2.x)
Cooking mode, scanner and SHELFY — the kitchen surfacesCooking mode: before (1.x) and after (2.x)Scanner: before (1.x) and after (2.x)SHELFY: before (1.x) and after (2.x)

📖 The full story — the eight changes behind 2.x (click)

1. Settings is a control panel, not a wall of fields

Eighteen tabs in two strips became six sections (🏠 General · 🍳 Cooking · 🤖 AI & voice · 💊 Medicines · 🔔 Alerts & integrations · 🔒 System) in a sticky rail on a monitor and a swipeable strip of pills on a phone. Above the rail, always visible, the four essentials: the access token (masked, reveal/copy), the pairing code, the last backup with «Backup now», and the version. There is no Save button any more — every control writes itself (checkboxes and selects at once, text 700 ms after the last keystroke) and the sticky bar at the bottom is a receipt: pending → saving → saved, or the server's refusal, which it never dresses up as «saved». Guides that need more than a paragraph live in a dialog.

2. The idle screen is an ambient kitchen dashboard

The kiosk used to show a big clock and a sentence picked from a static list. It is now one card at a time, read from your own data: 🍽️ the meal of the day with a real recipe from your archive the pantry can cook now (expiring ingredients weigh more), ⚠️ up to three things to eat first (opened past its window, expired, expiring — each row opens the product), 📊 the category pie with health / variety / freshness rings and one insight from the weakest number, 💡 a dynamic idea (shopping list, saved vs wasted, weather + what expires first, medicine cabinet, shape of the pantry). A card with nothing to say is skipped, never painted empty. Pure black for OLED walls, a few pixels of drift every 2.5 minutes against burn-in, and a tap flips the card — a tap never closes it (a brush on a wall must not take the clock away): «Unlock», a swipe up or Esc do. It starts always after the timeout you set, on any page with any sheet open; cooking mode is the only exception (the recipe is the session). Portrait tablets get their own scale, not a squeezed landscape.

3. One row grammar for pantry, Home and shopping

[photo strip] [name + brand / stock · qty · price] [state] [✓] [⋮], 132 px in every list — the pantry, «Expiring», «Expired», «Opened», «Forgotten» and the shopping list. One builder for the state pill, one for the actions, and the two facts a row is read for (stock and date) are the biggest things in it. A medicine is never a food surface: it has its own drawn mark, its own shelf in the shopping list, its own tint — and its active ingredient wraps instead of running off the screen.

4. EverShelf Med — an opt-in medicine cabinet that reads, never guesses

Off by default, with its own dedicated place and a closed set of categories. A box is identified by a printed code (Italian AIC, German PZN, US NDC…) verified against a local catalogue imported from the national open data — the reader never calls a model, and a code the catalogue does not know is treated as a misread, never as a new medicine. Every country rule lives in data, so adding a country means adding a file (docs/wiki/Medicines-Country-Schemas.md).

5. The quick stocktake: three ways, one ledger

«One at a time» (the app proposes), «I'll tell you» (you type a name) and «Barcode» (its own camera inside the sheet) all count in the same session, and a run started at the fridge resumes on any device — the state lives on the server, never in one browser. One answer covers every pack of that article in that place, so the same name is never asked twice.

6. Text and vocabulary are data — six locales, enforced

Every user-facing string is a translation key in translations/*.json (IT · EN · DE · FR · ES · ZH) and every product word lives in api/vocab/<lang>.json. CI fails on a key that is used but missing, on a generated file that no longer matches its JSON, and on vocabulary words creeping back into the logic files.

7. Security and operations hardened

Every action authenticates (token + CSRF, and a pairing code hands the token to a new device); an install with no token mints one on its first request instead of running open; the Google Drive callback consumes a single-use state; the Telegram webhook compares the secret Telegram echoes back and refuses to answer without one; ALLOWED_HOSTS guards against DNS rebinding. Logs carry levels and two rivers (app, kiosk), rotate daily, and a reload always names its author. Backups are VACUUM INTO files that a restore proves before promoting them, scheduled by the container's cron.

8. Upgrade safety is a test, not a promise

php scripts/check-upgrade-migration.php builds a database with the old code, fills it with realistic content and opens it with the new one: 48 checks prove that nothing is lost, that the repairs are the intended ones, and that a second boot changes nothing. It is the gate this release was developed against.


📰 What's new

Recent releases

v2.2.30 — «Oggi a tavola»: the bridge finally knows what you ate. Asked for: «tu sai esattamente quante kcal assumo ogni giorno? … puoi riportarle anche nell'app evershelf bridge?». Half of that number never left the server: the phone measures what is BURNED, while what is eaten lives in health_meals (a recipe logged once per title/day when one of its ingredients is used, every pantry use estimated from Open Food Facts or the category average), the daily target is Mifflin–St Jeor × activity or your own override, and a Fuel Mode recipe already obeys that budget (±15% kcal, mandatory fuel_why). The bridge showed only burned kcal against a LOCAL 700 kcal goal, because it had never read anything from the server: GET health_bridge_summary (X-Health-Token) now answers tdee / eaten_today / remaining_kcal / meals covered, Today draws «Oggi a tavola» with eaten, goal and left in all six locales, and the card hides itself while the server has Fuel Mode off instead of printing «0 kcal». Opening the app also re-reads today at once (one Health Connect query, no upload) and repaints, so the screen never shows the previous pass's numbers — the upload stays on the pass. Health Bridge 2.1.0 (versionCode 24).

v2.2.29 — «e altri N…» opens the rows it counts. Asked for: «nella prima schermata scrivi "e altri x.." — se premo lì dovrebbe darmi gli altri x». It could not: the note was a <div> with no handler, so the line that says there are more rows was the one line that could not show them — the rows were already on the client, waiting in the block's own budget. The note is a real <button> now (keyboard and screen reader reach it, 36 px tap target, drawn as the quiet underlined line it always was) and a tap appends every row it names, re-binds them like the others and removes the note; the stock-hub tab's badge and the «Scaduti» subtitle follow the list. One delegated listener per list, so it survives every repaint. Verified in headless Chromium with the real functions extracted into a harness (14 checks) plus a CSS measurement.

v2.2.28 — security: the MCP server's dependencies are patched. GitHub reported 11 open Dependabot alerts (1 high, 9 moderate, 1 low), all in mcp-server/ — the only npm tree in the repository. The overrides now pin the patched floors (hono ≥ 4.13.16, @hono/node-server ≥ 2.1.6, qs ≥ 6.16.1, ip-address ≥ 10.7.4, body-parser ≥ 2.4.0), the lockfile resolves to 4.13.23 / 2.1.11 / 6.17.1 / 10.7.7 / 2.4.0, and npm audit there answers 0. The bump is smoke-tested on the path it touches (a real MCP initialize handshake and /health over the hono-based transport).

v2.2.27 — the AI asks for the barcode, and the scanner stops repeating itself. Asked for: «quando faccio l'identificazione di un prodotto tramite AI chiedimi se il prodotto ha un codice a barre… così poi te lo ricordi e lo associ a quel prodotto». An AI identification reads the pack, not its code, so the article arrived with no barcode at all: the card that shows the identified product now asks the question with «📷 Sì, scansionalo» / «No, senza codice», the read comes back into the card, and the code is written on the article the moment it exists (product_barcode_set, one field, refused when another article owns it) — so the very next scan of that pack opens it. And reported: «una scansione che mi dice che il prodotto potrebbe essere un medicinale (ma non è) — non mi riconosce più i prodotti normali, uscire e rientrare non va bene»: the cross-hint returned with the decode loop dead, and the read that reached it had already stopped that loop. It now resumes the scanner and disappears on the first food barcode. And a code no catalogue knows is ONE answer now: it was re-confirmed on every frame, so the phone buzzed «Prodotto non trovato» many times a second — the decoder stands still for 3 seconds (then looks again by itself) and the toast carries «🔄 Riprova».

v2.2.26 — «Spesa stimata» is the price of a trip, not of the whole plan. The list's quantity is a quantity horizon (30 days), and the € estimate priced it as-is: up to three packs or 1,4 kg per line, so an 83-row list summed €344 with 1 kg of cheese, 1 kg of Trentingrana and six packs of coffee — the cost of a month's restock shown as the price of the shopping list. Each line is now priced at ONE pack (its own size when the pantry row says it, else 500 g / 1 l; one conf; a bag of pieces): on the field list €201,77 → €161,13. And a total stored in the session dies as soon as the list it was made on changes (or after 30 minutes with no list loaded), so an old figure can never sit on the screensaver again.

v2.2.25 — the camera closes when a scanned product opens its sheet. Scanning the barcode of an article the pantry already holds opened the product sheet so the household could use it, but the scan page stayed underneath with a stopped, black viewport peeking above it («il popup della fotocamera sotto si deve chiudere»). The sheet now steps the scanner page aside first (_scanStepAside(): back to the Home or the pantry you came from, the scan entry dropped from the history), so closing the sheet lands on a real page; a shopping trip keeps its continuous camera untouched.

v2.2.24 — the product sheet proves its barcode, and a chat recipe keeps its own ingredients. Two reports, one release. A pantry row points at an article through products.barcode, and a code written once by an import or a wrong catalogue match kept every later scan of that box pointing at the wrong product with nothing to prove it: the sheet now states the stored code beside «📷 Verifica», the scanner reopens on that article alone and the read is compared with the stored one using the same GTIN variants the server tries — same code says «✓ Il barcode è corretto» and writes nothing, a different one writes that one field and says «✓ Barcode aggiornato», a code another article owns is refused and named. The device remembers the new code immediately (the next scan opens this article), the typed field covers devices without a camera, and a medicine keeps its own rule (its number is the AIC the catalogue verified). And moving a recipe from the chat to the ricette no longer re-interprets it: the reply's «Ingredienti» section is parsed deterministically (bullets, Nome: 200 g, 200 g di nome, 2 uova, ½, 1/2, 80-90 g, q.b., group headings, six languages) and that list replaces the model's, which only shapes title, servings, times and steps; the pantry pass may link it but never rename, delete or clamp it, the sheet prints the rows the shelves cannot link («non in dispensa»), and the two lists are logged. The «Usa» strip under a chat reply is gone for good: the one door is «📥 Trasferisci alle ricette».

v2.2.23 — the Android bridge stops dying at 05:21 (Health Bridge 2.0.3). The gateway stopped publishing on its own although automatic sync was on: an upload every 30 minutes until 05:21, then nothing for eleven hours — because Android 15 gives a dataSync foreground service six hours per 24 h and kills the app when the budget is spent (ForegroundServiceDidNotStopInTimeException), taking the running pass with it. The keep-alive now stops itself after three hours, handles the platform timeout and never asks to be restarted, SyncEngine.syncNow() answers instead of throwing (a periodic work marked FAILED is never repeated), ensurePeriodic() re-enqueues a schedule that died, and every pass re-reads the last three days the diary never got and queues them. App 2.0.3 (versionCode 23), installs in place.

v2.2.22 — the scan proposes the pack that is OPEN, and asks when it cannot tell. An article held in two places opened the sheet on whichever row the list returned first — usually the sealed bag in the pantry while the opened one sat in the fridge — and «✓ Usa» could write on a third row, because the ledger preferred any opened pack. The packs are now ordered the way a shelf is read (the opened one first, oldest open first, then the room you have open, then the nearest date), and when only the household can tell — two rooms with none opened, two opened packs — the app asks «Quale confezione?» with one line per pack (place, open mark, date, stock) that opens that pack's sheet. The sheet also pins the row it shows (inventory_id), so the use lands on the pack you chose and never on another room's, while a pack emptied in the meantime falls back to the usual rule.

v2.2.21 — «Urgente» is a habit, not a single purchase. v2.2.20 made every finished article urgent so the list's «Urgente» pill would finally hold what is out of stock — and overshot: a beer, a cake roll, a tin of sardines bought once and used once read «⚡ Urgente». A finished row is now graded by the household's own habit (a staple of ≥ 3–4 uses a month is «Urgente», something used at least monthly or bought twice is «Presto», a one-off is «Pianifica» and stays on the list), and the deliberate 🛒 Esaurito marker follows the same scale.

v2.2.20 — finished products are «Urgente», and a passed date is never silent. The shopping list's «Urgente» filter now holds what is really out of stock and really used (rows stamped 🛒 Esaurito included, a once-bought item graded «Presto» / «Pianifica»), the screensaver ranks by urgency before calling two rows «i più urgenti», a recipe «Usa» can take the whole place even when the article stands in several rows, and a best-before date that has passed — flour included — reaches the notice strip and the daily digest instead of being hidden for 30 days by its own safety verdict. The stocktake's own camera can now flip front ↔ rear too, fruit & veg are never marked «aperte» by a partial use, and the half-used packs already stored are repaired. In the stocktake, «Finito» and «Andato a male» now ask for confirmation before emptying a shelf position, and every stocktake answer — «✓ C'è» included — applies only to the lot on the card (the other batches keep their stock and get their own question). Every change of an article now also refreshes every screen — the list you are working in included.

v2.2.19 — finished products stop inventing a phantom purchase. After use-all the ledger no longer writes an IN on an empty shelf, and swiping «bought» on a 🛒 Esaurito row clears the list without restocking from a guess.

v2.2.18 — scanner reads QR / DataMatrix with a payload rule (#323). 2D codes are decoded when the engine supports them; URLs are refused, own labels record a portion, and digits still look up the catalogue.

v2.2.17 — Telegram /add, confirmed /use, /help, and a notify channel (#102). The bot writes the pantry through the same paths as the app, asks before a use, and can receive the daily expiry digest.

v2.2.16 — recipe Use qty fixed; Genera probes Mealie before asking. Conf needs in g/ml no longer get clamped to pack counts; the create flow searches the ricettario first and only then offers Mealie vs AI.

v2.2.15 — shopping families stop calling a ragù «Salsicce». Vocabulary for sugo/ragù, Monte Veronese, erbe aromatiche; mid-title «frutta secca» no longer renames muesli.

v2.2.13 — tablet Home keeps expiry + «Usa» mid-right; screensaver unlocks on tap. On a kiosk the alert rows used to drop the red pill and «✓ Usa» under the text on the left when the name wrapped, while the next card kept them on the right — it looked like photo vs emoji was moving them. The band now stays one line and anchors the strip on the right every time. The idle screen’s «Sblocca» is bigger, and a tap anywhere unlocks (swipe left/right still flips the view).

v2.2.12 — Synology bind mounts can write the database again. A compose that maps /volume1/docker/…/data onto /var/www/html/data used to fail the splash (Data directory / Disk write / Database connection): the image chown was shadowed by the host folder, and Apache (UID 33) could not create evershelf.db. The container entrypoint now repairs ownership on every start (with a last-resort mode fix and a clear log line), the splash names the chown -R 33:33 host fix, and the wiki has a Synology page.

v2.2.11 — «2 pezzi» are not «2 g», and one answer lost is not two purchases. Two packs of tomini added as «2 pezzi» were on the shelf and in the database, and the pantry showed nothing: inventory has no unit column, so a row's number means products.unit, and the first save that carried the article's own unit (g, from the pack's «180 g») turned those two packs into 2 g — a trace the list hides as finished. Now an amount typed in another scale is translated before it lands (2 pz × 180 g = 360 g, 0,5 kg = 500 g) through the pack the article declares, the unit of an article that still has stock never moves (product_unit_kept_stock, unit_kept: true), an add that cannot be translated is refused with «già contato in g sullo scaffale» instead of reinterpreting the shelf, and the minimum (20 g) is checked after the conversion. And a write whose answer was lost is no longer written twice: it carries a client_op_id the server remembers for an hour, so the offline replay is answered with the state it already produced (the pantry read «8 mozzarelle» where two were in the fridge). Both reported shelves were repaired to what they really held: 1 pack of 180 g, 2 mozzarelle — and so were the other two products that burst doubled (onions 4,5 pz, piadina 1 pz); the same guard now covers a replayed use and a replayed spend, so the app can neither add nor remove the same thing twice.

v2.2.10 — a recipe that lost an ingredient remembers it. The screensaver kept proposing a «pizza margherita» whose pizza was finished, and opening it showed nothing missing: the pantry filter had deleted that row (it was not on a shelf) and only recorded the deletion when the shopping mode was on. Now what the pantry could not give is always recorded, the archive and the idle screen count it as missing (so the dish is not proposed), the recipe sheet says «La dispensa non aveva: …» instead of a list that silently lost a line, Mealie coverage uses the same matcher that actually links the ingredients (so «Pizza alta regina» no longer covers «Pizza margherita»), and a trace — 0.4 g of flour — is no longer stock.

v2.2.9 — the Health Bridge, rebuilt from zero. The Android companion is now EverShelf Health Bridge: five tabs (Today / Diary / Charts / Control / Info), every biometric Health Connect exposes, 7/30/90-day charts drawn without a chart library, a diary that keeps the household's notes — in the same six languages as EverShelf (it/en/de/fr/es/zh), an eight-step setup wizard that asks the language first and then every parameter, and a rule that is now enforced by code: data leaves the phone only when EverShelf ANSWERS, so a day spent outside the house waits in a local queue instead of being lost or retried in a storm. It updates itself over the LAN first (the workflow now publishes the APK in releases/) and GitHub second, and installs only an APK with the same signature and a higher versionCode — the build refuses to publish anything that Android would make you uninstall first. Crashes and sync failures are reported through report_error into their own river (data/logs/health-*.log) and, when the instance is configured for it, into a GitHub issue like the rest of EverShelf.

v2.2.8 — a translation that carries markup was printed as text. In the «usa / finito tutto» chooser the line «Finita 1 confezione ({qty})» carries a <strong> by design, and it was wrapped in escapeHtml(...): the household read the tag instead of bold text. The scanner's no-camera notice had the same defect with a <br>. Both are written raw now, with only the interpolated value escaped — and scripts/i18n-audit.py grew a section [5] that fails on the pattern (a bare «Peso < 10 g» is not flagged).

v2.2.7 — the AI generator, and a card that still proposed what the house cannot cook. My own regression: the guard added in 2.2.2 used a const written at the bottom of api/index.php, and a const is a statement — the router dispatches the handler long before that line runs, so the generator died with «Undefined constant "RECIPE_MIN_PANTRY_INGREDIENTS"» and produced no recipe at all. The constant now lives at the top with the others, and the same request streams «✅ Ricetta pronta!». And the idle screen no longer proposes a dish that is missing even ONE ingredient (a pizza margherita whose «pizza alta regina» is finished): only a fully cookable recipe is a proposal, 9 of the 26 archived ones on a real pantry; otherwise the rotation moves to the next view.

v2.2.6 — «la lista dice esaurito cose che ho». The row named «Latte» was a yogurt: its raw_name was «Yougurth fior di latte», and because yougurth was a spelling the vocabulary had never been taught, the genre in the middle of the title («fior di latte») decided the family — so a yogurt joined the milk family and the list read «Latte · Esaurito» next to 6.6 packs of milk. The family now comes from the genre that LEADS the title (the misspellings are data, a middle-of-title genre can no longer overrule a known lead), an app-owned row is renamed to the family its article belongs to today, and a migration heals the products already stored (2 of 9 disagreeing rows were wrong; the compound families like «Pangrattato» were left alone).

v2.2.5 — «hai tutti gli ingredienti» was not a fact. The idle screen proposed recipes whose ingredients were finished and printed «✅ Hai tutti gli ingredienti» over them: that chip came from missing === 0, and zero meant both "everything is on a shelf" and "nothing was checked". The check also skipped every ingredient whose quantity is not a number («q.b.», «80-90 g» — the sugar of the Maxi-Pancake, the lemon of the Piadina), so with the sugar gone it still answered missing 0. The answer is now three-valued — missing / unverifiable / verified — the ✅ is printed only when every ingredient was found on a shelf, otherwise «⚠️ Manca: …» or «❔ Da verificare: …», and any write into the pantry drops the shelf snapshot, so a product finished a second ago can no longer read as present.

v2.2.4 — a search does not outlive the moment. While a word narrows the pantry the idle return to the Home comes after 1 minute instead of 2 and clears the search: the shelf comes back whole and the next visit no longer finds an empty or wrong list (the search survives navigation on purpose). Measured in a browser: «latte» → 4 rows and a 60 s clock → after 60 s the Home with an empty field, then 150 rows again with the clock back at 2 minutes.

Older releases live in CHANGELOG.md.


✨ Features

Inventory Scan 1D product barcodes (EAN-13/8, UPC-A/E, Code 39, Code 128), places, expiry estimates, opened packs, favourites, CSV import/export
AI Gemini · OpenAI · Llama — identify a product, read an expiry, propose recipes, chat with SHELFY (voice or text)
Shopping Smart list with anti-waste quantities, recipe → list with pantry deduction, optional Bring!
Cooking Step-by-step mode, TTS, timers, zero-waste tips, hands-free commands
Calendar Subscribe to your expiries — an ICS/WebCal feed for Google/Apple Calendar
Alerts Expiry push without Home Assistant: ntfy, a JSON webhook or HA, with a test button
Medicines Optional cabinet, national catalogues imported locally, PAO on the pack, no model in the loop
PWA Installable, offline queue for writes, one household across phone / tablet / kiosk

Integrations: Home Assistant · MCP server · Health Bridge · Android kiosk

Languages: Italiano · English · Deutsch · Français · Español · 中文 — the interface is translated entirely, including the idle screen and every server message.


🧱 The repository in ten lines

index.html            the single page: every screen and dialog
assets/js/app.js      the frontend (one file, indexed by docs/INDEX-app-js.md)
assets/js/*.js        focused modules: audit (stocktake), screensaver, settings search, receipt
assets/css/           style.css + themes, surfaces, mobile (phone geometry), tablet (kiosk)
api/index.php         the backend: one switch(action) and its handlers
api/lib/*.php         domain libraries (AI, health, seasonal, medicines, security, support…)
api/database.php      schema + migrations, applied on the first request
data/                 SQLite database, caches and logs — never served over HTTP
translations/*.json   six locales; api/vocab/*.json holds the product vocabulary

The two monoliths are navigated with generated indexes (docs/INDEX-app-js.md, docs/INDEX-api-index.md, docs/INDEX-actions.md) and described in docs/CODEBASE-MAP.md. Working on the code? Start from AGENTS.md and docs/ARCHITECTURE.md.


📦 Install

Docker (recommended) cp .env.example .env && docker compose up -d — data lives in ./data
Unraid unraid/evershelf.xml CA template · docs/wiki/Unraid.md
Manual PHP 8.2 with pdo_sqlite, curl, mbstring → php -S 0.0.0.0:8080
Kiosk Android wall tablet APK, self-updating over your LAN → docs/wiki/Android-Kiosk.md
Health Bridge A phone or HA as a step source → evershelf-health-bridge/README.md

Configuration is one .env file (and the settings page, which writes it for you). The complete reference is docs/wiki/Configuration.md; the step-by-step guides live in docs/wiki/Installation.md.

🔐 Privacy

Self-hosted: the database, the photos you take and the logs stay in data/ on your machine. The only network calls are the ones you enable — the AI provider you configure, Open Food Facts for a barcode, your weather provider, your notification channel. Keys stay in .env and are never sent to the browser: the app receives a masked hint, never the secret.

🤝 Contributing

Bugs and ideas are welcome — docs/ROADMAP.md says what is next and which issues are up for grabs. Before opening a PR read CONTRIBUTING.md and SECURITY.md; CI runs the PHP/JS syntax checks, the generated-file guards and the translation audit on every push.

📄 License & credits

MIT — see LICENSE. Product data from Open Food Facts and other open data — the splash and Settings → Credits name every source. EverShelf shows no advertising.

Categories

Related apps

Explore more like this

Explore all

Links

Details

Repository
ghcr.io/dadaloop82/evershelf:latest
Last Updated2026-12-04
First Seen2026-10-11

Runtime arguments

Web UI
http://[IP]:[PORT:80]
Network
Bridge
Privileged
false

Template configuration

Web UIPorttcp

Port of the web interface (the container listens on 80).

Target
80
Default
8080
Value
8080
App dataPathrw

SQLite database, caches and logs — this is the pantry. Never put it on a tmpfs: an update would start empty.

Target
/var/www/html/data
Default
/mnt/user/appdata/evershelf/data
Value
/mnt/user/appdata/evershelf/data
ConfigurationPathrw

Folder holding .env (created from the example on first start, writable by the app).

Target
/config
Default
/mnt/user/appdata/evershelf
Value
/mnt/user/appdata/evershelf
TimezoneVariable

Timezone for expiry dates, logs and cron.

Target
TZ
Default
America/New_York
Value
America/New_York
Configuration fileVariable

Where the app reads and writes .env inside the container.

Target
EVERSHELF_ENV_FILE
Default
/config/.env
Value
/config/.env