Seedworks Labs Wiki The engineering referenceStudio website ↗
Banana

File & export inventory

Source modules and named exports, grouped by implementation layer.

Engineering documentation • Reviewed 2026-11-29

How to use this index#

This is a static inventory of 171 TypeScript source modules in Banana/src/, generated from the local working tree on 29 November 2026. It complements the authored architecture/feature chapters; it does not replace their explanations.

Click a file to open its implementation. Named exports are discovery aids, not a stable public SDK. Interfaces/types/constants are included; re-exports and complex declarations may require opening the file. Local helpers are intentionally not advertised as public functions. Large translation catalog values are never copied.

ai#

AI transport, prompts and validated candidate parsing, plus speech-related integration boundaries in Banana.

File Named exports / entry points
ai/agent.ts AgentRunMeta, AgentResult, planEditUserMessage, runPlanEdit, runRecipeExtraction, runNewspaperExtraction
ai/android-speech-recognition.ts TranscriptionResult, LiveTranscriptionHandle, LiveTranscriptionOptions, selectSpeechLocale, isSpeechRecognitionAvailable, supportsRecordedTranscription, requestSpeechRecognitionPermission, startLiveTranscription
ai/openai-compatible.ts chatCompletionsUrl, createOpenAiCompatibleProvider
ai/planner.ts AiParseError, PlanEditContext, buildPlanEditContext, extractJsonObject, parsePlanEditResponse, parseRecipeExtractionResponse, parseNewspaperResponse
ai/prompts.ts PromptTemplate, PLAN_EDIT_PROMPT, RECIPE_EXTRACTION_PROMPT, NEWSPAPER_PROMPT
ai/provider.ts AiRole, AiMessage, AiCompletionRequest, AiCompletion, AiProviderConfig, AiProvider, AiProviderError
ai/schemas.ts AgentRecipeIngredient, AgentRecipe, AgentShoppingItem, PlanEditAction, PlanEditResult, RecipeExtractionResult, AgentDeal, NewspaperExtractionResult, parseAgentRecipe, parsePlanEditValue, parseRecipeExtractionValue, parseNewspaperValue
ai/speech-recognition.ts isSpeechRecognitionAvailable, supportsRecordedTranscription, requestSpeechRecognitionPermission, startLiveTranscription
ai/use-leaflet-recording.android.ts useLeafletRecording
ai/use-leaflet-recording.ts useLeafletRecording

app#

Expo Router routes, layouts and screen composition. Follow the provider calls to find state mutations; route files are not independent business-rule APIs.

File Named exports / entry points
app/(tabs)/_layout.tsx default
app/(tabs)/deals.tsx default
app/(tabs)/index.tsx default
app/(tabs)/recipes.tsx default
app/(tabs)/settings.tsx default
app/(tabs)/shopping.tsx default
app/_layout.tsx default
app/about.tsx default
app/ai-provider.tsx default
app/backup.tsx default
app/dictation-settings.tsx default
app/ingredients.tsx default
app/pantry.tsx default
app/preferences-defaults.tsx default
app/recipe/[id].tsx default
app/recipe/new.tsx default
app/seedworks.tsx default
app/shops.tsx default
app/tutorial.tsx default
app/welcome.tsx default
app/whats-new.tsx default

components#

Reusable UI, forms, charts and lifecycle coordinators. Platform suffixes select implementations at bundle time.

File Named exports / entry points
components/animated-number.tsx AnimatedNumber
components/app-dialog.tsx AppDialog
components/banana-logo.tsx BananaLogo
components/batch-meal-summary.tsx BatchMealSummary
components/custom-tab-bar.tsx CustomTabBar
components/empty-state.tsx EmptyState
components/fade-in.tsx FadeIn
components/household-settings.tsx HouseholdSettings
components/keyboard-aware-scroll-view.tsx KeyboardAwareScrollViewProps, KeyboardAwareScrollView
components/loading-screen.tsx LoadingScreen
components/number-field.tsx parseNumber, NumberField
components/option-field.tsx Option, OptionField
components/release-note-text.tsx ReleaseNoteText
components/screen-fade.tsx ScreenFade
components/screen-toast.tsx ScreenToast
components/scrollable-text-input.tsx ScrollableTextInput
components/share-intent-import.tsx ShareIntentImport
components/stat-card.tsx StatTone, Tone, StatCard
components/update-notifier.tsx UpdateNotifier
components/update-settings.tsx UpdateSettings

