Skip to content

About

Self-hosted pantry tracker: what's in the kitchen, what expires soon, one shared shopping list, recipes from what you have. AGPL-3.0.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

pantryPal

pantryPal

Know what's in your kitchen. Use it before it goes off.

Quick start · Live demo · Documentation · Discord

License: AGPL-3.0 Images on GHCR Works with Home Assistant

pantryPal is a self-hosted pantry tracker for a household. Scan or type in what you buy, see what is about to expire, keep one shared shopping list, and find recipes that use what you already have. It runs on your own server with Docker; nothing is sent to us.

This repository is pantryPal Core: open source, complete, and free to self-host.

Note

pantryPal is under active development. Configuration and APIs can change between releases. Back up before upgrading, and pin an image tag (for example pantrypal-api-gateway:api-gateway-<commit>) instead of :latest if you need stability.

Inventory with expiry dates by location Insights: expiry status and waste watch

Features

  • Inventory by location. Fridge, freezer, pantry or your own locations, with categories, quantities and notes.
  • Barcode lookup. Scan with a phone camera or type a code; product details come from Open Food Facts (with a UPCitemDB fallback) and are cached for 30 days. Items without a barcode can be added by hand.
  • Expiry tracking. Four levels (upcoming, warning, critical, expired), an Expiring Soon view and a waste watch.
  • Shared shopping list. One list for the household; checked items move into the inventory.
  • Recipes. Import from your own Mealie or Tandoor server, see which recipes you can make now, and which use items about to expire.
  • Meal plan. A household meal calendar built from your recipes, with an .ics download for your calendar app.
  • QR labels and CSV export for jars, leftovers and backups of your data.
  • Home Assistant. Read expiring items and manage the shopping list over the REST API with an API key. See docs/HOME_ASSISTANT.md.
  • Sign-in your way. Password accounts, Google and Apple sign-in, or any OIDC provider (Authentik, Keycloak, Authelia, Okta, Microsoft Entra ID).
  • Installable web app with dark mode and offline support: changes made offline sync when you reconnect.

Shared shopping list Inventory in dark mode

Quick start

You need Docker with the Compose plugin, 1 GB of RAM and 2 GB of disk. The compose file pulls prebuilt images (linux/amd64; on ARM, build from source with docker-compose.dev.yml).

mkdir pantrypal && cd pantrypal
curl -fsSL -o docker-compose.yml https://raw.githubusercontent.com/palStack-io/pantrypal-core/main/docker-compose.yml
curl -fsSL -o .env https://raw.githubusercontent.com/palStack-io/pantrypal-core/main/.env.example

# Generate your own secrets (pantryPal ships with none and refuses to start without them)
for key in DB_PASSWORD SECRET_KEY INTERNAL_SERVICE_TOKEN ENCRYPTION_SALT; do
  sed -i.bak "s|^$key=.*|$key=$(openssl rand -hex 32)|" .env
done
sed -i.bak "s|^ADMIN_DEFAULT_PASSWORD=.*|ADMIN_DEFAULT_PASSWORD=$(openssl rand -base64 18)|" .env && rm .env.bak

docker compose up -d
grep ^ADMIN_DEFAULT_PASSWORD .env   # your admin password

Open http://localhost:8888 and sign in as admin with the password printed by the last command. Then:

  1. Change the admin password in Settings.
  2. Add household members under Admin → Users (open registration is off by default).
  3. Set APP_URL and the SMTP_* settings in .env if you want password-reset and invitation emails.

To serve on another port, set HTTP_PORT in .env. Put pantryPal behind a reverse proxy with HTTPS (Caddy, nginx, Traefik) before exposing it outside your network.

Upgrade: docker compose pull && docker compose up -d. Back up: set DB_BACKUP_ENABLED=true for scheduled database and image backups; see docs/BACKUP_AND_RESTORE.md.

Other ways to run it: docker-compose.dev.yml builds every service from this checkout, and docker-compose-portainer.yml is a single file for the Portainer stack editor.

Core and hosted

pantryPal Core is the whole product for one household on your own server. palStack also runs a hosted edition, which is what the live demo shows.

Core (this repository) Hosted
Inventory, barcode lookup, expiry tracking, locations, categories, QR labels Yes Yes
Shared shopping list, recipes from Mealie or Tandoor, meal plan Yes Yes
Home Assistant and API keys Yes Yes
Password, Google and Apple sign-in Yes Yes
Any OIDC provider (Authentik, Keycloak, Authelia, Entra ID) Yes No
Households One shared pantry per server Several pantries, with paid plans
Receipt scanning, AI recipe suggestions, nutrition No Paid plans
Backups Built-in backup container you run Managed
Where your data lives Your server palStack's servers

Phone app (iOS and Android): included with hosted pantryPal; for Core servers it will be a one-time purchase from January 2027. On a Core server, hosted-only features are hidden.

Architecture

nginx                    reverse proxy, serves the web app
├── api-gateway          FastAPI: auth, sessions, OIDC, recipes, meal plan, images, email
├── inventory-service    items, locations, shopping list
├── lookup-service       barcode to product, cached
├── web-ui               React + TypeScript, installable web app
├── postgres             PostgreSQL 15
└── backup               scheduled database and image backups (opt-in)

Documentation

Guide What's in it
Configuration Every .env setting, sign-in modes, the shared household, recipe integrations
Authentication Sessions, API keys, Google and OIDC setup
Home Assistant Sensors, shopping-list automations, API keys
Deployment Reverse proxies, HTTPS, Portainer
Backup and restore Scheduled backups and how to restore them
Email link troubleshooting When reset links point at the wrong address
Changelog What changed, release by release

Full documentation: palstack.io/pantrypal/docs.

Contributing

We have paused code contributions while we work out how to review AI-assisted changes well. Bug reports, ideas and questions are very welcome: open an issue or join us on Discord.

Found a security problem? Please report it privately; see SECURITY.md.

License

pantryPal Core is licensed under the GNU Affero General Public License v3.0. You can use, change and self-host it freely. If you run a modified version as a network service, you must publish your changes under the same licence.

pantryPal is built for personal and household use. To run it commercially, or as a service without the AGPL's obligations, contact support@palstack.io about a commercial licence.


Part of palStack.io: everyday tools for food, money, home and friends.

About

Self-hosted pantry tracker: what's in the kitchen, what expires soon, one shared shopping list, recipes from what you have. AGPL-3.0.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages