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.
components#
Reusable UI, forms, charts and lifecycle coordinators. Platform suffixes select implementations at bundle time.
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 |