How sbmagar13/recipe-jar works
Recipe Jar is a local-first recipe-saving and cooking app. The main workflow is to enter a recipe URL or dish, fetch and parse recipe content, review it as a clean card, then save it in the browser’s jar. Other major branches include manual and photo entry, recipe search and sharing, pantry and weekly shopping, and offline use. The README documents several capabilities whose implementation was not sampled; those are represented at their supported source paths, with uncertain internal connections omitted.
Main entry points: App.svelte App and navigation · RecipeView.svelte Recipe card and cook mode · db.ts Recipe database · ShopPlan.svelte Weekly meal and shop plan
Components 26
Recipe intake
- App and navigation
src/App.svelte - URL recipe parser
src/lib/parse.ts - Dish search
src/lib/sitesearch.ts - Page text rescue
src/lib/rescue.ts - YouTube import
src/lib/youtube.ts - Browser bookmarklet
src/lib/bookmarklet.ts - Manual and text entry
src/lib/components/ManualEntry.svelte - Pasted text parser
src/lib/textparse.ts - On-device photo OCR
src/lib/ocr.ts
Recipe experience
- Recipe card and cook mode
src/lib/components/RecipeView.svelte - Quantity math
src/lib/quantity.ts - Step and timer helpers
src/lib/steps.ts - Recipe link sharing
src/lib/share.ts
Personal kitchen
- Saved recipe jar
src/lib/components/JarView.svelte - Recipe database
src/lib/db.ts - Weekly meal and shop plan
src/lib/components/ShopPlan.svelte - Merged ingredients
src/lib/mergelist.ts - Shopping list
src/lib/components/ShoppingList.svelte - Pantry
src/lib/components/PantryView.svelte
Local platform
- Browser persistence
src/lib/storage.ts - Offline app updates
src/lib/pwa.svelte.ts - Minimal telemetry
src/lib/telemetry.ts
Service endpoints
- Fetch proxy
functions/api/proxy.ts - Caller provenance check
functions/api/_caller.ts - Self-host server
server/server.mjs
Other components
- Recipe user
Connections 28
- Recipe user → App and navigation: uses
README.md - App and navigation → URL recipe parser: parses fetched pages
src/App.svelte - App and navigation → Dish search: searches dishes
src/App.svelte - App and navigation → Page text rescue: rescues page text
src/App.svelte - App and navigation → YouTube import: imports video recipes
src/App.svelte - App and navigation → Browser bookmarklet: accepts imports
src/App.svelte - App and navigation → Manual and text entry: opens entry
src/App.svelte - Manual and text entry → Pasted text parser: parses pasted text
src/lib/components/ManualEntry.svelte - Manual and text entry → On-device photo OCR: recognizes photos
src/lib/components/ManualEntry.svelte - App and navigation → On-device photo OCR: recognizes photo
src/App.svelte - App and navigation → Fetch proxy: fetches pages through
README.md - Recipe card and cook mode → Quantity math: scales ingredients
src/lib/components/RecipeView.svelte - Recipe card and cook mode → Step and timer helpers: uses cook steps
src/lib/components/RecipeView.svelte - Recipe card and cook mode → Recipe link sharing: creates share links
src/lib/components/RecipeView.svelte - App and navigation → Recipe card and cook mode: shows recipe card
src/App.svelte - App and navigation → Recipe database: saves and looks up
src/App.svelte - App and navigation → Saved recipe jar: opens saved jar
src/App.svelte - Saved recipe jar → Recipe database: reads and exports
src/lib/components/JarView.svelte - Saved recipe jar → Browser persistence: requests persistence
src/lib/components/JarView.svelte - Weekly meal and shop plan → Recipe database: loads recipes
src/lib/components/ShopPlan.svelte - Weekly meal and shop plan → Merged ingredients: merges ingredients
src/lib/components/ShopPlan.svelte - Weekly meal and shop plan → Shopping list: renders list
src/lib/components/ShopPlan.svelte - App and navigation → Pantry: opens pantry
src/App.svelte - Recipe database → Browser persistence: requests persistence
src/lib/db.ts - Fetch proxy → Caller provenance check: checks caller
functions/api/proxy.ts - Recipe user → Self-host server: self-hosts app
README.md - App and navigation → Minimal telemetry: reports anonymous events
src/main.ts - App and navigation → Offline app updates: initializes offline updates
src/main.ts