Introducing a new way to review your PRs.

Read the announcement

karakeep-app / karakeep

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

View on GitHub

21 documents · Updated Nov 23, 2026

docs / mobile-application

Mobile application

The mobile application is an Expo-based Karakeep client for iOS and Android. It gives a user one place to sign in to a hosted or self-hosted server, save and read bookmarks, organize a library, and use native sharing and storage. It shares account data and service behavior with the other client integrations, including browser extension capture and developer tool integrations, through the shared API and tRPC boundary.

Application role

The mobile application brings the Karakeep library to a phone while adapting it to native platform actions. The server remains the source of truth for bookmarks and account data. The app adds device-local settings, recent search history, language and theme choices, and explicit offline article copies around that shared service.

Runtime boundary

The mobile client reaches Karakeep through the typed tRPC service. It builds that connection from a server address, a bearer API key, and optional custom headers. Shared React hooks and domain types keep bookmark, list, tag, highlight, user, and reader behavior aligned with other first-party clients. References: apps/…/providers.tsx• L27-69, apps/…/settings.ts• L39-68, packages/…/trpc-provider.tsx• L42-114

The root provider stack joins local settings, persisted query state, tRPC, server feature flags, language, connection state, reader settings, and mobile feedback. It also starts foreground offline synchronization for the signed-in account. Screens therefore use one account context instead of defining separate service rules. References: apps/…/_layout.tsx• L42-79, apps/…/providers.tsx• L27-99

Expo Router maps the app route tree to native navigation stacks. Public routes handle setup and sign-in. The dashboard contains the authenticated library and its detail, sharing, offline, subscription, and settings flows.

Route hierarchy

The initial route waits for device settings to load, then sends the user to sign-in or the dashboard. The dashboard checks the same session state and redirects an unauthenticated user back to sign-in. References: apps/…/index.tsx• L5-15, apps/…/_layout.tsx• L24-41

The dashboard uses native tabs for the main library areas on phone-sized windows:

  • Home shows active bookmarks and capture actions.
  • Lists shows favourites, archive, downloads, owned lists, shared lists, and pending invitations.
  • Tags provides searchable labels that lead to filtered bookmarks.
  • Highlights provides the saved highlights view.
  • Search is a native tab on iOS. Android opens the same search flow from Home.

On wide iOS windows, the tab bar is replaced by a dashboard sidebar. The sidebar keeps the main library areas, archive, favourites, and the owned and shared list tree in one navigation surface. Folding or resizing changes the navigation surface without resetting the dashboard stack. References: apps/…/DashboardSidebar.tsx• L321-476, apps/…/responsive.ts• L9-21, apps/…/_layout.tsx• L24-53

The main dashboard stack keeps bookmark details and short tasks in focused sheets. It includes bookmark creation, tag and list management, list creation and editing, list membership, sharing, tag editing, and settings. References: apps/…/_layout.tsx• L10-99, apps/…/_layout.tsx• L8-28, apps/…/_layout.tsx• L6-15, apps/…/_layout.tsx• L43-278

Settings is one sheet with its own stack. The first screen gives access to language, theme, bookmark opening mode, reader settings, uploads, downloads, usage, subscription, and account controls. Sub-pages push within that sheet instead of creating a new sheet for every choice. References: apps/…/_layout.tsx• L8-81, apps/…/index.tsx• L137-245

This diagram shows how setup leads to the authenticated library and then to focused bookmark, organization, sharing, offline, and settings tasks.

flowchart TD
    Start[App entry] --> Session{Saved account?}
    Session -->|No| SignIn[Sign in]
    Session -->|Yes| Dashboard[Dashboard]
    SignIn --> Server[Server address and connection test]
    SignIn --> Dashboard
    Dashboard --> Home[Home bookmarks]
    Dashboard --> Lists[Lists and downloads]
    Dashboard --> Tags[Tags]
    Dashboard --> Highlights[Highlights]
    Dashboard --> Search[Search]
    Home --> Bookmark[Bookmark detail]
    Bookmark --> Reader[Reader and highlights]
    Bookmark --> Manage[Tags, lists, sharing, and offline actions]
    Lists --> List[List detail]
    List --> Add[Add bookmarks]
    List --> Share[List access]
    Dashboard --> Settings[Settings stack]
    Settings --> Preferences[Language, theme, reader, and toolbar]
    Settings --> Offline[Offline downloads]
    Settings --> Account[Subscription and account]