config#

Release, tutorial, repository and environment/build-mode metadata.

File Named exports / entry points
config/release-info.ts ReleaseInfo, releaseInfo
config/repository.ts GITHUB_OWNER, GITHUB_REPO, GITHUB_REPO_URL, GITHUB_API_LATEST_RELEASE_URL
config/tutorial.ts TutorialPage, tutorialPages
config/whats-new.ts WhatsNewEntry, whatsNew

data#

React context orchestration and derived selectors connecting repositories, services and screens.

File Named exports / entry points
data/DataProvider.tsx WeekPlan, ManualShoppingItemInput, RecipeIngredientDraft, RecipeStepDraft, AgentOutcome, RecipeDictationOutcome, NewspaperOutcome, AppData, DataProvider, useAppData
data/selectors.ts buildRecipeSummaries, buildIngredientNamesByRecipe, IngredientFacts, buildIngredientFactsByRecipe, buildPlannerRecipes, buildPlannedMeals, recipeStepsFor, recipeIngredientsFor

database#

Local SQLite schema, migration and repository ownership. This is where durable local reads/writes and row mapping belong.

File Named exports / entry points
database/aiRuns.ts AiRunInput, getAiRuns, getAiRunsByWeek, createAiRun
database/aiState.ts DEFAULT_AI_STATE, getAiState, updateAiState, clearAiCredentials, isLlmConfigured
database/batch-meals.ts LeftoverMealInput, setMealLeftovers, unlinkMealLeftovers
database/change-count.ts getChangeCount
database/data-contexts.ts switchDataContext
database/database.ts getDatabase, closeDatabase, resetDatabase, migrate
database/dealMatches.ts getMatchesForDeal, getMatchesForIngredient, getAllDealMatches, upsertDealMatch, ensureDealMatch, setDealMatchStatus, deleteDealMatch
database/deals.ts DealInput, getAllDeals, getDealsByStore, getCurrentDeals, getDeal, createDeal, replaceStoreDeals, deleteDeal
database/dictation-settings.ts DEFAULT_DICTATION_SETTINGS, getDictationSettings, updateDictationSettings
database/homes.ts HomeInput, getAllHomes, getHome, getDefaultHome, createHome, updateHome, deleteHome
database/ingredientAliases.ts getAllIngredientAliases, getAliasesForIngredient, addIngredientAlias, deleteIngredientAlias
database/ingredients.ts IngredientInput, getAllIngredients, getIngredient, getIngredientsByCategory, createIngredient, updateIngredient, deleteIngredient
database/migrations.ts Migration, MIGRATIONS
database/onboarding.ts getWelcomeSeen, setWelcomeSeen
database/pantry.ts PantryItemInput, getAllPantryItems, getPantryItemsByHome, getPantryItem, upsertPantryItem, setPantryLevel, setPantryExpiry, deletePantryItem
database/preferences.ts DEFAULT_PREFERENCES, getPreferences, updatePreferences
database/recipe-uses.ts getRecipeUsesBeforeWeek
database/recipeIngredients.ts RecipeIngredientInput, getRecipeIngredients, getAllRecipeIngredients, createRecipeIngredient, updateRecipeIngredient, deleteRecipeIngredient, reorderRecipeIngredients
database/recipeSteps.ts RecipeStepInput, getRecipeSteps, getAllRecipeSteps, createRecipeStep, updateRecipeStep, deleteRecipeStep, reorderRecipeSteps
database/recipeTags.ts getRecipeTags, getAllRecipeTags, addRecipeTag, setRecipeTags, deleteRecipeTag
database/recipes.ts RecipeInput, getAllRecipes, getRecipe, createRecipe, updateRecipe, setRecipeFavorite, deleteRecipe
database/release-notes-cache.ts readReleaseNotesCache, writeReleaseNotesCache
database/schema.ts storesTableSql, SCHEMA_SQL, SEED_STORES_SQL
database/scrapeRuns.ts getScrapeRuns, getLastScrapeRun, createScrapeRun
database/settings.ts DEFAULT_SETTINGS, getSettings, updateSettings, clearLocalUsername
database/shoppingChecks.ts shoppingCheckKey, saveShoppingCheck, getShoppingChecks
database/shoppingItems.ts ShoppingItemInput, getShoppingItems, getShoppingItem, createShoppingItem, updateShoppingItem, setShoppingItemChecked, deleteShoppingItem, replaceGeneratedShoppingItems, clearGeneratedShoppingItems, reorderShoppingItems
database/slots.ts SlotInput, getSlotsByWeek, getSlot, getRecipeHistory, createSlot, updateSlot, setSlotRating, markSlotCooked, deleteSlot, recordSlotEvent, getSlotEvents
database/stores.ts getAllStores, getEnabledStores, getStore, getStoreByStoreId, setStoreEnabled, setStoreOffersUrl, markStoreScraped, createStore
database/syncMeta.ts getSyncMeta, setSyncMeta, removeSyncMeta, authStorage
database/syncState.ts SYNC_STATUSES, SyncStatus, SyncState, DEFAULT_SYNC_STATE, getSyncState, updateSyncState
database/update-preferences.ts UpdatePreferences, getUpdatePreferences, saveUpdatePreferences
database/weekDayBudgets.ts getWeekDayBudgets, upsertWeekDayBudget, setWeekDayHome, setWeekDayMealSettings, deleteWeekDayBudgets
database/weeks.ts getAllWeeks, getWeek, getWeekByStartDate, createWeek, ensureWeek, setWeekStatus, updateWeekNotes, deleteWeek

