Introducing a new way to review your PRs.

Read the announcement

triliumnext / trilium

Build your personal knowledge base with Trilium Notes

View on GitHub

20 documents · Updated Nov 23, 2026

docs / client-experience

Client experience

The browser client turns a note database into an interactive workspace. It restores the user's place, keeps note data current, and selects a suitable view for each note. The same experience adapts to desktop, mobile, Electron, standalone, and print use.

Browser startup

Bootstrap state

The client first gets session and workspace state from bootstrap. It then loads the base styles, direction-aware styles, theme resources, icons, and startup data before it presents the main entry point. A standalone leader tab can answer the request through its local database worker. Other sessions use the shared request route.

The startup splash reports progress and remains visible until the selected entry is ready. If the local worker does not answer within its startup limit, the client shows a reloadable error instead of leaving a blank page.

Eager cache, live-update, and option requests also avoid login and set-password screens. The client treats those screens as pre-auth even when the database already exists, so unauthenticated startup work does not run against a protected session.

References: apps/…/index.ts• L16-58 apps/…/index.ts• L90-116 apps/…/index.ts• L171-207 apps/…/splash.ts• L1-120 apps/…/utils.ts• L15-35

Entry selection

Bootstrap state selects the first user-facing screen. The client opens setup when no database is ready, password setup when the database has no password, login when the session is not authenticated, and the workspace when the session is ready. URL and saved-device choices can select desktop, mobile, or print mode.

The workspace entry renders its layout before it attaches the services that act around that layout. This keeps the first paint useful while note data and saved tabs continue to load. Commands also provide the common entry points for switching device mode, opening windows, following browser history, and leaving the session. Root command handling adds workspace actions such as search, source and attachment views, protected-session changes, reusable help splits, and platform-specific opens.

flowchart TD
    A[Bootstrap state] --> B{Session state}
    B -->|Database not ready| C[Setup]
    B -->|Password not set| D[Password setup]
    B -->|Not authenticated| E[Login]
    B -->|Ready| F{Device mode}
    F -->|Desktop or Electron| G[Desktop layout]
    F -->|Mobile| H[Mobile layout]
    F -->|Print| I[Print surface]
    G --> J[Shared application startup]
    H --> J
    J --> K[Cache and saved note contexts]

References: apps/…/index.ts• L245-304 apps/…/render_layout.ts• L9-31 apps/…/app_startup.ts• L21-55 apps/…/entrypoints.ts• L99-158 apps/…/root_command_executor.ts• L12-218

Workspace readiness

Shared application startup connects the rendered layout to the application context, installs command and shortcut handlers, sets up links and pasted-image handling, waits for the note cache, and restores tabs. It then warms the common text-note view during idle time. Desktop startup adds tooltips, browser or Electron context menus, and native window integration.

The desktop path lets the main window show its first settled frame after the note tree renders or a short wait expires. Electron also receives global shortcuts, same-tab opens, theme changes, native title-bar settings, and DevTools state. Startup checks keep platform and enrollment feedback in the same flow, so a CPU architecture warning or an OAuth enrollment result reaches the user as a normal client message rather than blocking workspace creation.

References: apps/…/app_startup.ts• L21-83 apps/…/desktop_startup.ts• L11-55 apps/…/desktop_startup.ts• L57-81 apps/…/startup_checks.ts• L14-78 apps/…/note_types.tsx• L178-224

Application composition

Application context

The application context is the shared coordination point for the active client window. It routes typed commands and events between layouts, note contexts, dialogs, keyboard actions, URLs, save checks, and platform services.

A command asks a registered owner to perform an action. If no owner handles it, the context turns it into an event so a widget elsewhere in the tree can respond. Command data can name a note context, pane, tab, or window target. This gives the note tree, tabs, panes, editors, collections, and embedded tools one interaction path without making them depend on each other directly. Before the window closes, registered listeners can delay unload until important state is saved.

The root command executor owns actions that cross widget boundaries. It opens generated search or SQL notes, changes note views, manages protected sessions, selects tabs, and adapts tools such as the note map to desktop or mobile surfaces. It also resolves shortcut help from the focused component or active type widget.

References: apps/…/app_context.ts• L39-81 apps/…/app_context.ts• L102-462 apps/…/app_context.ts• L464-603 apps/…/app_context.ts• L632-669 apps/…/app_context.ts• L701-740 apps/…/entrypoints.ts• L141-214 apps/…/root_command_executor.ts• L12-278

