Try the alpha

Choose your platform.

Connect your existing Nextcloud account. Android, Linux and Windows builds are ready to try.

Alpha software: keep another copy of important data. macOS is a packaging preview without sign-in; iOS is planned.

Release notes and checksums
Documentation
nati.ve documentation

Repository documentation

Native UI schema

The platform-neutral grammar that maps discovered resources, fields and actions to native components.

Reading time 9 minutesRepository file NATIVE_SCHEMA.md View source
On this page

The native schema is the trust boundary between discovery and presentation. Discovery may use deterministic inspection of the installed app's published contract, version-agnostic semantic patterns over its data, or local AI, but the renderer accepts only this typed document. Read this before changing a schema field, a component family, or how the renderer presents records and forms.

Last reviewed: 2026-10-02. The schema contract may have changed. The Kotlin runtime model defines the document the app consumes. The Rust reference model and compiler cover a smaller contract. They are not the app's runtime compiler and cannot serialize Kotlin extensions without loss. Check the linked source and contract tests before changing a wire field.

Contract ownership

The app compiles discovered contracts with DynamicAppDescriptorCompiler and maps the result to this schema in DynamicDescriptorMapper.kt. The Kotlin model has features the Rust reference model lacks: resource relationships, record image previews, enum labels, repeatable object inputs, and composite data grids. A passing reference-schema test therefore says nothing about these extensions in another consumer.

Rules for changing the contract:

  • Keep shared wire fields compatible, and test representative serialized documents at the consumer that actually reads them.
  • Before claiming two-way compatibility, test extension preservation, unknown fields, unsupported versions, and invalid bindings in both directions.
  • Never route an extended Kotlin document through the Rust model when that would discard fields.
  • The two compilers may share fixtures without sharing runtime ownership or requiring a native bridge.

Top-level document

Field Purpose
schemaVersion The contract version ("0.1").
app Binds the result to an installed app and its exact version.
confidence How completely the app was understood.
resources Data entities and their fields.
actions Bind an intent to a real server operation.
views Select reusable native components for resources and actions.
relationships Bind parent and child resources. Kotlin runtime only.
warnings Explain missing or ambiguous semantics.
dedicatedActions Operations no generic form, record action, or menu may offer: external effects, administration, credentials, and sharing without a declared permission field. Only a surface that applies their safeguards, such as the exactly-once mail composer, reads them. Kotlin runtime only; absent means empty.

Confidence

Level Meaning
verified The installed app's signed package contract or a verified protocol confirmed the semantics.
high Typed API metadata provides strong evidence.
medium Deterministic inference selected a likely interpretation.
low The evidence is insufficient for normal interaction.

AI inference can never raise confidence to verified by itself.

Actions and safety

Every action carries an immutable HTTP method, path, and operation identifier taken from verified contract evidence (see DYNAMIC_APP_DESCRIPTOR.md). The inference engine cannot invent these values.

Risk Default behavior
readOnly May run during discovery or normal browsing.
mutating Requires confirmation while inferred.
destructive Always requires confirmation and explicit visual treatment.

The risk field stays the wire field for confirmation and styling. Each action also carries optional write-policy fields, absent in schemas produced before they existed and mirrored by the Rust reference model:

Field Meaning
riskClass The operation's risk class, R0 (read) to R10 (credential); see AGENTS.md section 4.
readBackActionId The verified read in the write's route family, used to bind identities and read the result back.
idempotencyKeyHeader The exact name of a declared Idempotency-Key request header.
sharePermissionFieldId The declared field of the route-family read that proves the actor may share.

The Kotlin classification in DynamicOperationRiskClass.kt is authoritative; the Rust OperationRiskClass::classify is a reference subset (Last reviewed: 2026-11-02; check both sources, this may have changed). Both read the method, the literal route words, the operation ID, the label, and whether a body is declared, and both apply the same credential, administration, sharing, and external-effect words, except that Kotlin also treats app with password as a credential. Rust does not consult the action's effect, its destructive risk, or the verified package's access rule, so the two can differ:

  • a toggle, archive, unarchive, assign, or restore keeps its method class in Rust (create (R5) for a POST, R3 for a PATCH, R4 for a PUT with a body) and is idempotentStateSet (R1) in Kotlin;
  • a reorder or move keeps its method class in Rust and is reversibleScalarEdit (R2) in Kotlin;
  • a POST or PUT whose effect or risk is destructive, such as empty, leave, or clear, keeps its method class in Rust and is destructive (R7) in Kotlin;
  • a write the package limits to administrators keeps its word-derived class in Rust and is administration (R9) in Kotlin.

Never admit a write from a Rust-produced riskClass.

An adapter may improve labels, component choice, and field semantics. It may not add an operation that was absent from the discovery snapshot.

Component families

The NativeComponent grammar covers dashboards, file browsers, collection lists, media grids, details, forms, timelines, calendars, boards, mailboxes, contact lists, task lists, data tables, media libraries, recipe lists, document editors, conversation lists, chat threads, and feed readers.

feedReader marks an article collection: its records have a title, a link, content, and a publication marker or feed reference, or, when a sparse contract declares no response fields, the collection is named as articles or items beside a feed collection. Records are checked again when they arrive, and a collection whose records are not articles keeps the ordinary list.