References: apps/…/_layout.tsx• L97-157 apps/…/_layout.tsx• L73-278 apps/…/_layout.tsx• L16-81

Detail and sheet flows

Bookmark details form the center of the mobile workflow. A detail screen can open readable or browser content and can lead to editing, tag and list management, highlights, sharing, offline saving, and deletion. List forms can also open a searchable membership screen that adds or removes bookmarks while keeping the list context visible. References: apps/…/_layout.tsx• L84-205, apps/…/info.tsx• L147-354, apps/…/add.tsx• L85-213

Short tasks use native form sheets or modals. Parent-list selection remains a separate route so a user can search the hierarchy and return to the list form with the selected parent. Form sheets use a common Cancel and Save header. When a form is dirty, leaving by cancel, sheet dismissal, or back navigation asks the user to keep or discard the input. References: apps/…/_layout.tsx• L94-228, apps/…/select-parent.tsx• L17-115, apps/…/SheetHeader.tsx• L43-125

Settings keeps its own internal navigation so its sub-pages remain part of one settings task. References: apps/…/_layout.tsx• L16-39

Shared UI integration

The app combines native controls with shared Karakeep behavior. Mobile components provide touch, safe-area, platform menu, sheet, and system action behavior. Shared React packages provide service hooks, domain types, reader settings, search behavior, and HTML reading tools.

Component and style system

The local UI layer gives screens common text, buttons, grouped rows, lists, loading states, empty states, toasts, and bookmark presentation. Settings use the same native row patterns for navigation, switches, choices, values, and actions. Inputs and search fields keep form behavior consistent across list, tag, and search screens. NativeWind applies shared Tailwind-style classes to local screens and selected shared components. References: apps/…/settings-list.tsx• L19-79, apps/…/settings-list.tsx• L97-324, apps/…/Input.tsx• L8-41, apps/…/types.ts• L3-13, apps/…/globals.css• L1-51

The visual system follows the selected light, dark, or system theme. Native headers, sheets, tabs, cards, reader surfaces, and menus use the same color model while still matching platform presentation. Responsive collection views keep content readable on phones, tablets, and split views. References: apps/…/colors.ts• L1-42, apps/…/_layout.tsx• L46-95, apps/…/responsive.ts• L5-71, apps/…/settings.ts• L43-53

Localization model

Mobile localization uses English as the fallback and supports the shipped Karakeep language set. Mobile-only strings use the mobile namespace. Common actions and concepts use the web app's shared translation namespace so the same wording can appear on web and mobile. The active language follows the saved user choice or the device locale. References: apps/…/index.ts• L1-24, apps/…/index.ts• L364-479, apps/…/provider.tsx• L12-31, apps/…/language.tsx• L14-51

The language choice affects navigation labels, native menu actions, settings labels, errors, dates, and reader messages. The app maps stored language codes to valid locale tags before plural and number rules run. A platform polyfill keeps plural messages working on Hermes devices. References: apps/…/index.ts• L481-557, apps/…/pluralRulesPolyfill.ts• L1-29, apps/…/hooks.ts• L17-41

Bookmark presentation

Bookmark cards and compact rows present link, text, image, and PDF bookmarks through one library model. The selected item then opens the matching native content view. Text notes without a title receive a readable title from their first useful line, while asset and untitled fallbacks use the active language. References: apps/…/BookmarkCard.tsx• L128-237, apps/…/bookmarkDisplay.ts• L7-60

Bookmark collections adapt between a responsive grid and a single-column list. They support pull-to-refresh, paged loading, empty states, and platform-aware scroll-to-top behavior. A successful save can return the descending collection to its top so the user can see the new or re-saved item. The gesture-aware list also keeps vertical scrolling from being claimed by card swipes. References: apps/…/BookmarkList.tsx• L28-31, apps/…/BookmarkList.tsx• L61-160