deals#

Retailer providers, fetching, parsers and ingredient matching. The UI reads persisted offer results.

File Named exports / entry points
deals/aldi.ts parseAldi, ALDI_PROVIDER
deals/billa.ts BILLA_API_URL, BILLA_PAGE_SIZE, loadBillaPages, parseBilla, BILLA_PROVIDER
deals/fetcher.ts SCRAPE_USER_AGENT, OpenStoreFetcherResult, isPathAllowed, openStoreFetcher
deals/hofer.ts parseHofer, HOFER_PROVIDER
deals/html.ts decodeEntities, stripTags, toIsoDate
deals/index.ts STALE_AFTER_HOURS, DealRefreshStoreResult, DealRefreshOptions, isStoreStale, refreshDeals
deals/lidl.ts parseLidl, LIDL_PROVIDER, LIDL_HU_PROVIDER
deals/matcher.ts MatcherIngredient, IngredientMatch, normalizeTerm, tokenize, matchIngredients, bestIngredientMatch
deals/providers.ts providerFor, isStoreSupported
deals/spar.ts SPAR_API_URL, SPAR_HITS_PER_PAGE, loadSparPages, parseSpar, SPAR_PROVIDER
deals/types.ts ParsedDeal, FetchedDealPage, FetchPageResult, PageFetcher, StoreLoader, StoreParser, DealsProvider, FetchResponseLike, FetchInitLike, FetchLike

dictation#

Local speech-engine/model lifecycle. Native implementations and generic fallbacks have different capabilities.

File Named exports / entry points
dictation/model-catalog.ts WhisperModel, WHISPER_MODELS, getWhisperModel
dictation/model-storage.ts supportsModelDownloads, isModelInstalled, verifiedModelPath, acquireModel, deleteModel, downloadModel, cancelModelDownload
dictation/native-speech.android.ts nativeSpeech, isNativeSpeechAvailable
dictation/native-speech.ts nativeSpeech, isNativeSpeechAvailable
dictation/whisper.android.ts isWhisperAvailable, prepareWhisper, startWhisperTranscription
dictation/whisper.ts isWhisperAvailable, prepareWhisper, startWhisperTranscription

i18n#

Translation catalogs, locale context and language types. Catalog constants are data, not callable functions.

File Named exports / entry points
i18n/de.ts de
i18n/en.ts en, TranslationKey
i18n/hu.ts hu
i18n/index.tsx translate, I18nProvider, useI18n
i18n/types.ts LANGUAGES, Language, DEFAULT_LANGUAGE, isLanguage

models#

Domain interfaces, input types and enum-like values shared by repositories, services and UI.