A new component should represent an interaction pattern shared by more than one app. Behavior is chosen by semantic patterns over contracts and data, never by app identity or version. When a contract cannot express a behavior, the component stays read-only and explains why.

Adaptive collection presentation

Tables and records

  • Compact record summaries and desktop columns come from one query. Both search the same projected field values and keep collection paging.
  • Filters and sorting apply to loaded records only. They never invent a server search operation.
  • Records appear first. Inferred charts live in the separate Insights view rather than above a table.
  • Compact records show a bounded set of typed quantities, amounts, status, and dates. Desktop tables hide technical identity and ordering columns by default, but those values still drive action binding.
  • Permission summaries use explicit known boolean fields and never infer a role or grant.

Boards, mailboxes, and feed readers

  • Boards share lane navigation and action state, with widths adapted to the window.
  • A board-shaped or notes-shaped contract opens the full board or notes workspace instead of the generic component. The choice comes from route shape and field roles, never from the app ID or version; see DYNAMIC_APP_DESCRIPTOR.md.
  • LABEL command plans have typed item-read authority independent of a collection. Their exact read, generation and parent bindings prove only the selected write. Complete bounded membership observations live separately from display fields; absent/null/malformed/truncated/duplicate arrays do not mean an empty set. String and integer identities remain distinct, and member IDs never bind the record slot. The shared typed postcondition verifies both the requested member and unchanged other members. Board pickers use a conditional controller with durable recovery and verified card read provenance; unrelated route families retain their documented behavior. A refreshed baseline does not replace the unsaved selection, and status or repeat completion does not close the picker. This is bounded source/deterministic coverage, not live Deck qualification (Last reviewed: 2026-11-07; may change; see write admission and verification).
  • Compact mailboxes expose the same loaded accounts and mailboxes as the desktop rail. Message actions stay limited to verified available contracts.
  • A mailbox offers composing only for one verified send write that the descriptor retained (see DYNAMIC_APP_DESCRIPTOR.md) and whose body declares recipients and a message body. Every required input must map to a mail role: recipients (declared object or string arrays, or a single address string), subject, body, an HTML flag sent as false, the sending account's identity or address from a loaded account record, or In-Reply-To and References headers. Each identity input takes the one value its own role names; a required sender-identity (alias) input, any other required input, an undeclared recipient shape, or two equal candidates offers nothing.
  • A feed reader offers read, unread, star, and unstar only for idempotent verified writes with a current per-action identity proof. Both body-free inverse commands must be declared under the same item route, or the item update must declare a single supported boolean state field. The Kotlin binding retains pathParameterTypes for typed identity checks; a schema without those types cannot enable these rules. Separate read bindings and exact boolean read-back are required, with encrypted pending recovery. Routes for every article or a whole feed, and broader updates that would resend other fields, are not used.

Editing

  • Editing an existing record uses the current workspace and the shared record form. Creation and command forms may still use dialogs.
  • Presentation never changes field validation, target bindings, confirmation requirements, or mutation recovery.
  • The inline editor registers an account-scoped navigation guard for the shell, section changes, Back, and incoming links. Leaving a dirty draft needs confirmation. An in-flight save or an unresolved result blocks navigation until the result has been checked.

Shared choice controls

Dynamic enum fields use the shared native choice field. It keeps exact wire values, required and error labels, and icon or color previews. Compact Chores navigation and exclusive Budget category filters use the shared segmented control. These components own presentation and input only; navigation guards, bindings, mutation recovery, and permission checks stay with their callers. See shared native choice controls for reuse rules.

Bounded form restoration

Saved form state has fixed budgets so restoration can never truncate or submit a value silently.

  • Repeatable-object drafts share a 16 Ki-character saved-state budget across all fields, including JSON escaping and identifiers. Workspace and record forms reject an edit that exceeds it, show a size error, and keep the last accepted draft.
  • An existing value larger than the budget is not editable until the user explicitly resets the structured fields, where that action is offered.
  • No oversized value is silently truncated or submitted as an empty replacement.
  • The native task editor enforces a 32 Ki-character draft budget, including the selected calendar and the edit-start ETag, before accepting input. Larger existing tasks stay unchanged and cannot be edited in that dialog.

These guards limit saved UI state. They do not provide durable storage for large drafts.

Version invalidation

The contract requires a stored compiled contract to be revalidated before write actions become available whenever any of these change:

  • server URL or Nextcloud version;
  • app ID or app version;
  • OpenAPI or capability fingerprint;
  • adapter ID or adapter version, when present.

What the source does today (DynamicDiscoveryPersistence.kt):

  • Only verified, current descriptors are persisted, per account and app ID. The server origin is replaced with a placeholder before storage.
  • A restored descriptor is always read-only (LastKnownReadOnly) until the live server and installed app version have been checked again. When the installed app version is known and differs from the cached contract's version, the cached contract is not shown.
  • A contract already verified in this session stays verified on screen while it is checked again (DynamicAppDiscoveryRefresh.kt), so its write actions do not disappear and return. A write started during the check waits in DynamicContractWriteGate before any request is sent. It continues only if the check verifies the same contract; a failed, changed, or abandoned check rejects it, and an unverified result falls back to read-only as before.

The persisted entry is not yet keyed by OpenAPI or capability fingerprints. Until it is, the read-only restore and the live installed-version check are what keep stale writes disabled.