The bookmark layout can show a card or a compact list row. Owners can swipe a row to favourite or archive it without opening a detail screen. On iOS, a long press on the card provides the action menu; on Android, compact controls and an overflow menu provide the same actions. These controls stay separate from the card press target so a bookmark opens only when the user selects the item itself. Swipe completion uses a short tap guard so the release does not also open the bookmark. References: apps/…/BookmarkCard.tsx• L264-333, apps/…/BookmarkCard.tsx• L412-545, apps/…/ActionBar.tsx• L13-91

Bookmark actions use a configurable toolbar and an overflow menu. The user can choose and order visible actions, but ownership, bookmark type, and offline availability still control which actions appear. The toolbar adapts labels and spacing to the available window, while larger windows can show a wider labelled set. References: apps/…/BottomActions.tsx• L116-205, apps/…/BottomActions.tsx• L211-440, apps/…/BottomActions.tsx• L512-663, apps/…/toolbar-settings.tsx• L25-69

Reader integration

The reader places shared HTML highlighting and scroll-progress behavior inside a mobile DOM surface. It preserves reading position, creates and edits highlights, opens safe links and images through native actions, and uses the same reader concepts as other clients. Reader font, size, and line-height choices can come from server defaults or local device overrides. The settings screen also gives users a small live preview of the selected text layout. References: apps/…/BookmarkLinkPreview.tsx• L148-224, apps/…/BookmarkHtmlHighlighterDom.tsx• L102-279, apps/…/ReaderPreview.tsx• L21-134, apps/…/reader-settings.tsx• L25-43

The reader keeps links selectable for highlighting instead of allowing the embedded document to take over native link gestures. In-page anchors stay inside the article. External web, mail, phone, and message links use the matching platform action. References: apps/…/BookmarkHtmlHighlighterDom.tsx• L102-170, apps/…/BookmarkLinkPreview.tsx• L71-82

Platform presentation

The app keeps the product model consistent while changing the interaction surface by platform. iOS uses native search, form sheets, system menus, and long-press card menus. Android uses inline search from Home, a floating capture action, and Android navigation behavior. Both platforms use safe areas, system themes, native share actions, and accessible controls. References: apps/…/_layout.tsx• L15-98, apps/…/index.tsx• L200-265, apps/…/BookmarkCard.tsx• L449-545, apps/…/menuGroups.ts• L1-17

Mobile-facing workflows

The mobile app supports the main actions a user needs away from a desktop browser. Each flow starts with the current server and account context, then uses shared bookmark operations so changes appear across clients.

Account and server setup

Sign-in supports two paths: exchange an email and password for a mobile API key, or validate an existing API key. The default server is hosted Karakeep, but a user can enter another server address. The setup flow can test the configured connection and can attach custom HTTP headers for servers that need them. References: apps/…/signin.tsx• L19-27, apps/…/signin.tsx• L80-173, apps/…/server-address.tsx• L12-88, apps/…/test-connection.tsx• L10-133

The app stores connection and device preferences in secure device storage. Logout removes the local key, clears account query data and offline data, revokes the generated key when its identifier is known, resets the purchase identity, and stops the active offline pass. References: apps/…/settings.ts• L78-136, apps/…/session.ts• L13-40, apps/…/offlineSync.ts• L500-518

Capture and sharing

The app creates link or text bookmarks from its new-bookmark form and from clipboard content. Home also accepts an image from the photo library. Asset capture uploads the file first and then creates the matching image or PDF bookmark. References: apps/…/index.tsx• L47-165, apps/…/new.tsx• L12-77, apps/…/upload.ts• L28-105

The operating system can send a URL, text, image, or PDF to the app through its share extension. The app turns that input into the matching bookmark type, reports whether the bookmark is new or already exists, and offers a short path to manage or dismiss the result. An empty or stalled intent has an escape path instead of leaving the user on an endless loading screen. References: apps/…/_layout.tsx• L42-59, apps/…/sharing.tsx• L26-94, apps/…/sharing.tsx• L104-158, apps/…/app.config.js• L73-91

