尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗No install needed (Node 22.5+ for the hub tests):
node tests/phase-a-smoke.mjs && node tests/phase-1-pantry-plan.mjs && node tests/phase-2-reconciliation.mjs && node tests/phase-3-recipe-box.mjs && node --no-warnings tests/hub-server.mjs && node --no-warnings tests/phase-4a-hub-sync.mjs
api/hub.js handles every /api/* route on Vercel (vercel.json rewrites them) and keeps the data in Neon Postgres.
Phones sign in once with a household passcode and pick their name. The signed-in cookie lasts 90 days, and changing the passcode signs every phone out.
Vercel environment variables:
DATABASE_URL: set by the Neon integration.
HOUSEHOLD_PASSCODE: at least 8 characters; several words is best. After 10 wrong tries from one address, that address is locked out for 15 minutes.
HOUSEHOLD_MEMBERS: comma-separated names, e.g. Marcel, <name>.
BACKUP_TOKEN: a long random key that opens the read-only /api/export for the weekly backup.
FITNESS_ORIGINS (optional): Fitness sites allowed to link. Defaults to https://nexa-fitness.vercel.app.
Weekly backup: tools/backup-meals.mjs saves the export and photos to %USERPROFILE%\NEXA-Data\meal-backups\, proves each copy restores into an empty database, and keeps the newest 12. It reads backup-config.json there ({"url": "...", "token": "..."}). tools/install-backup-task.ps1 schedules it for Sundays at 4 AM.
Nexa Fitness link: POST /api/link (household passcode, then a name) returns a key that can only read and set that person's targets through /api/link/targets. Phones get the targets by sync and can't change them.
Tests run the same SQL on PGlite (Postgres compiled to WebAssembly): npm install, then npm test.
hub/server.mjs, alternative)A small server with no dependencies that keeps the household's shared data on this PC and serves the app. Opened anywhere else (Vercel, a saved file), the app finds no hub and stays phone-only.
node --no-warnings hub/server.mjs. It listens on 127.0.0.1:8790 only.%USERPROFILE%\NEXA-Data\meals\ holds meals.sqlite, photos\ and hub-config.json. Override the folder with MEALS_HUB_DATA and the port with MEALS_HUB_PORT.hub-config.json → auth.mode):
dev: for testing on this PC. It refuses any request that came through Cloudflare. Use /api/dev-login?as=<email> to act as another member.access: for phones, via Cloudflare Tunnel + Access. The hub verifies every request's Access token against auth.teamDomain and auth.audience, then checks the email against auth.members.hubRequest, which allows same-origin /api/ paths only. The page is also served with connect-src 'self'.