A mobile-first grocery list, supplement tracker, and meal planner built for self-hosting — designed for your phone, not adapted to it. Every interaction is touch-optimized: bottom navigation, large tap targets, swipe gestures, and offline support so it works without signal in the store. Also fully usable in a desktop browser.
Groly is a PWA (Progressive Web App). Install it to your home screen on iOS or Android to unlock the full experience: offline mode, push notifications, barcode scanner, and location-based list opening all require the installed PWA.
Self-hosted, runs as a lightweight Docker container. Ready for Unraid and any other Docker-based home server setup. Designed for families and small teams — no open registration, users are invited by the admin.
- Shared lists – Share lists with other users; changes sync in real time via Server-Sent Events.
- Offline-first – Add, check off, edit, and delete items without internet. Changes sync automatically when back online.
- Barcode scan – Scan product barcodes with your camera to add items directly to your list (iOS and Android). Uses the native BarcodeDetector API where available (Chrome/Android) with ZBar WASM as a fallback for iOS and Firefox. Product names are looked up via Open Food Facts, Open Products Facts, and Open Beauty Facts — open, community-maintained product databases covering food, household, and personal care items. No API key required. Lookups are routed through your server (user IPs are not exposed) and cached persistently in SQLite. An offline indicator is shown in the scanner when there is no internet connection.
- Category sorting – Items are automatically assigned a category based on keyword matching (e.g. "milk" → Dairy, "apple" → Fruit & Vegetables). The display order of categories can be customized in Settings to match your supermarket layout — globally or individually per list. Users can also override the category of any single item.
- Quick entry – Add multiple items at once by separating them with commas — e.g.
2x Milk, 500g Ground beef, Bread. Quantities at the start of each item are recognized automatically. - Smart suggestions – When adding items, previously used item names are suggested. Suggestions are tracked per user in a dedicated history table and ranked by usage frequency. Checked-off items older than 60 days are automatically removed from the database; suggestion history is retained for 6 months after last use.
- Swipe to peek – Swipe left or right on any item tile whose name is truncated to reveal the full name in an overlay, without accidentally checking it off.
- Favourites – Long-press an item and tap the star next to the quantity field to save it as a favourite. Favourited items are marked with a small green dot on their tile (can be turned off in Settings → Display). Open the favourites panel via + → Favourites to quickly re-add them to any list, sorted by category. Long-press a favourite card to remove it.
- Log supplements – Track daily intake with a quick-log sheet. Adjust amounts, set the time, and confirm with one tap.
- Nutrient tracking – Define nutrients per unit for each supplement (e.g. 500 mcg Vitamin B12 per capsule). Groly automatically sums up your total daily nutrient intake across all supplements.
- Stock tracking – Track stock levels per supplement. Reorder directly via the built-in shopping cart button, which adds the supplement to any of your lists.
- Push reminders – Set configurable daily reminder times per supplement. Delivered via push notification to your phone.
- History – Day, week, and month views for both supplements taken and nutrients consumed. Navigate back in time to review any period.
- Active/inactive toggle – Temporarily disable a supplement without deleting it or its history.
- Brand & info – Optionally store brand and additional information per supplement.
- Recipes – Create and manage recipes, scale servings, and add ingredients directly to a shopping list. Import recipes from popular recipe websites by URL.
- Weekly meal planner – Plan meals for every day of the week. Assign recipes or free-text entries per day, adjust servings, and add ingredients from individual days or the entire week directly to a shopping list. Navigate forwards and backwards by week. Configurable as a quick access shortcut.
- Feature flags – Supplements and Recipes can be independently enabled or disabled per user in Settings → Display. Hide sections you don't use — they disappear from the navigation entirely.
- Category sorting – Customize the display order of categories globally or per list, to match your supermarket layout.
- Quick access shortcuts – Configure up to 4 shortcuts accessible by long-pressing the + button.
- Favourite indicator – The green dot on favourited items can be turned off per user.
- Push notifications – Get notified when someone adds an item to a shared list, when a new app version is available, and for supplement reminders. Works on iOS (16.4+) and Android.
- Location-based list opening – Assign a location to any list (e.g. your supermarket). When you arrive within 100 meters, Groly automatically opens that list — no tapping required. Opt-in per user in Settings.
- Quick access shortcuts – Long-press the + button to reveal up to 4 configurable shortcuts. Slide your finger to the desired shortcut and release to navigate — or release over empty space to cancel. Each shortcut can open a list, open a list with the add-item dialog, or jump straight into the barcode scanner. Configurable per user in Settings and synced across devices.
- PWA – Installable on iOS and Android, works like a native app.
- Light & Dark mode – Follows system preference automatically.
- Multi-user – Admin creates users, resets passwords, and manages sharing invitations.
- In-app changelog – A "What's New" modal appears after each update and is always accessible from the menu.
- i18n – German and English.
Groly does not have open registration — the admin creates accounts manually. This is by design for self-hosted instances where you control who has access.
Adding users:
- Log in as admin
- Open the menu (☰, top right)
- Go to Users
- Tap Add User
Only admin accounts can create users, reset passwords, and manage list sharing invitations. A newly created user is prompted to change their password on first login.
HTTPS is required. Without it, the following features will not work:
| Feature | Why HTTPS is needed |
|---|---|
| Offline mode | Service workers only register over HTTPS (browser requirement) |
| PWA installation | Browsers only allow "Add to Home Screen" over HTTPS |
| Push notifications | The Web Push API is restricted to HTTPS |
| Barcode scanner | Camera access (getUserMedia) requires HTTPS |
| Session cookies | The session cookie uses the Secure flag in production |
If you want to run Groly on your home network without exposing it to the internet, you have a few good options:
Run Groly behind Nginx Proxy Manager, Caddy, or Traefik with a real domain and Let's Encrypt. Works well if your server is already reachable from the internet.
Tailscale gives every device a real hostname with a valid Let's Encrypt certificate — no public DNS or port forwarding needed. Free for up to 100 devices.
- Install Tailscale on your Unraid server (available as a Community Applications plugin)
- Enable HTTPS: Tailscale Admin → DNS → Enable HTTPS
- Set
ORIGINto your Tailscale hostname, e.g.https://my-server.tail-xxxxx.ts.net
Zero-config HTTPS tunnel to your server, no port forwarding required. Free tier available.
The image is published to GitHub Container Registry and can be pulled directly:
ghcr.io/peterthepeter/groly:latest
services:
groly:
image: ghcr.io/peterthepeter/groly:latest
ports:
- "3000:3000"
volumes:
- /mnt/user/appdata/groly:/app/data
environment:
- ADMIN_USERNAME=your-username
- ADMIN_PASSWORD=secure-password
- ORIGIN=https://your-domain.com
# - ADDRESS_HEADER=X-Forwarded-For # only set this when running behind a reverse proxy (Caddy, Nginx, Traefik)
# Optional: push notifications (see Push Notifications section below)
# - VAPID_PUBLIC_KEY=<publicKey>
# - VAPID_PRIVATE_KEY=<privateKey>
# - PUBLIC_VAPID_PUBLIC_KEY=<same publicKey>
# - VAPID_SUBJECT=https://your-domain.com
restart: unless-stoppedInstall via Community Applications (search for "Groly") or add the template manually:
- Template URL:
https://raw.githubusercontent.com/peterthepeter/groly/main/unraid/groly.xml - Repository:
ghcr.io/peterthepeter/groly:latest - Port:
3000(WebUI) - Path:
/app/data→ e.g./mnt/user/appdata/groly - Variables:
ADMIN_USERNAME,ADMIN_PASSWORD,ORIGIN - Push notifications (optional): additionally set
VAPID_PUBLIC_KEY,VAPID_PRIVATE_KEY,PUBLIC_VAPID_PUBLIC_KEY,VAPID_SUBJECT— see Push Notifications below
The volume /app/data contains the SQLite database. An admin user is created on first start and is prompted to change the password on first login.
File permissions: The container runs as user
groly(UID 1000, GID 1000). Make sure the host data directory is owned by this user:chown -R 1000:1000 /path/to/your/appdata/grolyExisting installations upgrading from an older version must run this command once before restarting the container.
Architecture: The Docker image is built for
linux/amd64.
| Variable | Required | Description |
|---|---|---|
DATABASE_URL |
Yes | Path to the SQLite file, e.g. /app/data/groly.db |
ORIGIN |
Yes | Full URL of your instance, e.g. https://groly.example.com |
ADMIN_USERNAME |
First run only | Username for the initial admin account |
ADMIN_PASSWORD |
First run only | Password for the initial admin account |
VAPID_PUBLIC_KEY |
Optional | VAPID public key for push notifications |
VAPID_PRIVATE_KEY |
Optional | VAPID private key for push notifications |
PUBLIC_VAPID_PUBLIC_KEY |
Optional | Same value as VAPID_PUBLIC_KEY |
VAPID_SUBJECT |
Optional | https:// URL or mailto: address for VAPID |
ADDRESS_HEADER |
Optional | Set to X-Forwarded-For only when running behind a reverse proxy (Caddy, Nginx, Traefik). Do not set this if you're accessing Groly directly — it will cause login failures. Enables accurate per-client IP rate limiting. |
Generate a VAPID key pair once:
node -e "const wp=require('web-push'); const k=wp.generateVAPIDKeys(); console.log(JSON.stringify(k,null,2))"Add to your environment:
environment:
- VAPID_PUBLIC_KEY=<publicKey>
- VAPID_PRIVATE_KEY=<privateKey>
- PUBLIC_VAPID_PUBLIC_KEY=<same publicKey>
- VAPID_SUBJECT=https://your-domain.comImportant:
VAPID_PUBLIC_KEYandPUBLIC_VAPID_PUBLIC_KEYmust be the same value.VAPID_SUBJECTmust be a realhttps://URL ormailto:address — a.localdomain will be rejected by Apple's push service.- Generate the keys once and keep them. If the keys change, all existing subscriptions become invalid and users need to re-subscribe in Settings.
Groly performs automatic cleanup daily — no manual intervention required:
| Data | Cleanup rule |
|---|---|
| Checked-off items | Deleted after 60 days |
| Item suggestions | Deleted after 6 months without use |
| Barcode cache | Deleted after 6 months without a lookup |
| Expired sessions | Deleted daily |
| Stale push subscriptions | Removed automatically on failed delivery (HTTP 410/404) |
Active data (lists, unchecked items, recipes, supplements, list members) is only removed by user action. For a typical self-hosted instance, the SQLite database stays well under 100 MB indefinitely.
| Layer | Technology |
|---|---|
| Framework | SvelteKit (TypeScript, Svelte 5 Runes) |
| Database | SQLite via better-sqlite3 + Drizzle ORM |
| Auth | Custom (scrypt + sessions, 30-day expiry) |
| Real-time | Server-Sent Events (SSE) |
| Offline | Dexie.js (IndexedDB) + mutation queue |
| Push | Web Push API + VAPID (web-push) |
| Barcode | BarcodeDetector API + ZBar WASM (@undecaf/zbar-wasm) |
| PWA | vite-plugin-pwa + Workbox |
| CSS | Tailwind CSS v4 |
| i18n | Paraglide-SvelteKit |
| Deployment | Docker (Node.js adapter), linux/amd64 |