Sharing a saved item uses the native platform boundary. Links use the system share sheet. Text is copied to the clipboard. Supported image and PDF assets are fetched with the account request headers before they are passed to native sharing. References: apps/…/shareBookmark.ts• L15-93

This diagram shows the capture sources and their common result in the Karakeep bookmark service.

flowchart LR
    Form[New bookmark form] --> Kind{URL or text?}
    Clipboard[Clipboard] --> Kind
    Share[OS share intent] --> Kind
    Photos[Photo library] --> Upload[Authenticated asset upload]
    Kind -->|URL| Link[Create link bookmark]
    Kind -->|Text| Note[Create text bookmark]
    Upload --> Asset[Create image or PDF bookmark]
    Link --> Result[Saved or already exists]
    Note --> Result
    Asset --> Result

References: apps/…/index.tsx• L73-165 apps/…/sharing.tsx• L48-94 apps/…/upload.ts• L54-95 apps/…/shareBookmark.ts• L40-83

Reading and bookmark management

The bookmark view supports readable links, text notes, and image or PDF assets. A link can open in the in-app reader or in a browser-based view. Images can open in a zoom view. PDFs use the document viewer path. Text notes render as formatted text and can be edited by the owner. References: apps/…/index.tsx• L52-107, apps/…/BookmarkLinkPreview.tsx• L84-145, apps/…/BookmarkAssetImage.tsx• L5-23, apps/…/PDFViewer.tsx• L1-80

The detail surface lets an owner edit content, create an AI summary, attach tags and lists, mark the bookmark as a favourite, archive it, share it, save it offline, or delete it. Viewers can see permitted data without receiving owner-only actions. Attachments can be saved or shared through the device. References: apps/…/info.tsx• L219-354, apps/…/info.tsx• L356-528, apps/…/BottomActions.tsx• L211-440

Lists provide hierarchical groups for bookmarks and separate shared lists from owned lists. Users can create and edit lists, choose a parent, add or remove bookmark membership, share access, and select lists for offline use. List detail actions also respect the list type and user role: editors can add bookmarks to manual lists, owners can edit or delete, and other members can leave shared lists. References: apps/…/index.tsx• L183-397, apps/…/index.tsx• L102-115, apps/…/index.tsx• L201-310, apps/…/ListFormFields.tsx• L33-166, apps/…/add.tsx• L85-196

Smart lists use the server search syntax. The form offers plain-language shortcuts, tag suggestions, and feedback when a query is incomplete or not a filter. Parent selection excludes the edited list and its descendants so the hierarchy cannot become cyclic. References: apps/…/ListFormFields.tsx• L15-163, apps/…/select-parent.tsx• L33-115

Tags provide a searchable, paged view of labels and lead to filtered bookmark lists. A tag detail screen also provides edit and delete actions while keeping the same bookmark list and layout controls. Search uses the server bookmark search service and keeps a short local history on the device. It supports keyword search by default and can offer hybrid or semantic search when the server advertises that capability. iOS exposes this through the native search bar. Android opens the same behavior from Home. References: apps/…/index.tsx• L31-205, apps/…/[slug].tsx• L22-159, apps/…/useBookmarkSearchState.ts• L21-110, apps/…/InlineSearch.tsx• L21-91, apps/…/SearchModeSelector.tsx• L64-163, apps/…/index.ios.tsx• L12-71

Settings and personalization

Settings groups account actions, data controls, device preferences, and server information. Users can choose the app language, theme, default bookmark view, upload quality, reader behavior, and reader toolbar layout. Reader settings distinguish local device changes from defaults that can be saved for all devices. References: apps/…/index.tsx• L137-245, apps/…/language.tsx• L14-51, apps/…/theme.tsx• L11-38, apps/…/reader-settings.tsx• L111-274, apps/…/toolbar-settings.tsx• L178-228

