尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Turn photographs of handwritten family recipe cards into precise, modern recipes (grams, timings and substitutions for ingredients) shown beside the original scan.
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
Photograph a handwritten family recipe card. Get back a version you can cook
from — grams, minutes, degrees Celsius, and substitutes for ingredients that
are no longer sold — with the original scan beside it.
There is no database and no server-side account. Netlify is the only backend,
and its only job is to hold the Gemini key and make the call.檢視完整 README ↗Photograph a handwritten family recipe card. Get back a version you can cook from — grams, minutes, degrees Celsius, and substitutes for ingredients that are no longer sold — with the original scan beside it.
browser (React + Vite, on Netlify)
│
├── shrinks the photograph, stores the card in IndexedDB
│
├── POST /.netlify/functions/translate-background ──► Gemini
│ (background function, holds GEMINI_API_KEY) │
│ ▼
│ Netlify Blobs
│ (result, by job id)
│
└── polls GET /.netlify/functions/translation?job=… for the result
There is no database and no server-side account. Netlify is the only backend, and its only job is to hold the Gemini key and make the call.
A Gemini call on a photograph takes longer than a synchronous Netlify function
is allowed to run. So the request starts a background function, which answers
202 at once, does the work, and writes the result to Netlify Blobs under a
job id the browser generated. The browser polls for that id until it appears.
The job id is a random UUID, so a result is only reachable by whoever started it. Nothing is tied to an account, because there are none.
In one browser, on one device. Each card — the scan, the transcription and the translated recipe — is written to IndexedDB. That has consequences worth knowing before you rely on it:
Print or save a card as PDF if you want a copy that outlives the browser.
| Path | What it holds |
|---|---|
src/lib/store.ts | IndexedDB: every card lives here |
src/lib/image.ts | Shrinks a photograph before it is sent |
src/lib/api.ts | Starts a translation and polls for the result |
netlify/functions/translate-background.mts | Calls Gemini, writes to Blobs |
netlify/functions/translation.mts | Serves a result by job id |
netlify/lib/prompt.mts | The instructions and output schema Gemini follows |
netlify.toml | Build command, functions directory, single-page fallback |
One environment variable, set in the Netlify dashboard under Site configuration → Environment variables:
| Name | Value |
|---|---|
GEMINI_API_KEY | your key from Google AI Studio |
GEMINI_MODEL | optional; defaults to gemini-3.6-flash |
Do not prefix it with VITE_. Anything so prefixed is compiled into the
browser bundle and is public. This key is read inside the function only.
Model ids get retired. If translation starts failing with a 404 naming the
model, set GEMINI_MODEL to the replacement Google names in the error. No code
change or redeploy is needed.
npm install
cp .env.example .env # then put your real key in it
npm install -g netlify-cli
netlify dev
Use netlify dev, not npm run dev. Plain Vite serves the frontend but not
the functions, so translation will fail with a 404.
Netlify builds from main on every push. Nothing else to do.
Built:
Not built, and not possible without a backend:
If any of those matter later, they need a database again — Netlify Blobs plus an identity provider, or a hosted Postgres.