Seedworks Labs Wiki The engineering referenceStudio website ↗
Coconut

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 205 TypeScript source modules in Coconut/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.

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)/index.tsx default
app/(tabs)/settings.tsx default
app/(tabs)/shared.tsx default
app/(tabs)/statistics.tsx default
app/(tabs)/transactions.tsx default
app/_layout.tsx default
app/about.tsx default
app/auth/callback.tsx default
app/budget-transactions/[budgetId].tsx default
app/budget/[id].tsx default
app/budget/new.tsx default
app/fixed-expense/[id].tsx default
app/fixed-expense/new.tsx default
app/greeter.tsx default
app/income/[id].tsx default
app/income/new.tsx default
app/monthly-history.tsx default
app/monthly-report/[monthKey].tsx default
app/planning/backup.tsx default
app/planning/budgets.tsx default
app/planning/close-month.tsx default
app/planning/fixed-expenses.tsx default
app/planning/month.tsx default
app/planning/reserve.tsx default
app/planning/subscriptions.tsx default
app/shared/balances.tsx default
app/shared/expense.tsx default
app/shared/report/[id].tsx default
app/subscription/[id].tsx default
app/subscription/new.tsx default
app/sync.tsx default
app/transaction/[id].tsx default
app/transaction/new.tsx default
app/tutorial.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/account-bubble.tsx AccountBubble
components/amount-input.tsx AmountInput
components/animated-number.tsx AnimatedNumber
components/app-dialog.tsx AppDialog
components/attachment-field.tsx AttachmentField
components/auto-onboarding.tsx AutoOnboarding
components/budget-form.tsx BudgetDraft, BudgetForm
components/budget-select.tsx BudgetSelect
components/cloud-change-sync.tsx CloudChangeSync
components/coconut-logo.tsx CoconutLogo
components/custom-tab-bar.tsx CustomTabBar
components/date-field.tsx DateField
components/empty-state.tsx EmptyState
components/fade-in.tsx FadeIn
components/fixed-expense-form.tsx FixedExpenseDraft, FixedExpenseForm
components/hosted-web-gate.tsx HostedWebGate
components/hosted-web-gate.web.tsx HostedWebGate
components/hosted-web-sync.tsx HostedWebSync
components/hosted-web-sync.web.tsx HostedWebSync
components/income-form.tsx IncomeForm
components/keyboard-aware-scroll-view.tsx KeyboardAwareScrollViewProps, keyboardScrollDelta, KeyboardAwareScrollView
components/loading-screen.tsx LoadingScreen
components/month-closing-banner.tsx MonthClosingBanner
components/month-field.tsx MonthField
components/month-planning-editor.tsx MonthPlanningMode, MonthPlanCommit, MonthPlanningEditor
components/month-planning-overlay.tsx MonthPlanningOverlay
components/month-progress-bar.tsx MonthProgressBar
components/month-switcher.tsx MonthSwitcher
components/monthly-spend-chart.tsx MonthlySpendPoint, MonthlySpendChart
components/rating-selector.tsx RatingSelector, ratingLabel, RatingLegend
components/release-note-text.tsx ReleaseNoteText
components/reorderable-list.tsx ReorderHandle, ReorderableList, DragHandle
components/savings-trend-chart.tsx SavingsTrendPoint, SavingsTrendChart
components/screen-fade.tsx ScreenFade
components/screen-toast.tsx ScreenToast
components/shared-expense-trace.tsx SharedExpenseTraceLabel
components/shared-header-menu.tsx SharedHeaderMenuProps, SharedHeaderMenu
components/spending-performance-chart.tsx SpendingPerformanceChart
components/stat-card.tsx Tone, StatCard
components/subscription-form.tsx SubscriptionForm
components/transaction-details.tsx TransactionDetails
components/transaction-form.tsx TransactionForm
components/update-available-dialog.tsx UpdateAvailableDialog
components/update-notifier.tsx UpdateNotifier

config#

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

File Named exports / entry points
config/cloud.ts SEEDWORKS_CLOUD, SEEDWORKS_ACCOUNT_URL, CloudConfigInput, ResolvedCloudConfig, resolveCloudConfig
config/hosted-web.ts HOSTED_WEB
config/hosted-web.web.ts HOSTED_WEB
config/oauth.ts COCONUT_OAUTH
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.de.ts whatsNewDe
config/whats-new.hu.ts whatsNewHu
config/whats-new.ts WhatsNewEntry, whatsNew, whatsNewByLanguage

data#

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