Usage settings give the user a view of library size, bookmark types, activity, domains, tags, capture sources, and stored asset types. The screen uses the shared user statistics service and formats values with the active locale. References: apps/…/UsageStatsScreen.tsx• L41-100, apps/…/UsageStatsScreen.tsx• L524-741

Subscription settings show the server plan and quota state when subscription support is enabled. Official builds can offer platform purchases, while web-managed and custom subscriptions remain with their owning service. References: apps/…/subscription.tsx• L77-284, apps/…/purchases.ts• L10-81

Offline and connectivity model

The app treats network state as part of the reading experience. It separates recent query cache from explicit article downloads. The first supports quick access to recent data. The second gives the user controlled article copies for reading without a connection.

Connection state

The mobile query layer listens to device network state and app foreground state. A server health check separates online, device-offline, and server-unreachable states. The Home banner and page-level error state tell the user whether the app shows saved data, needs a connection, or needs a server check. References: apps/…/providers.tsx• L35-68, apps/…/ConnectionBanner.tsx• L8-36, apps/…/QueryPageState.tsx• L10-68

Recent successful query data is persisted for a limited time and scoped to the server address and API-key identity. Article bodies stay out of the general query cache because they can be large. Mutations fail visibly while offline instead of appearing to save. References: apps/…/providers.tsx• L41-63, apps/…/offlineCache.ts• L17-39, apps/…/offlineCache.ts• L185-316

Offline article library

The offline library keeps bookmark metadata and readable article content in a versioned local store. It is scoped to the server and account. Article metadata and large HTML bodies are stored separately so library status stays fast to read. Copies record whether the user saved them or automatic downloads created them. References: apps/…/offlineLibrary.ts• L18-60, apps/…/offlineLibrary.ts• L269-355, apps/…/offlineLibrary.test.ts• L45-101

Manual saving uses the current full bookmark response when the network is available, or a complete cached response when it is not. The reader uses the saved HTML body only when a live content request cannot provide one. Browser, archive, and server-backed views still need a live connection. References: apps/…/useOfflineAvailability.ts• L22-83, apps/…/BookmarkLinkPreview.tsx• L161-192

Automatic download synchronization

Automatic downloads run while the app is open. They start at launch, when the app returns to the foreground, on a periodic refresh, and after meaningful network or download-setting changes. Wi-Fi-only settings pause the pass on cellular data. References: apps/…/OfflineDownloadSync.tsx• L27-101, apps/…/offlineSync.ts• L302-369

The selection gives kept lists higher priority than recent articles. It removes duplicates, skips unsupported or excluded bookmarks, waits for reader content, and protects manual copies from automatic eviction. A storage budget removes lower-priority automatic copies first. Failed passes keep existing copies so a temporary network or server error does not empty the library. References: apps/…/offlineSync.ts• L219-300, apps/…/offlineSync.ts• L371-464, apps/…/offlineSync.test.ts• L239-334

Each pass reports a durable status such as waiting for Wi-Fi, waiting for a connection, downloading, paused, ready, or disabled. Only one pass runs at a time. Logout discards the active pass before clearing local data so a late response cannot write for the old account. References: apps/…/offlineSync.ts• L45-139, apps/…/offlineSync.ts• L467-518, apps/…/offlineSync.test.ts• L336-425

This diagram shows how account-scoped preferences become a prioritized local article set while network and app state control the pass.

flowchart TD
    Prefs[Download preferences] --> Selection[Kept lists and recent articles]
    Network[Network and app state] --> Gate{Allowed to run?}
    Selection --> Gate
    Gate -->|No| Status[Waiting or paused status]
    Gate -->|Yes| Pages[Fetch selected bookmark pages]
    Pages --> Candidates[Prioritize and filter candidates]
    Candidates --> Content[Fetch readable content]
    Content --> Budget{Within storage budget?}
    Budget -->|No| Evict[Remove lower-priority automatic copies]
    Budget -->|Yes| Save[Save account-scoped copy]
    Evict --> Save
    Save --> Library[Offline article library]

