尚未检测到更新。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'.