File Named exports / entry points
data/DataProvider.tsx BudgetWithStatus, FixedExpenseWithStatus, MonthDashboard, DataProvider, useAppData

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/backup-validation.ts validateBackupDatabase
database/budgets.ts getAllBudgets, getBudget, createBudget, updateBudget, reorderBudgets, deleteBudget, insertMonthBudget, getMonthBudgets, getAllMonthBudgets, setMonthBudgetPlanned, setMonthBudgetActive
database/database-access-error.ts BrowserDatabaseError
database/database-access.ts acquireDatabaseAccess, normalizeDatabaseOpenError
database/database-access.web.ts DATABASE_ACCESS_LOCK, acquireDatabaseAccess, normalizeDatabaseOpenError
database/database-coordination.ts coordinateDatabase
database/database-coordination.web.ts coordinateDatabase, withSerializedDatabase
database/database-name.ts getDatabaseName, setHostedDatabaseUser
database/database-name.web.ts setHostedDatabaseUser, getDatabaseName
database/database.ts getDatabase, closeDatabase, resetDatabase, migrate
database/fixedExpenses.ts getAllFixedExpenses, getActiveFixedExpenses, getFixedExpense, createFixedExpense, updateFixedExpense, reorderFixedExpenses, deactivateFixedExpense, insertMonthFixedExpense, getMonthFixedExpenses, getAllMonthFixedExpenses, getMonthFixedExpense, setMonthFixedExpenseActual, setMonthFixedExpenseExpected, deleteMonthFixedExpense, getActualAmountsByExpense
database/greeterPrefs.ts getGreeterSeen, setGreeterSeen
database/income.ts IncomeInput, createIncome, updateIncome, deleteIncome, getIncome, getMonthIncome, getRecentIncome, getAllIncome
database/localPreferences.ts getSelectedSpaceUuid, setSelectedSpaceUuid
database/migrations.ts MigrationDatabase, Migration, SubscriptionRepairColumns, subscriptionRepairSql, syncTriggersForTablesSql, syncTriggersSql, SHARED_TABLE_SPECS, SHARED_TABLES, MIGRATIONS
database/monthPlan.ts getMonthPlanEvents, getPlannedDrawCents, writeMonthPlanStart, MonthPlanUpdate, recordMonthPlan
database/monthSubscriptions.ts getMonthSubscriptions, replaceMonthSubscriptions
database/monthlyReports.ts getMonthlyReport
database/months.ts getMonth, getAllMonths, getLatestMonth, getPreviousMonth, getClosedMonths, insertMonth, computeStartingReserve, ensureCurrentMonth, materializeMonth, PlannedMonthInput, createPlannedMonth, materializeMonthSubscriptions, updateMonthAllowance, updateMonthStartingReserve, closeMonth, saveMonthClosingVerdict
database/pull-guard-recovery.ts recoverPullGuard
database/queries.ts MonthData, MonthDataWithDefinitions, getMonthData, getPreviousMonthData, getMonthTotalsByExpense, ClosedMonthRecord, getClosedMonthRecords, MonthPlanningInputs, getMonthPlanningInputs, RatingPerformancePoint, getRatingPerformance, BudgetPerformanceRecord, getBudgetPerformance
database/release-notes-cache.ts readReleaseNotesCache, writeReleaseNotesCache
database/reserve.ts createReserveTransfer, getReserveTransfers, upsertMerchantSuggestion, getMerchantSuggestions
database/schema.ts SCHEMA_SQL
database/settings.ts DEFAULT_SETTINGS, getSettings, updateSettings
database/sharedExpenses.ts SharedExpenseInput, SharedExpenseTrace, listPeriodExpenses, getExpenseWithSplits, getExpenseTracesByOriginIds, getExpenseTraceByOriginId, createSharedExpense, updateSharedExpense, deleteSharedExpense, savePeriodReport, getPeriodReport, getPeriodsWithReports
database/sharedLinking.ts decoupleSharedTransactions, ReconcileOutcome, reconcileSharedTransactions, reconcileSharedTransactionsForLocalUser
database/sharedPeriods.ts getSharedPeriods, getOpenPeriod, getPeriod, ensureOpenPeriod, consolidateOpenPeriods, closePeriod
database/sharedSpaces.ts getMySharedSpaces, getSharedSpace, setMemberDisplayNameForUser, createSharedSpace, renameSharedSpace, removeSpaceMember, leaveSharedSpace, deleteSharedSpace, getSpaceMembers, getSpaceMembersIncludingLeft, getActiveMembers, getMember, getMemberForUser, addPendingMember, acceptInvite, setMemberStatus, getPendingInvitesForEmail
database/subscriptions.ts SubscriptionInput, getAllSubscriptions, getSubscription, createSubscription, updateSubscription, reorderSubscriptions, deleteSubscription
database/sync-batch.ts SyncApplyDatabase, applySyncBatch
database/sync-batch.web.ts SyncApplyDatabase, applySyncBatch
database/sync-outbox.ts acknowledgeSyncRow
database/syncMeta.ts PULL_IN_PROGRESS_KEY, getMeta, setMeta, removeMeta, withPullGuard, syncMetaAuthStorage
database/syncState.ts DEFAULT_SYNC_STATE, getSyncState, updateSyncState
database/transactions.ts TransactionInput, createTransaction, updateTransaction, deleteTransaction, getTransaction, getMonthTransactions, getRecentTransactions, getAllTransactions, getTransactionByOrigin, updateTransactionAttachment, setTransactionRating, updateTransactionBudget, getLatestBudgetForMerchant, upsertSharedTransaction, deleteSharedTransaction
database/tutorialPrefs.ts getTutorialSeen, setTutorialSeen
database/updatePrefs.ts getIgnoredReleaseVersion, setIgnoredReleaseVersion, getCheckForUpdatesOnStart, setCheckForUpdatesOnStart

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/index.ts MonthKey, FixedExpenseKind, Recurrence, EstimationStrategy, Settings, SyncStatus, SyncState, Month, FixedExpense, MonthFixedExpense, Budget, MonthBudget, MONTH_PLAN_EVENT_KINDS, MonthPlanEventKind, MonthPlanEvent, TRANSACTION_RATINGS, TransactionRating, Transaction, Income, Subscription, MonthSubscription, Attachment, ReserveTransfer, MerchantSuggestion, ReserveSnapshot, ReserveAdjustment, SharedMemberRole, SharedMemberStatus, SharedPeriodStatus, SharedSplitMethod, SharedSpace, SharedSpaceMember, SharedPeriod, SharedExpense, SharedExpenseSplit, SharedExpenseWithSplits, SharedBalance, SharedSettlement, SharedReportMemberInfo, SharedReportExpense, SharedReportMemberTotal, SharedPeriodReportData, SharedPeriodReport, SharedSplitInput, SharedSplitRecord

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/active-month-service.ts ActiveMonth, resolveActiveMonth, ActiveMonthDateWindow, activeMonthDateWindow, isDateInActiveMonth, clampToActiveMonth, ActiveMonthDateCheck, validateDateInActiveMonth
services/allowance-service.ts remainingAllowance, spendingDifference, reserveAdjustmentCents, unplannedAllowance, reserveDrawBehindPlan, RemainingForBudgetInput, remainingForBudget
services/estimation-service.ts ActualAmount, EstimateSource, estimateAmount
services/forecast-service.ts FixedExpenseTotals, fixedExpenseAmount, sumFixedExpenses, transactionTotal, incomeTotal, BudgetStatus, budgetStatus, totalBudgetUsedPercent, BudgetAvailableEntry, budgetAvailableAmounts, MonthForecast, ForecastInput, forecastMonth
services/install-update.android.ts installUpdate
services/install-update.ts installUpdate
services/install-update.web.ts installUpdate
services/month-closing-service.ts CLOSING_WINDOW_LEAD_HOURS, CLOSING_WINDOW_TRAIL_HOURS, MonthClosingWindow, monthClosingWindow, isWithinClosingWindow, findClosableMonth, monthsRequiringAutoClose
services/month-planning-service.ts MonthPlanInput, MonthPlan, planMonth, clampDrawCents, BudgetPlanChange, MonthPlanDiff, diffMonthPlan, fundedBudgetIdForDraw, budgetHeadroomCents, toMonthBudgets
services/monthly-report-service.ts MonthlyReportFixedExpense, MonthlyReportSubscription, MonthlyReportBudget, MonthlyReportInput, MonthlyReport, MonthPlanSummary, summarizeMonthPlan, reportFixedExpenses, reportSubscriptions, reportBudgets, buildMonthlyReport
services/reserve-service.ts AUTOMATIC_TRANSFER_NOTE, ReserveProjectionInput, ReserveProjection, projectReserve, AutomaticReserveTransfer, buildAutomaticReserveTransfer, effectiveEndingReserve
services/shared-expense-service.ts SharedExpenseValidationError, SplitResolution, BalanceExpense, ReportExpenseInput, BuildReportInput, parsePercentToBasisPoints, formatBasisPoints, resolveEqualSplit, resolveExactSplit, resolvePercentageSplit, resolveSplit, FillRemainingResult, canFillRemaining, fillRemainingSplit, validateExpense, computeBalances, settleBalances, buildPeriodReport, deriveLinkedTransaction
services/shared-mirror-service.ts SharedMirrorPlacement, ExistingSharedMirror, resolveSharedMirrorPlacement
services/statistics-service.ts MonthRecord, totalMonthSpending, averageMonthlySpending, medianMonthlySpending, highestMonthlySpending, averageReserveAdjustment, spendingByCategory, BudgetMonthPerformance, averageBudgetPerformance, RatingShares, ratingSharesForMonth, monthlySeries, reserveDevelopment
services/subscription-service.ts monthlyChargeCents, subscriptionChargesForMonth, monthSubscriptionTotal, subscriptionMonths, monthlyFromTotal
services/sync-service.ts normalizeSupabaseUrl, isValidApiKey, formatMaskedKey
services/update-service.ts VersionParts, ReleaseInfo, ReleaseAsset, FetchLike, parseVersion, compareVersions, isNewerThan, isIgnoredUpdate, releaseFromJson, fetchLatestRelease, checkForUpdate