Workspace layouts

The desktop layout combines the launch bar, navigation pane, tabs, note splits, right-side tools, status bar, custom widgets, and modal surfaces. The mobile layout keeps the same note model but presents navigation, note detail, the launch bar, and note tools in a narrow-screen flow. Both layouts use shared split-note and modal composition.

The root surface applies appearance and device state around the note area. Desktop can dock or peek panes and enter focused modes. Mobile tracks the virtual keyboard and lets the note panel expose tools that desktop shows in its right panel.

References: apps/…/DesktopLayout.tsx• L30-91 apps/…/MobileLayout.tsx• L18-53 apps/…/layout_commons.tsx• L228-288 apps/…/LeftPane.tsx• L21-97

Overlay surfaces

Dialogs, toasts, pickers, quick editors, and confirmations form a shared layer above the workspace. Most dialog code loads only when its event first summons it. The first event waits for the dialog to load, and the dialog stays mounted for later use.

This layer gives setup actions, link editing, media insertion, settings, protection actions, and quick editing a common focus and event boundary. A quick editor uses its own note context while remaining connected to the same application commands and save rules. The same lazy boundary supports link-target selection without loading every link tool during startup.

References: apps/…/layout_commons.tsx• L31-81 apps/…/layout_commons.tsx• L90-181 apps/…/PopupEditor.tsx• L44-116 apps/…/edit_link.tsx• L134-186 apps/…/dialog.ts• L19-169

Appearance state

Appearance state connects user options, locale, fonts, theme styles, motion, content width, and device rules to the visible workspace. Layouts apply this state before their first useful paint and react to later option changes without changing note data.

Theme changes load the new styles before removing the old ones. A failed load keeps the previous theme. The effective light or dark style also follows the operating system when the selected theme allows it, and Electron receives the same effective colors for its native window.

References: apps/…/appearance.ts• L11-80 apps/…/theme.ts• L192-280 apps/…/theme.ts• L283-329 apps/…/layout_commons.tsx• L205-212 apps/…/native_window.ts• L17-55

Note presentation

Note contexts

A note context is the state for one displayed note in one pane. It carries the note path, view scope, hoisted tree, protection state, and short-lived data that related widgets need, such as headings, save state, page data, or content-load state. A main context represents a tab. Child contexts represent split panes in that tab.

When a context changes note, it resolves the path, checks the target, clears data tied to the old note, and notifies the component tree. A view-only change keeps data for the same note. On mobile, a note change normally moves the interface to the detail screen. A pinned tab redirects a different destination to a new tab instead of changing its fixed note. Context data lets type widgets publish note-specific structure and status to sidebars without coupling those widgets to the sidebar code.

Context data is owned by the displayed note. The client clears it on a real note switch but keeps it when only the view changes, so headings, PDF state, highlights, save state, and content-load state remain useful to the current tools without leaking into another note.

References: apps/…/note_context.ts• L22-37 apps/…/note_context.ts• L78-146 apps/…/note_context.ts• L193-285 apps/…/note_context.ts• L648-724

Tabs and navigation state

Tabs preserve the user's workspace across note movement and later sessions. Their state includes active notes, split panes, hoisting, view scope, pin state, and the focused split. The URL can carry the same navigation state, so browser history and links use the same model as in-app actions. View scope also carries one-use landing requests such as search terms, blocks, board cards, PDF pages, annotations, and headings.

On startup, the tab manager loads the saved contexts, removes targets that no longer exist, repairs invalid hoisting, and applies any note, split, or search state from the URL. It saves later changes as a workspace option. It also keeps detached contexts such as popup editors addressable by context ID, restores the last focused split, and can reopen recently closed tabs. The URL parser accepts only internal note paths and bounded split data, while malformed search tokens are ignored instead of stopping navigation.

Related navigation details are in Client note editing and navigation.

References: apps/…/tab_manager.ts• L19-47 apps/…/tab_manager.ts• L83-185 apps/…/tab_manager.ts• L195-231 apps/…/tab_manager.ts• L294-336 apps/…/tab_manager.ts• L473-527 apps/…/tab_manager.ts• L542-593 apps/…/navigation_state.ts• L1-160 apps/…/navigation_state.ts• L196-303 apps/…/navigation_state.ts• L327-426

Note detail

Note detail connects a note context to the view that presents or changes its content. It combines the effective note type, view scope, protection state, read-only state, and content availability to select that view.