File Named exports / entry points
models/dictation.ts DICTATION_ENGINES, DictationEngine, WHISPER_MODEL_IDS, WhisperModelId, DICTATION_LANGUAGES, DictationLanguage, DictationSettings
models/index.ts THEME_MODES, ThemeMode, MEAL_TYPES, MealType, MAIN_MEAL_TYPES, MEAL_MODES, MealMode, EATING_OUT_TAG, MealSetting, WEEK_DAYS, WeekDay, DAY_MODES, DayMode, WEEK_STATUSES, WeekStatus, SLOT_KINDS, SlotKind, PANTRY_LEVELS, PantryLevel, DIETS, Diet, INGREDIENT_CATEGORIES, IngredientCategory, UNITS, Unit, COUNTRIES, Country, CURRENCIES, Currency, STORE_IDS, StoreId, STORE_COUNTRIES, STORE_CURRENCIES, RECIPE_SOURCES, RecipeSource, MATCH_STATUSES, MatchStatus, SCRAPE_RUN_STATUSES, ScrapeRunStatus, AI_RUN_KINDS, AiRunKind, AI_RUN_STATUSES, AiRunStatus, SLOT_EVENT_KINDS, SlotEventKind, Settings, AiState, Preferences, Home, Ingredient, IngredientAlias, Store, Recipe, RecipeIngredient, RecipeStep, RecipeTag, PantryItem, Week, WeekDayBudget, Slot, SlotEvent, ShoppingItem, Deal, DealMatch, ScrapeRun, AiRun
models/recipe-use.ts RecipeUse

services#

Domain rules and calculations, plus explicitly named platform effects such as notifications/installers. Read imports before assuming purity.

File Named exports / entry points
services/batch-cooking-service.ts BatchCookingPlan, planBatchCooking, BatchMealDetails, batchMealDetails, LeftoverTarget, leftoverSources, batchCookServings, assertBatchHomeChange, LeftoverLinkPlan, planLeftoverLink
services/deal-service.ts DealLike, DealMatchLike, IngredientDeal, isDealActive, savingsCents, savingsPercent, bestDealForIngredient, bestDealByIngredient, totalSavingsCents
services/discovery-service.ts DiscoveryRecipe, DiscoveryOptions, DiscoverySuggestion, recommendRecipes
services/expiry-service.ts defaultShelfLifeDays, shelfLifeDaysFor, estimateExpiryDate, ExpiryItem, ExpiringIngredient, expiringIngredients, expiringIngredientIds, isExpired, soonLabel, freshToday
services/meal-settings-service.ts parseMealSettings, mealSettingsForDay, replaceMealSetting, allowsRecipeForMeal
services/notifications.ts requestNotificationPermission, notifyPlanUpdated
services/notifications.web.ts requestNotificationPermission, notifyPlanUpdated
services/pantry-service.ts PantryLookupItem, RequiredQuantity, findPantryItem, shortage, StockingSuggestion, stockingSuggestions, pantryLevelFor, PantryCoverage, pantryCoverage, canCookFromPantry
services/plan-edit-service.ts DEFAULT_MEAL_TYPE, slotKey, slotFor, isEditableSlot, editableSlotsForDays, daysWithMeals, markCookedTarget, replacementTargets, mealSummary
services/planning-service.ts PlannerRecipe, PlannerDay, PinnedWish, ProposedSlot, PlanWeekInput, PlanProposal, scoreRecipe, planWeek, planGap
services/preference-service.ts PreferenceRecipe, PreferenceContext, normalizeTerm, containsAllergen, isDisliked, satisfiesDiet, isRecipeAllowed, filterRecipesForPreferences, isWithinBudget, BudgetStatus, budgetStatus, budgetRemainingCents
services/recipe-rotation-service.ts recipeRecencyPenalties, recipeRotationRank
services/recipe-service.ts recipeMealTypes, isEatingOut, RecipeSummary, RatingEntry, RecipeStats, totalMinutes, averageRating, computeRatings, RecipeFilter, matchesQuery, filterRecipes
services/shopping-list-service.ts PlannedIngredient, PlannedMeal, ShoppingLine, ShoppingCategoryGroup, ShoppingList, ShoppingListInput, AISLE_ROUTE, aisleOrder, dimensionOf, aggregateIngredients, buildShoppingList, finalizeShoppingList, addManualItem
services/ticket-service.ts TicketIngredient, TicketMatch, parseTicketText, matchTicketLines
services/week-service.ts DayPlan, DayBudgetLike, DefaultDayBudget, isPastPlanDay, weekEndDate, weekRange, buildDayPlans, slotsByDay, findSlot, WeekProgress, weekProgress
services/wish-recipe-service.ts WishRecipeIngredient, WishRecipeLine, wishRecipeShoppingLines