sync#

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

File Named exports / entry points
sync/activity.ts observeSyncActivity
sync/activity.web.ts observeSyncActivity
sync/auth-storage.ts SEEDWORKS_AUTH_STORAGE_KEY, coconutAuthStorage, coconutAuthStorageKey
sync/auth-storage.web.ts SEEDWORKS_AUTH_STORAGE_KEY, coconutAuthStorage, coconutAuthStorageKey
sync/change-notifications.ts subscribeSyncChanges
sync/device-name.ts getSyncDeviceName
sync/device-name.web.ts getSyncDeviceName
sync/engine.ts SHARED_LAST_SYNC_KEY, SyncOutcome, SharedQuickSyncResult, PersonalQuickSyncResult, isSyncRunning, isSharedSyncRunning, syncSharedChanges, syncPersonalChanges, syncNow, SyncError
sync/hosted-account-client.ts getHostedAccountClient
sync/hosted-account-client.web.ts getHostedAccountClient
sync/hosted-bootstrap.ts openHostedAccountCache
sync/hosted-oauth.web.ts readTransaction, startHostedLogin, validateOAuthClaims, requestOAuthTokens, createOAuthFetch, completeHostedLogin
sync/identity.ts ensureSyncIdentity
sync/performance.ts SyncTiming, measureSyncPhase, getSyncTimings, mapSyncDownloads
sync/profile-picture.ts getSeedProfilePicture
sync/pull.ts pullSettings, PullResult, pullChanges
sync/pull.web.ts pullSettings, PullResult, pullChanges
sync/push.ts PushResult, pushSettings, pushChanges
sync/restore-account.ts restoreAccountData
sync/scheduler.ts SyncScheduler, createSyncScheduler
sync/serialize.ts LocalRow, RemoteRow, FkToRemote, FkToLocal, Field, SyncTableAdapter, AdapterOptions, makeAdapter, COMPLETE_ADAPTERS, SYNC_SETTINGS_KEYS
sync/shared-serialize.ts SHARED_ADAPTERS, SHARED_REMOTE_TABLES, SHARED_REMOTE_COLUMNS
sync/shared.ts SharedPushOptions, SharedPushResult, pushSharedChanges, SharedPullResult, pullSharedChanges
sync/shared.web.ts SharedPushOptions, SharedPushResult, pushSharedChanges, SharedPullResult, pullSharedChanges
sync/supabase.ts CoconutClient, SyncAuthError, getClient, resetClient, signUpToSupabase, signInToSupabase, signOutOfSupabase, getSupabaseSessionUser, getSupabaseUserId
sync/time.ts EPOCH, PULL_OVERLAP_MS, nowIso, pullSince, toMillis, isRemoteNewer
sync/usage-report.ts scheduleSeedWorksUsage, reportSeedWorksUsage

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 CoconutThemeProvider, useAppTheme
theme/light.ts lightTheme
theme/navigation.ts buildNavigationTheme
theme/semantic.ts SemanticColors, buildSemanticColors
theme/theme.ts buildCoconutTheme
theme/tokens/chart.ts chartPalette, 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, CoconutTheme