References: apps/…/offlineSync.ts• L219-435 apps/…/offlineLibrary.ts• L283-355 apps/…/offline.tsx• L131-344

Native configuration and release variants

Expo configuration defines the app identity, platform permissions, native integrations, and build behavior. Separate development and release identities let a development client coexist with the main app on one device.

Platform configuration

The app is portrait-first, supports tablets, and follows light or dark system themes. Native configuration enables secure storage, share intents for supported web and file types, image selection, file sharing, web browsing, crash reporting, and the platform build settings needed by current iOS and Android releases. Camera support is optional at install time. References: apps/…/app.config.js• L3-23, apps/…/app.config.js• L42-126, apps/…/camera-not-required.js• L1-23

Share intent filters accept web URLs, plain text, images, and PDF files. The iOS rules also limit unsupported media such as movies, while Android declares the matching text, image, and PDF MIME types. Android development permits clear-text traffic for local servers and trusts local certificates through the development plugin. References: apps/…/app.config.js• L73-110, apps/…/trust-local-certs.js• L9-40, apps/…/network_security_config.xml• L1-20

Build variants

The development variant changes the visible app name, URL scheme, and iOS and Android identifiers. Preview and production builds use the release identity. This separation prevents development deep links and sign-in tests from colliding with the installed production app. References: apps/…/app.config.js• L1-15, apps/…/app.config.js• L23-31, apps/…/eas.json• L6-17

Workspace integration

The mobile package is part of the pnpm workspace. It combines Expo and React Native runtime packages with shared Karakeep packages, native reader and media support, purchase support, localization, and platform-independent tests. Metro watches the monorepo so shared packages and web translation resources can be used by the app. References: apps/…/package.json• L5-21, apps/…/package.json• L23-111, apps/…/metro.config.js• L17-39, apps/…/index.ts• L66-105

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep Expo route names, stack declarations, tab triggers, sidebar entries, settings sub-routes, list membership routes, and deep-link paths aligned. A screen can render while a push or redirect targets a different route.
  • Keep the phone tab model, wide-window sidebar, active-entry detection, list expansion, and route replacement behavior aligned. A layout change can leave the wrong library area selected.
  • Keep the server address, API key, custom headers, tRPC client, asset upload, health check, native share download, attachment download, and offline fetches on the same request context.
  • Keep bookmark types and source: "mobile" aligned between the new-bookmark form, clipboard capture, share intents, asset uploads, and shared bookmark hooks.
  • Keep the query cache, offline library, download preferences, and sync status scoped to both server address and API-key identity. Logout must not reuse local data from another account.
  • Keep offline reader records, article content, schema versions, and reader settings aligned with the online reader.
  • Keep automatic-download selection, list pagination, candidate priority, exclusions, storage budgets, and manual-copy protection aligned.
  • Keep offline sync cancellation and account changes aligned. A pass that continues after logout can write old-account data into a new session.
  • Keep iOS and Android share-intent filters aligned with the content types handled by the sharing screen and upload path.
  • Keep development app names, schemes, bundle identifiers, and EAS variant settings aligned so development and release installs remain separate.
  • Keep mobile and shared web translation keys, locale tags, language picker values, plural rules, and date locales aligned. A new visible string must exist in the mobile source and every shipped mobile locale.
  • Keep shared translation paths available to Metro when locale resources move. The mobile language registry must still map each stored code to a valid runtime locale tag.
  • Keep settings labels, local setting keys, effective reader defaults, and displayed values aligned. A preference can appear to save while controlling a different screen.
  • Keep the configurable toolbar registry, settings order, native menu labels, bookmark ownership checks, bookmark-type checks, card gesture actions, and list scroll behavior aligned.
  • Keep bookmark collection column sizing, pagination, refresh behavior, save-to-top behavior, and gesture cancellation aligned. Changes in one can hide a new bookmark or let a card swipe interrupt scrolling.
  • Keep dirty-form state, sheet dismissal, back navigation, discard confirmation, and successful-save navigation aligned. A form can either lose input without warning or keep blocking after it saves.
  • Keep list roles, list types, public access, invitations, membership changes, and related query invalidation aligned across list detail, sharing, pending invitations, and add-to-list screens.
  • Keep smart-list query shortcuts, parser feedback, tag suggestions, and server search syntax aligned.
  • Keep search mode labels, server capability flags, query parameters, and iOS and Android search entry points aligned.
  • Keep asset-type routing aligned with native viewers. PDF assets need the PDF path and authenticated source data rather than the image path.
  • Keep RevenueCat build keys, server purchase capability, platform purchase settings, Karakeep identity, and entitlement refresh aligned.