sync#

Remote authentication, synchronization, serialization, identity and scheduling. These modules connect local rows to the central backend.

File Named exports / entry points
sync/cloud.ts SeedWorksConfig, SEEDWORKS_CLOUD, seedWorksConfig
sync/engine.ts SyncResult, SyncOptions, syncNow
sync/households.ts HouseholdStatus, resolveDataIdentity, getHouseholdStatus, inviteHousehold, respondHouseholdInvitation, leaveHousehold
sync/realtime.ts subscribeToDataChanges
sync/supabase.ts BananaClient, getClient, signInToSeedWorks, getSignedInUser, signOutOfSeedWorks
sync/tables.ts SyncTable, SYNC_TABLES, SYNC_SETTINGS_KEYS, syncTriggersSql
sync/transport.ts RemoteRow, RemoteSetting, RemoteTombstone, SeedProfile, SyncTransport, createSupabaseTransport
sync/use-cloud-sync.ts useCloudSync

theme#

Material theme configuration, semantic tokens, platform font setup and provider hooks.

File Named exports / entry points
theme/dark.ts darkTheme
theme/fonts.ts buildFontScale
theme/index.tsx BananaThemeProvider, useAppTheme
theme/light.ts lightTheme
theme/navigation.ts buildNavigationTheme
theme/semantic.ts SemanticColors, buildSemanticColors
theme/theme.ts buildBananaTheme
theme/tokens/chart.ts chartPaletteLight, chartPaletteDark, ChartColor
theme/tokens/colors.ts SurfaceColors, BorderColors, TextColors, BrandScale, SemanticTokens, ColorTokens, lightColors, darkColors
theme/tokens/elevation.ts ElevationLevel, ElevationScale, buildElevation
theme/tokens/index.ts See implementation / re-exports
theme/tokens/radii.ts RadiiScale, radii
theme/tokens/spacing.ts SpacingScale, spacing
theme/tokens/typography.ts TypeStyle, TypographyScale, Fonts, fonts, typography
theme/types.ts ThemeMode, ThemePreference, ThemeColors, BrandTokens, BananaTheme

updates#

Published release-note retrieval, version checks and platform-specific installation.

File Named exports / entry points
updates/check-for-update.ts checkForUpdate
updates/install-update.android.ts installUpdate
updates/install-update.ts installUpdate
updates/install-update.web.ts installUpdate
updates/release-notes.ts ReleaseRepository, PublishedNote, extractReleaseNotes, compareStableVersions, visibleNotes, normalizeReleaseNotes, mergeReleaseNotes, fetchReleaseNotePayload
updates/update-policy.ts AppUpdate, availableUpdate
updates/use-release-notes.ts useReleaseNotes

utils#

Formatting, portable helpers, attachments and backup/restore boundaries. Some utilities intentionally perform I/O.

File Named exports / entry points
utils/backup.ts BACKUP_MIME_TYPE, createBackupFile, shareBackup, restoreFromBackup, pickBackupFile
utils/currency.ts DEFAULT_CURRENCY, CURRENCY_LABELS, currencySymbol, currencyExponent, toMinorUnits, fromMinorUnits, formatCents, formatCentsCompact, parseDecimal, parseAmountToCents, savingsPercent
utils/date.ts DATABASE_NAME, BACKUP_EXTENSION, STORE_DATE_FORMAT, STORE_TIMESTAMP_FORMAT, isoNow, todayDate, addDays, weekStart, WeekDate, weekDates, weekDayIndex, formatDate, formatMinutes
utils/labels.ts MEAL_TYPE_LABELS, WEEK_DAY_LABELS, WEEK_DAY_SHORT_LABELS, DAY_MODE_LABELS, DIET_LABELS, PANTRY_LEVEL_LABELS, CATEGORY_LABELS, UNIT_LABELS, COUNTRY_LABELS, STORE_LABELS, mealTypeLabel, weekDayLabel, categoryLabel, unitLabel
utils/paths.ts toFileUri, toFilePath
utils/shopping-text.ts ShoppingTextOptions, formatShoppingListText
utils/units.ts UnitDimension, unitDimension, baseUnit, toBase, fromBase, canMerge, convert
utils/uuid.ts newUuid