Type changes and content loads are asynchronous. The detail surface covers the old content while the new content is not ready, keeps focus requests until the selected widget exists, and offers retry when content fails. A missing blob is shown as a non-editable placeholder so the client does not treat unavailable content as an empty note.

References: apps/…/NoteDetail.tsx• L30-49 apps/…/NoteDetail.tsx• L59-185 apps/…/NoteDetail.tsx• L323-359 apps/…/NoteDetail.tsx• L414-468

Type widgets

A type widget is the view that gives a note its interaction model. The client maps effective note types to editors, viewers, collections, settings, protected-session prompts, transcripts, and special views. It loads these views on demand, while the common text editor can be warmed after startup.

Text notes can be edited as rich content or viewed as rendered content. Markdown notes pair a source editor with a rendered preview and keep source lines, headings, highlights, and scroll position aligned. Code notes and code embeds provide a focused source view with language, line, and save controls. A blank text note can expose type, language, collection, template, and preset choices without changing the surrounding workspace.

The surrounding tab, pane, title, and side tools stay stable when a note changes between editable, read-only, source, attachment, visual, or protected views. This separates the note's interaction model from the workspace that hosts it.

References: apps/…/note_types.tsx• L11-26 apps/…/note_types.tsx• L28-176 apps/…/NoteDetail.tsx• L222-271 apps/…/NoteDetail.tsx• L363-407 apps/…/EditableText.tsx• L86-182 apps/…/Markdown.tsx• L90-149 apps/…/CodeEmbed.tsx• L63-127 apps/…/NoteTypeSwitcher.tsx• L37-117

Stateful widgets

Some widgets keep an active user session inside a note. Editors keep unsaved content and undo state. Chat keeps its conversation state. Visual tools keep selections and view state. Embedded tools can expose their own toolbar, find target, display mode, and fullscreen behavior while the parent note remains the save owner.

The embedded-widget bridge gives mounted content a clear lifetime. When its host replaces the content, the bridge disposes the widget and its subscriptions. Rich content rendering also turns Markdown, embeds, media, diagrams, math, code previews, office files, PDFs, and reference links into readable or interactive content. It limits nested note expansion and keeps document targets available to the host view.

References: apps/…/NoteDetail.tsx• L222-307 apps/…/content_renderer.ts• L54-169 apps/…/content_renderer.ts• L295-429 apps/…/content_renderer.ts• L945-1104 apps/…/content_renderer_text.ts• L45-151 apps/…/content_renderer_text.ts• L243-329 apps/…/office_renderer.ts• L7-61

Link targets are named places inside a note that a link can open, such as blocks, headings, anchors, document headings, or PDF pages. The client presents them as a second choice after a note is selected, so a user can link to the whole note or to a precise place within it.

The editor supplies current blocks and anchors when it has them. For another note or attachment, the client reads targets from the server. A target without a stable reference receives one after pending edits are saved, then the client builds a link path that preserves the target parameters. If the target listing is stale, the client asks the caller to list targets again instead of linking to an uncertain place. Copied links can use the in-app view or a shared page when the note supports public links.

Landing state is consumed by the destination widget. Bookmarks reveal collapsed sections and inactive tabs, block references reveal and flash the selected range, and document or PDF targets open at the named place. The same target model powers link editing, link mentions, reference labels, and nested target lists.

References: apps/…/link_targets.ts• L19-33 apps/…/link_targets.ts• L73-129 apps/…/link_targets.ts• L157-199 apps/…/link_targets.ts• L201-318 apps/…/link_targets.ts• L464-501 apps/…/link_target_copy.ts• L9-61 apps/…/bookmark_jump.ts• L14-38 apps/…/block_reference.ts• L269-367 apps/…/link.ts• L460-545

Note tools

Note tools read state from the active note context or its type widget. The desktop right panel and the mobile note panel can show structure, attributes, highlights, PDF data, note maps, chat, and other context-aware tools without changing the note's main view.

Because these tools consume published context data, they stay tied to the note that owns the data. Reused editors must identify the note they currently hold before they publish headings or other derived state. Find and search surfaces use shared range matching, accent-insensitive terms, cross-format text joining, and visible-range drawing so results remain aligned with the active note without making large documents slow to scroll.

