EverShelf

EverShelf

Docker app from DevlinDelFuego's Repository

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
✨ Features
Inventory Scan, locations, expiry, opened packs, favourites, CSV import/export
AI Gemini · OpenAI · Llama — identify, OCR expiry, recipes, chat
Shopping Smart list, anti-waste qty, recipe → list with pantry deduction, optional Bring!
Cooking Steps, TTS, timers, zero-waste tips
Calendar Subscribe to expiries — ICS/WebCal feed for Google/Apple Calendar
Alerts Expiry push without Home Assistant — ntfy, JSON webhook or HA, with a test button
PWA Offline queue, installable, multi-device

Integrations: Home Assistant · MCP · Health Bridge · Kiosk

Languages: IT · EN · DE · FR · ES · ZH — details in wiki → Features

📰 What's new

v1.16.16 — il wizard di configurazione segue il server, non il browser: con un .env in sola lettura un nuovo dispositivo non lo riapre, lo step Google Drive sparisce con GDRIVE_ENABLED=false e quello della lingua con APP_LANG (issue #301) v1.16.15 — anche le liste minori smettono di troncare: risultati della ricerca rapida, candidati del match AI (non si capiva quale articolo fosse stato scelto), righe della ricevuta e etichette del grafico “Spesa per categoria” v1.16.14 — le liste sono leggibili sul telefono: nuovo layer CSS mobile (testo a tutta larghezza, badge e quantità sotto, niente troncamenti né titoli schiacciati a una lettera per riga) v1.16.13 — il dismiss vale anche per il sync in tempo reale (un cambio di stock non rimette in lista ciò che hai scartato) v1.16.12 — “Non lo compro” resta valido: un dismiss con scadenza (default 14 giorni, dismiss_days per chiamata) che il cron rispetta, così un client esterno non ritrova i prodotti in lista dopo cinque minuti; un acquisto lo cancella v1.16.11 — le date seguono il paese: in Italia gg/mm/aaaa (e non "2026-10-19" né il mese a parole) in banner, import e log; fr/es non ricevono più il formato italiano, e il TTS parla la lingua dell’interfaccia v1.16.10 — a shopping row stops contradicting itself: it reports the stock of its whole family (no more “Esaurito” next to “Hai già 235 g”), the pantry hint counts the same family only, and raw cane sugar groups with cane sugar instead of white sugar v1.16.9 — a tap opens the alert rows on the phone too (the 900 ms hold was the only way in, and "aperti da troppo tempo" was not clickable at all) v1.16.8 — the quantities finally match the window you chose (25 days, not the inferred week: 5 lemons a month are 5, not 2), perishables are planned with the shelf life of where you actually keep them, a product that expires today is no longer listed as expired, one or two days past the date are “Controlla” instead of “Non mangiare”, and a drink says “Non bere” v1.16.7 — the shopping automations stop fighting: the prune no longer deletes the row the auto-add has just created (add → prune → add every 5 minutes), and it never touches a row you marked as finished v1.16.6 — a finished product gets back on the shopping list: the family rule no longer hides a real shortfall by adding grams and packs together (or counting expired batches and 0.5 g smears) — “360 g” of lemon jam used to keep every jar of jam off the list — “Usa tutto” now always lands on the list, and an expired batch with fresh stock no longer adds a row with no quantity v1.16.5 — the app opens in the language the link asked for (/?lang=de, with the picker keeping the URL in step) and the vocabulary answers again: core/vocab.js had lost two braces, so nine engine functions — piece produce, prepared salad, processed food, singular/plural — were undefined in the browser; a 429 now carries a translatable error_key (six locales), the add form's units are translated with a badge that follows the select, and the shopping list's urgency prefix is recognised by its marker instead of its Italian word v1.16.4 — the quick stocktake speaks: each card now reads “Ci sono ancora 120 g di Formaggio Morbido di Barilla in Frigo” with the quantity in a big accent pill, and the answers really act — Sì, confermo, Cambio quantità and Cambio posizione (the normal edit sheet opens on top of the run, manual or from the scale, without losing it), No, è esaurito (the real “usa tutto”) and No, è deperito (the real “butta tutto”, counted as waste); a run closed by mistake resumes from the point reached for an hour, when the scale is connected Leggi dalla bilancia fills the quantity in one tap, and Indietro undoes the last answer — even the last article, from the summary v1.16.3 — the backup panel speaks the UI language: restore/delete/Drive messages are translated from error_keys in all six locales, the hardcoded English and the Italian 'gg' fallback are gone, and a guard test keeps them out v1.16.2 — the daily backup actually runs: the Docker image now ships its own cron (every 5 minutes), a backup is a consistent VACUUM INTO snapshot, and the Backup panel warns when the last one is missing or older than 8 days; backups live inside the data volume, so copy them off-volume v1.16.1 — a hand-edited .env wins again: the database fallback written when Settings cannot save the file no longer shadows it, so changing OPENAI_MODEL (or any key) in .env and restarting takes effect; the AI connection test names the model it actually called and logs the provider's message v1.16.0 — installable from Unraid, with the template versioned in the repo and a container-safe .env (EVERSHELF_ENV_FILE) that survives an update v1.15.3 — the tablet stops “resetting”: a warm reload skips the 3 s splash, the kiosk uses the HTTP cache again and reloads a hung page once (watchdog) instead of sitting on a dead frame v1.15.2 — no more white flashes on the Android tablet: the root canvas paints the app background (not white) and the kiosk WebView surface matches the splash colour v1.15.1 — the settings checklist empties itself: an option you answered leaves “Da decidere”, and saving a configuration (or the tab a “Novità” row lives in) removes it from both lists v1.15.0 — Settings becomes searchable: one field at the top finds a setting by name, description, synonym or .env key (114 controls + 48 server-only keys, all six languages) and jumps to it; a generated registry + guard test keep it honest v1.14.0 — custom product tags (#97): free-form labels on a product, pills on the inventory card and a filter bar above the list (AND across the selected tags, autocomplete from the tags in use), behind a normal TAGS_ENABLED setting; quick stocktake (#285): one card at a time with three big answers, batched writes behind AUDIT_MODE_*, a summary that says what changed; parent/child products (#284): an umbrella article with its brand variants, each keeping its own stock and barcode while the family total is one line, behind PRODUCT_VARIANTS_ENABLED; receipt OCR (#114): one photo becomes an editable table, and nothing enters the pantry before you confirm it, behind RECEIPT_OCR_ENABLED; a failed refresh no longer blanks the pantry or the shopping list, the smart-shopping cache declares its schema and Bring! stops suggesting what is already in stock v1.13.0 — a scanned tomato is never the pantry's jar of passata: the duplicate rules, the AI name→category vocabularies (browser and server, one source) and the AI-identified unit/quantity were rebuilt, a new pantry row below 20 g/ml (or 1 piece, ¼ pack) is refused instead of appearing as "finished", "Spesa stimata" is one number for app/kiosk/Home Assistant, and the vocabulary now lives in api/vocab/<lang>.json (genres, brands, plurals — no product names in the code, no regex on vocabulary) v1.12.0 — optional support, without a paywall and without any advertising: a one-off dialog shows the real running costs and offers two answers — donate with PayPal (with its own server-drawn QR code) or nothing for now, which is the default. The donation link, the amounts and the disclosed costs live in .env; the banner slots were built and then parked, so nothing is ever advertised. The kiosk wizard carries the same two answers v1.11.14 — “Product ID required” when adding an AI-identified product (issue #282) fixed: the catalog row is created on the fly and backend errors are translated v1.11.13 — the recipe ingredient “Usa” button is double the size (1.55 rem, 48 px) so it reads as the primary action; the bump script now busts the cache correctly v1.11.12 — safety verdicts are one-word badges (Va bene / Controlla / Non mangiare / Buttalo) with the advice on hover; removing an out-of-season product now sticks and the seasonal card suggests only what you actually buy or eat, with the reason; Bring! wording disappears when the internal list is active; bigger “Usa” buttons; i18n gaps closed v1.11.11 — scan screen redesign: hero camera, favourites/recents rail, AI glass tips on-stream, speculative barcode prefetch v1.11.10 — recipe archive dedup by content_hash (no more chat clones); many free-slot recipes per day; “Usa ingrediente” shows big needed qty and scale X / Y v1.11.9 — kiosk dedicated pairing step + token hand-off to WebView (kiosk 1.7.24) v1.11.8 — pairing code visible on a paired device (Settings → Security); kiosk APK from LAN + kiosk-latest; kiosk 1.7.23 emerald Corporate UI redesign (wizard / settings / splash) v1.11.7 — empty recipe “missing from pantry” stub gone; undo of location moves is a pair v1.11.6 — HA shopping_mode + calendar attention=1 v1.11.5 — shopping pack-equiv restock, conf caps, Bring hard-off when internal, HA expiry = dashboard rules v1.11.4 — Open Prices (free) + opt-in Web Push PWA; delete undo toast; torch fillLightMode; settings “da decidere” for prices/push v1.11.3 — shopping trip mode, ntfy digest/Telegram, zerowaste tips, guided settings nav v1.11.2 — extending expiry refreshes banner, dashboard and the current page; optimization backlog in docs/OPTIMIZATION-BACKLOG.md v1.11.1 — faster barcode lookup, top-3 auto-favourites, smart shopping catches depleted stock, Android CI stabilisation v1.11.0 — an article is stored in the singular (Fetta biscottata integrale) and the pantry shows the plural of what is really there (3 Uova medie, 500 g Pasta stays a mass); certifications keep their capitals (IGP, DOP, EVO); the scan step lets you correct the identified title and brand before saving v1.10.1 — splash boot rail: stage icons go grey → blinking → coloured with an aura, a prominent version chip, and every article title now starts with a capital letter v1.10.0 — the genre leads every article title (Yogurt Fiori di latte); products you use often become favourites v1.9.1 — settings collapses into sub-sections, dashboard overview/freshness/trend panels, expiry push without Home Assistant (ntfy/webhook), cron watchdog, setup checklist v1.9.0 — Calendar feed (ICS/WebCal); recipe → shopping list with the pantry deducted; seasonal produce filters; third CSS layer v1.8.10 — Docker build stops baking in local data; CSRF header required on every POST; error reports redacted and GitHub publishing opt-in v1.8.9 — Localised tooltips, placeholders and aria labels; fixed PWA manifest icons v1.8.8 — One-time pairing code for the API token; startup no longer dead-ends behind the splash

→ CHANGELOG.md

⚙️ Install & config

Docker (recommended): docker compose pull && docker compose up -d

Unraid: Community Applications template (contributed by @DevlinDelFuego) — unraid/evershelf.xml, with the guide in docs/wiki/Unraid.md. It mounts the database and the folder holding .env, so both survive a container update.

Manual: clone → cp .env.example .env → chmod 755 data/ → point web server at repo root.

Minimum .env:

AI_ENABLED=true
AI_PROVIDER=gemini
GEMINI_API_KEY=your_key

Optional: API_TOKEN, SHOPPING_MODE=bring, cron every 5 min on api/cron_smart_shopping.php

Behind a reverse proxy: set TRUSTED_PROXIES to the proxy IP(s)/CIDR so rate limiting sees real client IPs, and EVERSHELF_CANONICAL_HOST in the Apache vhost (docker/apache-evershelf.conf) to enable the forced-HTTPS redirect.

First run with API_TOKEN set: the web UI asks for a one-time pairing code. On a device that is already paired, the live code is under Settings → System → Security (and Info). It is also printed in the server log:

grep -i "pairing code" logs/evershelf_*.log | tail -1   # bare metal
docker logs evershelf 2>&1 | grep -i "pairing code" | tail -1   # Docker

The token is never handed to an anonymous request. On a fully trusted LAN you can opt out with API_BOOTSTRAP_OPEN=true (re-exposes the token — see SECURITY.md).

→ Wiki: Installation · Configuration

🔌 Integrations & API
Link
Home Assistant ha-evershelf
MCP agents mcp-server/README.md
Health / Fuel Mode evershelf-health-bridge/README.md
Android kiosk + scale evershelf-kiosk/README.md
Calendar feed (ICS) Wiki → Calendar Feed
REST API Wiki → API
🏗️ Architecture & security

index.html SPA · api/index.php · assets/js/app.js · SQLite in data/

→ ARCHITECTURE.md · CORPORATE-UI.md · SECURITY.md

🤝 Contributing

Roadmap — what is next, with a rough effort tag. · Issues · Good first issues · Discussions · Project board

You do not have to write code: translations, bug reproductions, testing a PR, docs and UX feedback are all welcome. Pick something from the roadmap and say hello in the issue — the project needs more than one pair of hands. Starting point: #290 — Contributing to EverShelf (pinned).

Add a language: copy translations/en.json, translate values, open a PR.

📸 Demo

Demo

Live demo — no install, full AI.


MIT · Stimpfl Daniel · @dadaloop82

Unrelated iOS app “EverShelf” by Joshumi Technologies — no affiliation.

Categories

Related apps

Explore more like this

Explore all

Details

Repository
ghcr.io/dadaloop82/evershelf:latest
Last Updated2026-11-13
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