尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证正在加载完整 README。 以下为已保存的摘录。
A set of books for one household, kept by the people in it. A budget for the
month, every entry reported against it, accounts whose balances are worked out
from the entries rather than typed, credit cards that file themselves into the
right statement, and a khata for what is lent, fronted and owed back. It is a
PWA, built for a phone, and it works without signal.
The live copy is at https://saree-al-hisab.vercel.app. What it does with your
data is written down, in the app, at /terms — and every claim on that page is
one you can check here, because this is all of the code.查看完整 README ↗A set of books for one household, kept by the people in it. A budget for the month, every entry reported against it, accounts whose balances are worked out from the entries rather than typed, credit cards that file themselves into the right statement, and a khata for what is lent, fronted and owed back. It is a PWA, built for a phone, and it works without signal.
The live copy is at https://saree-al-hisab.vercel.app. What it does with your
data is written down, in the app, at /terms — and every claim on that page is
one you can check here, because this is all of the code.
Then nobody but you holds the books. You need a Postgres database (Neon's free tier is fine; so is one on your own machine) and Node 24.
cd web
npm install
# .env.local — never committed
echo 'DATABASE_URL=postgresql://user:pass@host/db?sslmode=require' >> .env.local
echo "AUTH_SECRET=$(openssl rand -base64 32)" >> .env.local
echo 'AUTH_TRUST_HOST=true' >> .env.local # only when not on Vercel
npm run migrate # creates every table, view and trigger, in order
npm run build
npm start # http://localhost:3000
Open it, create your account, name your household and pick its currency. That is the whole setup: there is no admin console and no seed step. Receipt scanning is per household and needs a Google AI key, added inside the app under Household; it is stored encrypted and used for nothing else.
APP_DATABASE_URL overrides DATABASE_URL if both are set, which is how the
live copy points at a store in a different region from the one Vercel attached
first. The database connection must be TLS; the app refuses a plain one.
The migration also creates a login role, saree_app, that owns nothing and
cannot bypass a row policy; every household table has one, so a query can only
reach the household the request is for. Running the app as that role is one
more command — it sets a password, writes APP_DATABASE_URL for it, and keeps
OWNER_DATABASE_URL for the scripts:
node scripts/app-role.mjs --no-vercel # drop --no-vercel to push it to Vercel too
node scripts/app-role.mjs --verify # proves the policies bite
Running as the owner instead still works, but the policies then only bind if
the owner lacks BYPASSRLS — Neon's neondb_owner has it, so there they
would not.
| Path | What |
|---|---|
web/ | The app: Next.js, App Router, Postgres through Drizzle. Its CLAUDE.md is the long-form record of every decision. |
web/drizzle/ | Migrations. 00xx are generated from src/db/schema.ts; 01xx are hand-written views and triggers, idempotent, re-applied every run. |
web/scripts/ | The migration runner, the invariants suite (143 assertions against a real database), the token generator and the contrast check. |
design/, design-v2/ | The canvases the screens were designed on, and the palette the tokens are generated from. |
npm run test:lib # money, hashing, link tokens
npm run test:invariants # needs DATABASE_URL (or OWNER_DATABASE_URL); leaves nothing behind
npm run test:contrast # every ink/ground pair, both themes