updates#

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

File Named exports / entry points
updates/release-notes.ts ReleaseRepository, PublishedNote, extractReleaseNotes, compareStableVersions, visibleNotes, normalizeReleaseNotes, mergeReleaseNotes, fetchReleaseNotePayload
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/attachment-display.ts attachmentPreviewUri, openAttachment
utils/attachment-source.ts pickAttachmentFile, captureAttachmentPhoto
utils/attachment.ts isImageMime, bytesToBase64, attachmentExtension, mimeToExtension, formatBytes
utils/backup.ts BACKUP_MIME_TYPE, createBackupFile, shareBackup, restoreFromBackup, pickBackupFile
utils/currency.ts formatCents, formatSignedCents, centsFromString
utils/date.ts DATABASE_NAME, BACKUP_EXTENSION, DAYJS_STORE_DATE_FORMAT, EVERGREEN_MONTH_KEY, monthKeyOf, currentMonthKey, previousMonthKey, nextMonthKey, monthLabel, shortMonthLabel, dayLabel, relativeDayLabel, monthProgress, isInMonth
utils/paths.ts toFileUri, toFilePath
utils/shared-expense-prefill.ts SplitPrefill, deriveSplitPrefill
utils/shared-members.ts sharedMemberName, sharedMemberRoleLabel