Side project · 2025
Cook Split
Scale the recipes, merge the grocery list, split the bill. For when six people cook dinner together.
- 57
- tests
- 0
- servers: the share link carries everything
Why
My friends and I cook together a lot, and every time it’s the same mess: someone scales a recipe in their head, two people buy garlic, and the Venmo math happens three days later in a group chat. This does all of it in one place.
Recipes to one grocery list
You pick from recipes we’ve made before (or paste a new one) and set how many people are eating. Every ingredient line gets parsed: fractions like 1 ½, ranges, can sizes like “1 (28 oz) can”, and “to taste”. Then everything is scaled to the headcount and merged across recipes, so garlic from the pasta and garlic from the stir-fry become one line, rounded up to amounts you can actually buy and grouped by store section. It never converts cups into ounces, because guessing the weight of a cup of something is how you end up with the wrong amount.
1 ½ cups grated parmesan → 1.5 cup parmesan, grated
1 (28 oz) can tomatoes → 1 can 28 oz tomatoes
4 cloves garlic, minced → 4 clove garlic, minced
salt to taste → — salt · to taste

Splitting the bill
Everyone enters what they paid. The split is even among the people who ate, all in whole cents so it always adds up exactly. Settling up uses the fewest possible payments: it finds groups of people whose balances cancel out and settles each group separately, then gives you Venmo links with the amount filled in.
Some things one person buys for themselves, like a big bag of rice they’ll keep, so any grocery item can be marked “not split” and it comes off that person’s receipt first.
// dp[m] = max number of zero-sum groups among the people in bitmask m.
// Fewest transfers = (people with a balance) − dp[everyone].
for (let m = 1; m <= full; m++) {
let best = 0
for (let i = 0; i < n; i++) if (m & (1 << i)) best = Math.max(best, dp[m ^ (1 << i)])
dp[m] = best + (sum[m] === 0 ? 1 : 0)
}
No backend
The whole dinner (recipes, people, payments) gets compressed into the share link itself, so you can send one link to the group chat and everyone sees the same thing, with no accounts and nothing stored on a server.