Sous is a cooking app for households. Everyone in the household shares one recipe box, meal plan, pantry and shopping list, and changes show up on everyone's devices as they happen.
This repository is the web app: an installable progressive web app (PWA) for phones and desktops. It needs the soupi API server behind it.
Recipes
- Import a recipe from a URL, or write one by hand. Imported ingredient lines are split into amount, unit and item. Recipe sites and blog posts both work; an "Optional:" section imports as optional ingredients, and when a post keeps its steps in a video, the video and full-recipe links go into the notes (soupi 2.8.0+). An imported recipe remembers the page it came from; a "from site.com" link at the bottom of the recipe page opens it.
- Reorder ingredients and steps in the editor by dragging their handles, or from the keyboard.
- Search by name, ingredient or notes (every word must match, so "chickpeas spinach" finds recipes with both; the results say which ingredients or notes matched), filter by tag, and sort: ready to cook (everything in stock first, then partly stocked, A→Z within each), A→Z, most made, or recently made.
- Tag recipes by picking from your household's tags or creating a new one; tags match regardless of capitalization, so there are no near-duplicates.
- Mark ingredients optional in the editor (lines that say "optional" start marked). Optional ingredients don't count as missing, so they don't hold back "ready to cook", and "shop for the plan" leaves them out. Needs soupi 2.7.0 or later.
- Each ingredient shows whether it's in the pantry, running low, on the shopping list, or missing. A low ingredient counts as in stock but is flagged. One tap adds a missing or low ingredient to the list.
- Tap an ingredient to fix how it matches the pantry: pick the right item ("scallions" are your "green onions") or mark it as something you always have (water). The fix applies to every recipe with that ingredient; review them in Settings → ingredient matches.
- Notes: free text kept with each recipe ("use half the chili"), written in the editor and shown on the recipe page.
- Cook mode (from the recipe page or its ⋯ menu) shows one step at a time in large type, with the recipe's notes a tap away. Ingredients in the step are underlined; tap one to see its full line and amount at the chosen scale.
- Times in a step ("simmer 10 minutes", "bake 25-30 min") start a timer when tapped; a range uses the shorter time. Several timers can run at once, they keep running when you leave cook mode or reload the page (or the phone closes Sous in the background), and each rings an alarm when it ends. Tap a timer to add a minute or pause it; "+1 min" on a finished timer runs it one more minute. Cook mode keeps the screen awake.
- Timer alerts: a timer that ends while Sous is closed sends a notification to the device that started it; tapping it opens the recipe. The first timer asks for notification permission, and Settings → timer alerts turns them on or off for this device. On iPhone and iPad this needs Sous added to the Home Screen. Needs soupi with web push configured (see Self-hosting).
- Scale a recipe from ¼ to 3×. Ingredient amounts and servings update, shown as fractions.
- "I made this" records a rating, marks the ingredients you used up as out of stock or running low, can add a dated line to the recipe's notes ("Nov 17: needed 5 more minutes"), and removes the recipe from the meal plan. Notes need soupi 2.6.0 or later.
Meal plan
- Add days and put recipes on them. Each recipe shows how much of it the pantry covers.
- Plan a meal without a recipe ("tacos this week"): give it a name and pick what it needs from the pantry, or add new pantry items on the spot. No amounts; items can be optional. It shows on the plan like a recipe, counts toward "shop for the plan", and "I made this" updates the pantry. Afterwards it's offered again under "recent meals" (dismiss one you don't want). Needs soupi 2.9.0 or later.
- "Shop for the plan" gathers what the upcoming recipes and meals need and the pantry doesn't have, merged across recipes. Missing items start checked and running-low ones unchecked; add them all to the shopping list in one tap.
Pantry
- Items grouped by category, with stock status (in, low or out), quantity and expiration date. Items expiring soon are flagged.
- Mark items as staples. A staple that runs out goes on the shopping list automatically.
Shopping list
- Grouped by category. Add items directly or pick them from the pantry.
- Shopping mode: check items off as you get them (which marks them in stock), then clear the checked ones.
- Edit mode lists everything you've ever bought, with a search. If what you typed isn't there yet, "add" opens the new-item sheet with the name filled in.
Household
- Share your household with a QR code or join code. Others join by scanning it or typing it in.
- Reorder, add, rename and remove categories, and mark categories as non-food.
- Every change syncs live to the other members.
- Light, dark, or follow the device. The choice is saved to your account.
Sign-in is by email and password.
Offline: your household's data is kept on the device, so it shows at once. If the signal drops while Sous is open (in a store, say), the shopping list keeps working: checking items off, unchecking them and clearing checked items apply at once and sync, in order, when the connection is back, even if the phone closed Sous in between. Adding or editing items needs a connection. Starting Sous needs one too, because sign-in does; with none, it says so and opens when the signal returns. Signing out removes the saved data from the device.
Known issue: since iOS 27.2, the app added to the Home Screen shows a frosted, dark band over the status bar. That's an iOS bug (WebKit 301994), tracked in #58.
browser (sous-web) ──HTTPS──▶ soupi API ──▶ Postgres
│ │
└──── Clerk (sign-in) ◀──┘
- The browser calls soupi directly, with the user's Clerk session token.
- soupi pushes changes back over a Server-Sent Events stream, and the app refreshes the affected data.
- sous-web is a static build served by nginx. It has no server-side code.
You need Node 22, a running soupi (see its README), and the publishable key of the Clerk application soupi uses.
npm install
cp .env.example .env.local # fill in the two values below
npm run dev # http://localhost:5173| Variable | Description |
|---|---|
VITE_CLERK_PUBLISHABLE_KEY |
Publishable key of the Clerk application soupi uses. |
VITE_API_BASE_URL |
soupi's URL, such as http://localhost:8080. The browser calls it directly. |
If soupi sets CORS_ORIGINS, include http://localhost:5173.
Scanning a join code needs camera access, which browsers allow only on HTTPS or
localhost.
Deploy soupi first: sous-web needs its public URL at build time.
docker-compose.yml builds the app and serves it with nginx (service web), with an
optional bundled Cloudflare Tunnel
(service tunnel). One env file defines one environment, and names are suffixed
with its ENV, so several environments can run on one host.
-
Copy the template and fill it in:
cp .env.deploy.example .env.prod
Set
ENV=prod,VITE_CLERK_PUBLISHABLE_KEY,VITE_API_BASE_URL(soupi's public URL) andWEB_PORT(the host port, bound to127.0.0.1). -
Build and start it. Pass
--env-fileon everydocker composecommand.docker compose --env-file .env.prod up -d --build # with the tunnel docker compose --env-file .env.prod up -d --build web # without it
-
Serve it over HTTPS, which installing the app and scanning join codes require. Either:
- set
TUNNEL_TOKENto a Cloudflare Tunnel token and route the tunnel's public hostname tohttp://sous_web_<ENV>_app:80, or - put your own reverse proxy in front of
127.0.0.1:<WEB_PORT>.
- set
-
Add this URL to soupi's
CORS_ORIGINSand restart soupi'sapiservice. -
Optional, for timer alerts: set
APP_URL(this URL) and a VAPID key pair in soupi (see its configuration). sous-web needs no extra settings: it reads soupi's public key at runtime, and alerts stay off while soupi has none.
The VITE_* values are compiled into the build. Changing them, or pulling new code,
means rebuilding:
docker compose --env-file .env.prod up -d --build webOpen apps pick up a new build on their next load.
| Command | What it does |
|---|---|
npm run dev |
Dev server with hot reload |
npm run build |
Type-check and build to dist/ |
npm run preview |
Serve the production build locally |
npm run lint |
ESLint |
npm run format |
Prettier |
Stack: Vite, React 19, TypeScript, TanStack Query, React Router, Clerk, and vite-plugin-pwa, with plain CSS.
src/pages/ One component per screen
src/components/ App shell, bottom sheets, icons, QR scanner
src/hooks/ Data queries and mutations, live-update listener
src/lib/ API client, endpoint functions, types, helpers
src/index.css Design tokens (colors, font)
src/ui.css Layout and shared components
public/push-sw.js Timer alert push handling, imported into the generated service worker
Timers live in src/lib/timers.ts (saved in localStorage), and timer alerts
(push subscription and registration with soupi) in src/lib/push.ts.
Data is fetched and cached with TanStack Query, keyed by household. When a live
update arrives, src/hooks/useHouseholdEvents.ts refreshes the matching queries.
API types in src/lib/types.ts mirror soupi's data model: when you add a field,
add it to both.
MIT. See LICENSE.