References: apps/…/RightPanelContainer.tsx• L52-146 apps/…/MobileNotePanel.tsx• L18-103 apps/…/TableOfContents.tsx• L33-129 apps/…/TableOfContents.tsx• L153-325 apps/…/note_context.ts• L78-146 apps/…/highlight_matches.ts• L4-33 apps/…/highlight_matches.ts• L54-124 apps/…/highlight_matches.ts• L285-371

Stateful UI services

Frontend note cache

The Froca cache is the in-memory view of notes, branches, attributes, attachments, and content blobs. It loads the initial tree only when a usable session exists, fetches missing entities as needed, and exposes virtual branches such as saved-search results to the workspace.

Live changes update this shared cache. Open contexts, collections, side tools, and editors then converge on the same note state instead of keeping separate copies. A full reload replaces the visible state when protected access or another session change requires it.

References: apps/…/froca.ts• L27-72 apps/…/froca.ts• L74-100 apps/…/froca.ts• L103-120 apps/…/ws.ts• L146-154

Request transport

The server service is the common request boundary for browser, Electron, and standalone sessions. It adds session and workspace context, supports JSON and file operations, applies request limits, and chooses between a local standalone worker and the shared application route.

The boundary can reuse successful startup responses, keeps entity-change progress for live synchronization, and handles stale session tokens. A failed CSRF check refreshes bootstrap state once and retries the request with the new token. Uploads use the same choice between a local worker and the shared route.

References: apps/…/server.ts• L20-46 apps/…/server.ts• L128-250 apps/…/server.ts• L253-353 apps/…/server.ts• L380-569

Live updates

Live messages keep the cache and visible widgets aligned with changes from the server or another client. The update path serializes entity changes and emits shared reload events, so contexts, collections, sidebars, and editors do not need separate polling loops.

The same channel reports frontend reloads and protected-session expiry. Desktop file watching can also use the shared event path to tell the user when a file opened in the app changed outside the app.

References: apps/…/ws.ts• L63-129 apps/…/ws.ts• L132-154 apps/…/file_watcher.ts• L1-68

Save coordination

Save coordination groups rapid edits into useful writes while keeping each pending change bound to the note or attachment where it began. It exposes saved, saving, unsaved, and error states to note contexts and flushes pending work before navigation or unload. The save boundary bases writes on the version the editor read and follows client-side blob replacements until live cache updates arrive.

When an editor is reused for another note, pending content is captured before the binding changes. Version conflicts can be merged, shown to the user, or kept as a revision draft. Changes made while a conflict prompt or draft request is active are kept as later drafts, so the editor does not lose new input. This boundary is shared by text embeds, source embeds, and visual tools so content cannot be saved under the wrong note.

References: apps/…/spaced_update.ts• L11-26 apps/…/spaced_update.ts• L84-151 apps/…/spaced_update.ts• L245-387 apps/…/note_save.ts• L132-261 apps/…/note_save.ts• L370-417 apps/…/note_save.ts• L459-503 apps/…/note_save.ts• L662-693 apps/…/app_context.ts• L675-729

Note metadata and attachments

Note metadata gives the workspace rules for note behavior. Labels and relations can be owned by a note or inherited from its templates and ancestors, while the client keeps set values, boolean values, and selectable values aligned with that inheritance model.

Attachments serve both the user's content and the client’s supporting data. The client separates those groups for display, gives app-created roles readable names, and keeps unknown roles visible as stored instead of hiding them. This lets attachment views show user files without losing access to previews, view state, imports, transcripts, or document outlines.

References: apps/…/attributes.ts• L22-111 apps/…/attributes.ts• L159-198 apps/…/attributes.ts• L306-342 apps/…/attachment_groups.ts• L6-16 apps/…/attachment_groups.ts• L48-87 apps/…/attachment_role_names.ts• L23-55

Protected note state

Protected notes require a temporary protected session before their content reaches note widgets. Entering that session verifies access and reloads the cache. Leaving or expiry removes protected state from the visible workspace so later surfaces cannot keep using content from an ended session.

Protect and unprotect actions use the same boundary. They ask for the protected password when needed and report progress or failure through the shared task and dialog surfaces.

References: apps/…/protected_session.ts• L25-125 apps/…/protected_session_holder.ts• L4-27 apps/…/protect_subtree.tsx• L25-135 apps/…/ws.ts• L87-100

The shared client model supports focused child workflows:

