尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證正在載入完整 README。 以下為已儲存的摘錄。
Personal homebrewing journal: recipes, brew sessions, problems and lessons learned — so each
batch learns from the last one. See PLAN.md for the full product plan.檢視完整 README ↗Personal homebrewing journal: recipes, brew sessions, problems and lessons learned — so each batch learns from the last one. See PLAN.md for the full product plan.
Phases 1–3 are implemented:
Next.js 16 (App Router, Server Actions) · React 19 · TypeScript · Tailwind CSS 4 · PostgreSQL · Prisma 7 · Vitest
cp .env.example .env
docker compose up -d # Postgres on localhost:5432 (or point DATABASE_URL at your own)
npm install # also runs `prisma generate`
npm run db:migrate # create tables
npm run db:seed # optional: Sweet Stout recipe + brew #001 + starter ingredients
npm run dev # http://localhost:3000
| Script | |
|---|---|
npm run dev / build / start | Next.js |
npm run typecheck | Route type generation + tsc |
npm run lint | ESLint |
npm test | Unit tests (brewing math, calculators, inventory, CSV, scaling, search) |
npm run db:migrate | Create/apply a migration in development |
npm run db:deploy | Apply migrations in production |
npm run db:seed | Seed sample data (skipped if the DB already has data) |
Starter ingredients (166 malts, hops, yeasts, water salts and additives from the Thai shops WAS Homebrew and Craft Components) live in src/lib/catalog-data.ts. The seed adds them, and on an existing database the Ingredients page offers an Add them button that adds only the ones you don't have yet.
There is no login (single-user): anyone who has the app's address can see and change everything. Keep the address private, or put it behind your host's own access protection (e.g. Vercel Deployment Protection).
Vercel + Supabase:
| Vercel env var | Value |
|---|---|
DATABASE_URL | Supabase transaction pooler URL (port 6543) — used by the app |
DIRECT_URL | Supabase session pooler URL (port 5432) — used by migrations |
If you connect Supabase through Vercel's Supabase integration instead, nothing needs copying: the
app also reads the integration's POSTGRES_PRISMA_URL / POSTGRES_URL (app) and
POSTGRES_URL_NON_POOLING (migrations), and treats their sslmode=require as "encrypted,
certificate not verified" like psql does.
Supabase's direct host (db.<ref>.supabase.co) is IPv6-only and unreachable from Vercel. When the
migration URL points there, migrations use the session pooler instead (the pooled URL's host and
user on port 5432), so a P1001 "Can't reach database server at db.….supabase.co" no longer
happens.
Set the Build Command to prisma migrate deploy && next build so each deploy applies new
migrations first (a failed migration fails the deploy and the previous version stays live).
Set the function region to Singapore (sin1) to sit next to the database, and turn off
Supabase's Data API — the app doesn't use it.
prisma/schema.prisma data model (see PLAN.md §25)
src/lib/brewing.ts step definitions, formatting, ABV/volume math, validation
src/app/ingredients ingredient master
src/app/equipment equipment profiles
src/app/recipes recipe list/detail/editor + versioning actions
src/app/brews sessions, steps, problems, lessons (actions.ts has all mutations)
src/app/compare side-by-side brew comparison
src/app/lessons knowledge-base search (problems, lessons, notes)
src/components/line-chart dependency-free SVG line chart
src/lib/search.ts query parsing, filters, highlighting
src/lib/calc.ts IBU/SRM/OG/FG, water profile, efficiency, priming sugar
src/lib/inventory.ts stock ledger math and costing
src/lib/i18n translations: English text is the key, th.ts has the Thai;
getI18n() on the server, useI18n() in client components
src/app/inventory inventory page, stock card, inventory actions
Wrap UI text in t("…") (server: const { t } = await getI18n(), client: useI18n()), with
{placeholders} for values, and add the Thai to src/lib/i18n/th.ts. npm test fails if a
string in the source has no Thai translation or a translation drops a placeholder.