[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116271":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":11,"openIssues":12,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":12,"stars7d":12,"stars30d":12,"stars90d":12,"forks30d":12,"starsTrendScore":12,"compositeScore":13,"rankGlobal":9,"rankLanguage":9,"license":14,"archived":15,"fork":15,"defaultBranch":16,"hasWiki":15,"hasPages":15,"topics":17,"createdAt":9,"pushedAt":27,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":12,"starSnapshotCount":12,"syncStatus":31,"lastSyncTime":32,"discoverSource":33},116271,"pantrykind","AngelHuang5335\u002Fpantrykind","AngelHuang5335","A private, self-hosted kitchen companion. Track food, cook what you have, share a shopping list, and waste a little less. Python + Django.",null,"Python",53,0,40,"MIT License",false,"main",[18,19,20,21,22,23,24,25,26],"django","food-waste","meal-planning","pantry-management","privacy","python","self-hosted","shopping-list","sqlite","2026-11-02 08:43:24","2026-11-08 07:42:52","\u003Cdiv align=\"center\">\n\n# PantryKind\n### Less in the bin. More on your plate.\n\n**A private, self-hosted kitchen companion for using what you already have.**\n\n[![Tests](https:\u002F\u002Fgithub.com\u002FAngelHuang5335\u002Fpantrykind\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002FAngelHuang5335\u002Fpantrykind\u002Factions\u002Fworkflows\u002Fci.yml)\n![Python 3.12+](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPython-3.12%2B-3776ab)\n![Django 5.2 LTS](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDjango-5.2%20LTS-245b42)\n[![MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-MIT-e2edc8)](LICENSE)\n\n[中文说明](README.zh-CN.md) · [Quick start](#quick-start) · [Self-hosting](docs\u002FDEPLOYMENT.md) · [Contributing](CONTRIBUTING.md)\n\n\u003C\u002Fdiv>\n\n![PantryKind kitchen overview](docs\u002Fscreenshots\u002Fdashboard.png)\n\n\u003Cdetails>\u003Csummary>See recipes, purchases, reminders and the mobile layout\u003C\u002Fsummary>\n\n![Recipe notebook](docs\u002Fscreenshots\u002Frecipes.png)\n\n\u003Cimg src=\"docs\u002Fscreenshots\u002Fmobile.png\" width=\"320\" alt=\"PantryKind dashboard at a phone width\">\n\n![Private kitchen inbox](docs\u002Fscreenshots\u002Finbox-desktop.png)\n\n\u003Cimg src=\"docs\u002Fscreenshots\u002Fpurchase-mobile.png\" width=\"320\" alt=\"Partial purchase entry on a phone\">\n\n\u003C\u002Fdetails>\n\n## A calmer kitchen, one meal at a time\n\nYou buy spinach. It disappears behind a jar. You buy it again.\n\nPantryKind gives the food already in your kitchen a little visibility: which batch needs attention, which recipe you can make tonight, and what is actually missing from your next shop.\n\n**No subscriptions. No paid AI keys. No barcode database. No external runtime services for the core application.** Your server stores your data. The application does not bundle analytics or advertising scripts.\n\n## What it does\n\n- **Know what is there:** dated batches, categories, storage locations, partial quantities, search and filters.\n- **Use it thoughtfully:** use-soon views, reversible archiving, consumption and waste records, and first-expiring batch deductions when you explicitly log a cooked meal.\n- **Shop once:** a shared checklist, duplicate merging, low-stock gaps and recipe missing ingredients. Put away partial purchases as new dated batches, with a purchase history and retry-safe stock ledger.\n- **Find dinner at home:** save your recipes, match compatible quantities, scale servings and filter ready-to-cook meals. Grams\u002Fkilograms and millilitres\u002Flitres convert; unknown pack sizes do not.\n- **Plan together:** weekly meals, calendar downloads, separate kitchens, expiring invitations and owner\u002Fmember access.\n- **Keep control:** validated CSV preview\u002Fimport, a read-only integration API, verified SQLite backup\u002Frestore and optional PostgreSQL deployment.\n- **Get a gentle nudge:** opt-in daily inbox reminders in your kitchen's timezone, durable scheduling, crash recovery and bounded retries. No email service is required.\n\nThis is a household organisation tool. Dates are copied from labels and are not a food-safety assessment. Insights show your recorded activity; they do not claim measured money, carbon or total waste savings.\n\n## Quick start\n\nRequires **Python 3.12 or newer**. No Node.js build or database server is needed.\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FAngelHuang5335\u002Fpantrykind.git\ncd pantrykind\npython -m venv .venv\n# Linux \u002F macOS\nsource .venv\u002Fbin\u002Factivate\n# Windows PowerShell: .\\.venv\\Scripts\\Activate.ps1\npython -m pip install -r requirements.txt\npython manage.py migrate\npython manage.py runserver 127.0.0.1:8000\n```\n\nOpen **http:\u002F\u002F127.0.0.1:8000**, create an account, and name your kitchen. Add a few things from your fridge; you do not need a perfect inventory to get started.\n\n### Try a populated kitchen\n\n```bash\npython manage.py seed_demo\n```\n\nChoose your own password when prompted. Sign in as `demo`. This creates an independent kitchen with sample food, three original recipes and a short meal plan. It never clears an existing database or overwrites an existing username. Use `--username another-name` for a second demo.\n\n## Everyday workflow\n\n1. Add food as a batch, or choose **Shopping → Put away** to receive a full or partial purchase with its own label date.\n2. Open **Overview** to see items approaching their dates.\n3. Save a recipe using the same food names as your pantry. **Recipes → Ready with what I have** finds meals whose measured ingredients are on hand.\n4. Scale portions if needed. Add missing quantities to **Shopping**, or explicitly record cooking to update stock.\n5. Use **Insights** to review what you used or discarded, keeping different units separate.\n\nPlanning and checking off shopping items do not automatically create or deduct stock. A new purchase with a different date belongs in a separate batch. Food past its recorded date is excluded from automatic recipe matching.\n\n## Self-hosting\n\nStart with [the deployment guide](docs\u002FDEPLOYMENT.md). Set a unique production `SECRET_KEY`, disable `DEBUG`, configure hosts and HTTPS, and protect account registration and login at your reverse proxy. `.env.example` documents variables; native Python does **not** automatically load a `.env` file. Docker Compose reads the configured `.env` file.\n\n```bash\ncp .env.example .env\n# Edit .env: generate a secret, set DEBUG=false and configure your hosts.\ndocker compose up --build -d\n```\n\nSQLite data lives in a persistent volume. Do not delete that volume during upgrades. See [backup and restore](docs\u002FBACKUPS.md) and the optional [PostgreSQL deployment](docs\u002FPOSTGRESQL.md). The current release is intended for trusted households.\n\n## Useful commands\n\n```bash\npython manage.py pantry_digest 1\npython manage.py backup_pantry \u002Fprivate\u002Fbackups\u002Fkitchen.sqlite3\npython manage.py verify_backup \u002Fprivate\u002Fbackups\u002Fkitchen.sqlite3\npython manage.py enqueue_reminders\npython manage.py reminder_worker --limit 100\npython manage.py reminder_status\npython manage.py test --settings=config.test_settings\n```\n\nSchedule both reminder commands every minute for enabled users; delivery appears in the app's private **Inbox**. See [reminder operations](docs\u002FREMINDERS.md). The manual `pantry_digest` remains a local text report. See also [API](docs\u002FAPI.md), [architecture](docs\u002FARCHITECTURE.md), [security](SECURITY.md) and [release notes](CHANGELOG.md).\n\n## Development\n\n```bash\npython -m pip install -r requirements-dev.txt\npython -m ruff check .\npython -m ruff format --check .\npython manage.py makemigrations --check --dry-run\npython manage.py test --settings=config.test_settings\n```\n\nThe fast test settings use a weak password hasher **only for isolated tests**; production settings retain Django's normal password hashing. CI includes Python 3.12\u002F3.13, PostgreSQL races, container builds and an opt-in [Playwright browser suite](docs\u002FBROWSER-TESTS.md). [Validation notes](docs\u002FVALIDATION.md) record the local checks and the passing CI run for the release code.\n\nThe recipe catalogue uses one stock index and three database queries, independent of recipe count. A reproducible synthetic benchmark compares 500 recipes and 2,000 batches; see [performance scope and results](docs\u002FPERFORMANCE.md).\n\n## Scope and limitations\n\nIngredient matching uses normalised exact names, not semantic similarity. It will not assume “tomato” and “tomatoes” are the same food, or that one pack has a known weight. Pantry updates are designed for modest household traffic; multi-process SQLite deployments still have SQLite's single-writer limits. There is no offline sync, barcode scanning, built-in email delivery or public hosted demo. Docker configuration is supplied; consult release notes for what was actually validated.\n\n## Make it a little kinder\n\nHave a useful kitchen habit this tool could support? [Open an issue](https:\u002F\u002Fgithub.com\u002FAngelHuang5335\u002Fpantrykind\u002Fissues) with a concrete example using sample data. Contributions are welcome under the [MIT license](LICENSE).\n","PantryKind 是一个私有化、可自托管的家庭厨房管理工具，帮助用户追踪库存食材、规划餐食、生成购物清单并减少食物浪费。核心功能包括带保质期的批次化 pantry 管理、基于现有食材的食谱匹配与分量换算、共享购物清单（支持去重与缺货提示）、多厨房协作及本地 SQLite\u002FPostgreSQL 数据存储。采用 Django 框架构建，强调隐私保护，不依赖外部服务或云端 AI。适用于注重数据自主、希望优化家庭食材使用效率的个人或小家庭场景。",2,"2026-11-24 04:53:23","CREATED_QUERY"]