Change checklist

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

  • Bootstrap and device changes must preserve setup, password, login, desktop, mobile, and print selection. The splash must remain until the selected entry exposes usable state.
  • Pre-auth changes must keep the note cache and authenticated startup requests away from setup, password, and login screens.
  • Command and event changes must preserve typed command ownership, event fallback, targeted context IDs, detached-context lookup, and embedded-widget delivery.
  • Layout changes must keep desktop and mobile on the same note-context and modal model. Mobile must retain keyboard-inset and note-panel behavior.
  • Context and URL changes must preserve saved tabs, split order, active-pane state, hoisting, pinned tabs, detached contexts, view scope, and search state.
  • Type-widget changes must preserve read-only rules, protected access, blob-stub handling, lazy loading, focus delivery, hidden-widget state, and print behavior.
  • Reused editor and embedded-widget changes must preserve note identity checks, save ownership, content-load gating, event disposal, find targets, toolbar actions, and fullscreen cleanup.
  • Cache and live-update changes must preserve ordered entity updates, protected-session reloads, shared refresh events, and stale-result rejection.
  • Save changes must preserve target binding across note switches, save flushes before navigation, version bases, draft recovery, visible save state, and failed-write recovery.
  • Save changes must also preserve later edits made while a conflict question or draft request is active, including attachment and block drafts.
  • Theme and appearance changes must keep live style swaps, font loading, locale direction, OS color changes, Electron colors, and background-effect suspension aligned.
  • Protection and transport changes must preserve password gating, session headers, CSRF recovery, local-worker routing, and removal of protected content after expiry.
  • Link target changes must preserve whole-note links, block and document target labels, target nesting, editor-owned target data, shared-page links, and server reference creation before link insertion.
  • Navigation changes must preserve one-use landing state, internal-link checks, malformed-token tolerance, detached-window environment state, and the limit on split panes carried in a URL.
  • Highlight changes must preserve matching across inline markup, accent folding, excluded content, browser fallback behavior, and cleanup when visible ranges change.
  • Command changes must preserve the active context used by root actions and the desktop/mobile surface chosen for each tool.
  • Markdown and rendered-content changes must preserve source-line mapping, preview scrolling, document target landing, embed cycle limits, sanitization, and print rendering.
  • Attachment and attribute changes must preserve the user/system attachment split, readable app-role names, unknown-role visibility, inherited values, and ordered multi-value updates.

Important failure modes

TriggerConsequenceGuard
The local database worker does not answer during bootstrapThe client cannot select an entry screenBootstrap uses a bounded wait and shows a reloadable startup error
Eager startup services run on a login or set-password screenAn unauthenticated request can fail with a missing-session errorPre-auth detection blocks cache, live-update, and option loads until authentication is ready
The note cache loads on a setup or pre-auth screenAn unauthenticated tree request can fail or expose the wrong surfaceInitial cache loading checks database and pre-auth state
A saved tab points to a deleted note or invalid hoisted noteStartup opens the wrong workspace or loses the intended noteTab restoration filters missing notes and repairs hoisting
A type load finishes after the note or view changedThe wrong widget can appear in the active paneNote detail associates asynchronous loads with the current request
A slow content blob is treated as empty editable contentAn editor can overwrite real content with an empty valueBlob-backed views show a non-editable loading or stub state
A hidden widget continues to receive active-only events or play mediaBackground widgets can change state or consume resourcesThe type-widget event gate filters events and stops hidden media
A reused editor publishes data for its previous noteHeadings, saves, or tools can target stale contentContext-aware widgets verify the editor's current note identity
A pending save is rebound before its content is capturedContent can be written to a different note or attachmentSave coordination snapshots the old target before rebinding
A version conflict is treated as a normal retryOne writer can overwrite another or the user's changes can disappearNote saving resolves the conflict, asks for a choice, or keeps a draft revision
New edits arrive while a conflict or draft request is activeLater user input can disappear or be mixed into the wrong revisionThe saver reads current editor data and keeps later changes as separate drafts
A theme stylesheet fails during a live swapThe workspace can become partly unstyledThe theme service keeps the old styles until the new set loads
A CSRF token expires while a request is activeA write fails even though the session appears activeThe request boundary refreshes bootstrap state and retries once
Protected access expires while content is visibleA later surface can continue to show protected contentLive session state reloads the cache and forces the frontend to leave the old view
A live update or asynchronous collection result arrives out of orderAn older state can replace a newer oneShared update paths serialize changes and reject stale work
A link target has no server reference when it is insertedThe link cannot reliably reopen the heading or anchorThe link flow saves pending note edits and creates the reference before insertion
A target listing changes before reference creationThe chosen target can receive the wrong referenceThe client reports a stale listing so the target list can be rebuilt
A bookmark or block target is consumed before content rendersA followed link does not reveal its destinationLanding state stays in the note context until the target container exists
A URL contains an external hash or too many split panesA link can rearrange the current window or create excessive panesNavigation accepts internal forms only and bounds detached-window split data
A search term crosses inline markup or contains accentsFind results miss visible textMatching can join text nodes and fold case and diacritics before painting ranges
A large document keeps every search range paintedScrolling and animations become slowWindowed highlights draw only blocks near the visible area
A Markdown block or preview loses its source lineEditor and preview scrolling or sidebar jumps land at the wrong placeMarkdown rendering tags blocks and tabs with source-line data
A rich embed refers back to a note already being renderedNested content can recurse or render repeatedlyEmbed rendering replaces repeated content with a reference link
An office preview is too large or uses an old blobThe document view is blank or shows stale contentThe renderer reports the failure, retries the current blob when possible, and keeps download/open actions

