How aditya-kumar-2358/salt-and-story works
Salt & Story is a family recipe-preservation app: a user captures a memo or transcript, the backend transcribes audio and structures the words into a recipe, then the user edits, cooks from, and assembles recipes into a printable cookbook. The graph retains account controls, favorites, classics, narration, and photos as distinct capabilities. The README documents the service integrations; some internal links rely on imports or documented architecture because the relevant call sites were not excerpted.
Main entry points: main.py FastAPI service · api.ts API client · router.tsx App routes · pipeline.py Recipe processing
Components 21
Web experience
- App routes
frontend/src/router.tsx - Memo capture
frontend/src/pages/AddMemo.tsx - API client
frontend/src/api.ts - Sign-in state
frontend/src/auth.tsx
Recipe lifecycle
- Recipe library
frontend/src/pages/Library.tsx - Recipe view
frontend/src/pages/RecipePage.tsx - Cook mode
frontend/src/components/CookMode.tsx - Family classics
frontend/src/classics.ts - Recipe status polling
frontend/src/hooks.ts
AI and media
- FastAPI service
backend/app/main.py - Recipe processing
backend/app/pipeline.py - Speech transcription
backend/app/eleven.py - Recipe structuring
backend/app/llm.py - Narration service
backend/app/eleven.py
Accounts and storage
- Account controls
backend/app/auth.py - Runtime settings
backend/app/config.py - Recipe and user records
backend/app/models.py - Recipe photos
backend/app/photos.py
Cookbook publishing
- Book builder
frontend/src/pages/BookPage.tsx - Cookbook PDF
backend/app/pdf.py
Other components
- Family user
Connections 26
- Family user → App routes: opens
frontend/src/router.tsx - App routes → Memo capture: routes to
frontend/src/router.tsx - App routes → Recipe library: routes to
frontend/src/router.tsx - App routes → Recipe view: routes to
frontend/src/router.tsx - App routes → Book builder: routes to
frontend/src/router.tsx - Family user → Memo capture: records or enters
README.md - Memo capture → API client: submits memo
frontend/src/pages/AddMemo.tsx - Recipe library → API client: loads recipes
frontend/src/pages/Library.tsx - Recipe view → API client: reads and edits
frontend/src/pages/RecipePage.tsx - Recipe view → Cook mode: offers
frontend/src/pages/RecipePage.tsx - Memo capture → Family classics: offers samples
frontend/src/pages/AddMemo.tsx - API client → FastAPI service: requests
README.md - FastAPI service → Recipe processing: dispatches processing
backend/app/main.py - Recipe processing → Speech transcription: transcribes audio
backend/app/pipeline.py - Recipe processing → Recipe structuring: structures transcript
backend/app/pipeline.py - Recipe processing → Recipe and user records: updates recipe
backend/app/pipeline.py - Recipe structuring → Narration service: optionally narrates
- FastAPI service → Account controls: handles accounts
backend/app/main.py - Sign-in state → API client: signs in via
frontend/src/auth.tsx - FastAPI service → Recipe and user records: uses persistence
backend/app/main.py - FastAPI service → Recipe photos: handles photos
backend/app/main.py - Runtime settings → Recipe and user records: configures storage
backend/app/models.py - Book builder → API client: selects recipes
frontend/src/pages/BookPage.tsx - Book builder → Cookbook PDF: requests export
README.md - FastAPI service → Cookbook PDF: renders cookbook
backend/app/main.py - Recipe library → Recipe status polling: tracks progress
frontend/src/pages/Library.tsx