Important failure modes

TriggerConsequenceGuard
The server address is missing, malformed, or unreachableSign-in, health checks, queries, and uploads failValidate the address and expose the connection test and connection state before treating the server as available.
The API key or custom headers differ between tRPC and asset requestsBookmark reads work while images, PDFs, uploads, shares, or offline fetches failBuild all service and asset requests from the same stored request settings.
A share intent contains an unsupported file typeThe share screen cannot create a bookmarkKeep native intent filters and upload handling limited to supported URL, text, image, and PDF inputs.
A persisted query or offline record is restored for another server or accountRecent data or downloaded articles appear to belong to another accountUse the server-and-key scope and clear account-local stores during logout.
A mobile translation key is missing or a locale is not registeredA screen shows fallback text, a raw key, or the wrong plural formKeep source and locale keys in parity, register the locale tag, and run the language checks.
A settings route is opened outside its settings stackThe sheet loses its back or Done behaviorKeep the settings entry route and nested settings stack together.
A wide-window route is not represented in the sidebarThe content changes but the navigation surface highlights no current entryKeep sidebar entry mapping aligned with dashboard route segments.
A list membership screen has not loaded the full current membershipCheckmarks are wrong and a tap can remove an unseen memberLoad all membership pages before enabling selection changes.
A list action ignores the list type or user roleA user sees an invalid edit, add, delete, or leave actionGate list actions by list type and role, then keep the server permission result authoritative.
A smart-list query is incomplete or not a valid filterThe list cannot save the intended filterUse parser feedback, incomplete-query handling, and the supplied query shortcuts.
Semantic search is selected without server support or searchable textThe request falls back to keyword search or returns no useful resultRead the server capability flag and force keyword mode when the query has no searchable text.
A PDF asset is sent through the image presentation pathThe asset does not render as a readable documentRoute PDF assets to the PDF viewer with authenticated asset data.
A card swipe claims a vertical scroll or its release also activates the cardThe collection becomes hard to scroll or opens a bookmark after a favourite or archive actionUse the gesture-aware list, directional activation threshold, and post-swipe tap guard.
A successful save does not return a descending collection to its visible topThe user cannot see the bookmark that was just savedTrack successful create mutations and scroll only the intended sorted collection.
A dirty form leaves through cancel, back, or sheet dismissal without the discard guardTyped input is lost without confirmationBlock removal while dirty and disable the guard only for an intentional discard or successful save.
Automatic downloads run on cellular data while Wi-Fi-only is selectedThe device uses unwanted mobile data or the pass pauses part way throughCheck network type before and during each pass and show the waiting status.
A selected list is deleted or access is removedThe list stays selected or old automatic copies remainRemove gone list IDs and reconcile automatic copies during the next pass.
Logout happens during an offline download passA late response can write data for the old accountDiscard and abort the active pass before clearing local stores, then check the account before writes.
A purchase succeeds but entitlement refresh failsThe store reports success while the app shows the old planRefresh server entitlements and show restore or retry guidance when active status is not confirmed.

Key files