Key files

FileWhy to read it
apps/…/index.tsBootstrap, entry selection, resource loading, device mode, and splash control
apps/…/render_layout.tsShared layout rendering and application-context wiring
apps/…/app_startup.tsCommon post-render startup, service attachment, cache wait, and tab restoration
apps/…/desktop_startup.tsDesktop first paint, Electron hooks, native window sync, and context menus
apps/…/DesktopLayout.tsxDesktop shell, panes, note splits, custom widgets, and dialogs
apps/…/MobileLayout.tsxMobile shell, navigation surface, note panel, keyboard handling, and modals
apps/…/layout_commons.tsxShared note surface, appearance hook, lazy overlays, and split composition
apps/…/app_context.tsCross-component commands, events, URL changes, and unload save checks
apps/…/entrypoints.tsWindow, history, session, note execution, and workspace entry commands
apps/…/root_command_executor.tsRoot actions for search, note views, protected sessions, tabs, help splits, and platform opens
apps/…/note_context.tsPer-pane note state, view scope, hoisting, protection, and published context data
apps/…/tab_manager.tsSaved tabs, splits, history, pinned notes, detached contexts, and restoration
apps/…/NoteDetail.tsxEffective type selection, loading state, widget lifetime, focus, and print entry points
apps/…/note_types.tsxMapping from note types to lazy type widgets and common-view preload
apps/…/EditableText.tsxRich editing, embeds, links, save binding, and editor events
apps/…/Markdown.tsxMarkdown source-preview composition, source-line mapping, highlights, and scrolling
apps/…/CodeEmbed.tsxCode viewing and editing inside notes and embeds
apps/…/NoteTypeSwitcher.tsxBlank-note type, language, collection, template, and preset choices
apps/…/froca.tsShared in-memory note and attachment state
apps/…/server.tsRequest and upload transport, startup request reuse, session headers, local routing, and CSRF recovery
apps/…/ws.tsLive updates, reload messages, and protected-session expiry handling
apps/…/spaced_update.tsSave grouping, target binding, flushes, and retry behavior
apps/…/note_save.tsVersion-aware note saves, conflict choices, revision drafts, and replaced-blob tracking
apps/…/navigation_state.tsURL navigation, view scope, landing targets, and split-window state
apps/…/highlight_matches.tsSearch matching, cross-node text, range painting, and windowed highlights
apps/…/content_renderer.tsType-aware previews, interactive embeds, document viewers, and save ownership
apps/…/content_renderer_text.tsRead-only rich content, embeds, diagrams, math, code previews, and reference links
apps/…/link_targets.tsHeading and anchor targets, stable references, nesting, and landing parameters
apps/…/bookmark_jump.tsBookmark and document-target landing inside rendered content
apps/…/block_reference.tsBlock links, excerpts, clipboard actions, and block landing
apps/…/attachment_groups.tsUser and system attachment grouping
apps/…/attributes.tsInherited labels, relations, and note metadata updates
apps/…/appearance.tsAppearance options, fonts, locale direction, layout classes, and live option changes
apps/…/theme.tsTheme loading, live swapping, OS color changes, and Electron theme synchronization
apps/…/protected_session.tsProtected-session entry, exit, subtree actions, and session feedback