FileWhy to read it
apps/…/_layout.tsxShows the root navigation boundary, providers, share-intent entry, theme, and public routes.
apps/…/_layout.tsxShows the authenticated dashboard stack and its bookmark, list, sharing, and settings routes.
apps/…/_layout.tsxShows the phone tab model and the iOS and Android search difference.
apps/…/DashboardSidebar.tsxShows the wide-window navigation surface and hierarchical list entry model.
apps/…/screen-layout.tsxShows the shared safe-area boundary used by tabs, sheets, and split views.
apps/…/_layout.tsxShows the nested settings stack and its sheet exit behavior.
apps/…/SheetHeader.tsxShows the shared form-sheet actions and protection against losing unsaved input.
apps/…/providers.tsxShows how settings, query state, tRPC, localization, connectivity, reader settings, and offline sync join.
apps/…/settings.tsDefines the device settings that shape connection, display, reader, upload, and toolbar behavior.
apps/…/index.tsDefines language resolution, shared web translations, mobile translations, locale tags, and date and number locale selection.
apps/…/provider.tsxApplies the saved or system language to the app lifecycle.
apps/…/signin.tsxShows password and API-key sign-in and server selection.
apps/…/index.tsxShows Home capture actions for new bookmarks, clipboard content, and photo uploads.
apps/…/sharing.tsxShows how operating-system share input becomes a Karakeep bookmark and returns feedback.
apps/…/BookmarkCard.tsxShows card and list presentation, owner swipe actions, platform press behavior, and card menus.
apps/…/BookmarkList.tsxShows responsive collection layout, paging, refresh, save-to-top behavior, and gesture-aware scrolling.
apps/…/ActionBar.tsxShows the quick bookmark controls used inside collection cards.
apps/…/BookmarkLinkPreview.tsxShows reader, browser, archive, screenshot, PDF, highlight, progress, and offline fallback behavior.
apps/…/BookmarkHtmlHighlighterDom.tsxShows how shared HTML reading and highlighting are adapted to the mobile DOM surface.
apps/…/ReaderPreview.tsxShows the reader settings preview used to check text style and theme choices.
apps/…/BottomActions.tsxShows the responsive bookmark toolbar, overflow menu, ownership checks, and offline action.
apps/…/index.tsxShows hierarchical owned lists, shared lists, counts, invitations, favourites, archive, and downloads.
apps/…/index.tsxShows list detail actions for roles, membership, sharing, layout, and offline downloads.
apps/…/add.tsxShows searchable bookmark membership changes for a list.
apps/…/ListFormFields.tsxShows list fields, smart-list query help, tag suggestions, and parent selection entry.
apps/…/select-parent.tsxShows searchable parent selection and cycle prevention.
apps/…/index.tsxShows searchable, paged tag navigation and platform-specific tag creation controls.
apps/…/[slug].tsxShows tag detail presentation and edit or delete actions.
apps/…/InlineSearch.tsxShows Android's inline search entry and its shared search results flow.
apps/…/BookmarkSearchResults.tsxShows recent search history, server results, empty states, and paged results.
apps/…/useBookmarkSearchState.tsShows parsed queries, search modes, server capability gating, and local history.
apps/…/index.tsxShows account controls, device preferences, conditional subscription access, and server information.
apps/…/UsageStatsScreen.tsxShows the user-facing library, activity, source, and storage statistics view.
apps/…/reader-settings.tsxShows local reader overrides, server defaults, and the reader preview.
apps/…/toolbar-settings.tsxShows visible and overflow action ordering.
apps/…/settings-list.tsxShows the native settings groups and row types used across preference screens.
apps/…/ConnectionBanner.tsxShows how offline and unreachable-server state appears before a library action fails.
apps/…/QueryPageState.tsxShows the user-facing distinction between offline, unreachable, unauthorized, and general query errors.
apps/…/offlineLibrary.tsShows the account-scoped local article library and its versioned metadata and content records.
apps/…/offlineSync.tsShows selection, network gating, progress, cancellation, and one-pass coordination for automatic downloads.
apps/…/OfflineDownloadSync.tsxShows the app lifecycle and network events that start or cancel automatic download passes.
apps/…/offlineSync.test.tsShows the guarantees around list priority, network limits, failures, budgets, and logout safety.
apps/…/app.config.jsDefines platform identity, native plugins, share support, permissions, and build properties.
apps/…/eas.jsonDefines development, preview, and production build profiles.
apps/…/package.jsonShows the Expo and React Native runtime, shared workspace dependencies, native integrations, and mobile checks.