From Domain Models to Complete Applications
This document proposes a conjecture about user interfaces for structured information: that nearly every screen in such an application can be described by three decisions—which part of the object graph is visible, whether each visible child is layered beside its parent or inlined within it, and how sibling collections are arranged. We call a screen described this way a lens over the model. If the conjecture holds, a framework can own the mechanics of those decisions (navigation, collapse, responsive switching, editing, persistence) while the developer states only the policy, as hints on the model.
Strvct is an implementation of this idea in the Naked Objects tradition, which derives user interfaces from domain objects and their declared behavior. It adds a compositional interaction grammar—recursive master-detail navigation, inline documents, and responsive anchored tabs—and reuses the same model metadata for persistence, exchange, and agent interfaces. A production application, undreamedof.ai, shows the approach is feasible at scale; the argument for its generality rests on the reader's own experience of the interfaces they already know.
A PDF of the earlier revision is also available; it has not yet been updated to match this page.
Production example: undreamedof.ai.
A note on what kind of document this is. We do not offer a controlled evaluation or a measured productivity comparison. What follows is a design conjecture, an implementation that makes it concrete, and a deployed application that shows it is feasible. The evidence we ask the reader to weigh is their own: test the three-decision grammar of §3 against the information applications you know—mail clients, settings panels, issue trackers, CRMs—and see whether any screen needs a decision it cannot express. The strongest case against the conjecture would be a common, non-graphical information screen that does; we would like to hear of one. The hedges that remain in later sections mark where implementation lags the conjecture, not uncertainty about the conjecture itself.
Applications often repeat domain structure across model declarations, input controls, validation, persistence mappings, navigation, and integration schemas. A new property can require coordinated changes in several places. Shared components and schema-driven tools reduce this duplication, but application authors still commonly maintain a separate presentation structure.
Naked Objects, described by Pawson and Matthews [1], offers another approach: expose domain objects and actions through generated interfaces. Strvct retains that model-first architecture while exploring a richer set of reusable navigation and layout mechanisms.
┌──► UI (Navigation, Fields, Documents & Tabs)
├──► Storage (Local Pools & Cloud Sync)
Annotated Model ─┼──► Exchange (JSON Import, Export & Patches)
├──► Agent Interface (Schema & Patch Operations)
└──► Headless Domain ExecutionThe contribution is a compositional account of those UI mechanisms and an implementation that reuses model metadata across subsystems. The division of labor matters: the framework does not infer layouts, as early Naked Objects systems did; it implements the mechanics, and the developer states intent. Domain design, presentation decisions, and testing the resulting experience remain the developer's work—but as policy, not as separately authored screens.
Generating fields and collections is only part of generating a useful application. Users also need to retain context while traversing relationships, see related information together, and navigate on small screens. This paper focuses on three design requirements:
Forms and tables remain useful arrangements; the question is how they compose with other views. Existing model-driven systems also support customization: Apache Causeway, for example, documents UI extensions for maps and calendars [2]. Strvct's focus here is recursive composition of layered and inline views, rather than a claim that prior systems can render only forms and tables.
This section states the conjecture from the Abstract precisely. Before describing the grammar in detail, it helps to picture what a generated interface is actually showing.
Imagine the domain model as a graph: a tree of ownership, with symbolic links for the references that cross it. Now imagine drawing all of it at once—every object, every property, every collection, fully expanded. This drawing is the model's complete UI projection. This is a conceptual projection of the UI-exposed model, not a drawing that the runtime must materialize; internal or hidden properties need not be exposed.
Every screen the user sees is a lens over that drawing. At first order, a lens makes only two decisions:
Layering and inlining are not modes of the whole interface but choices made edge by edge, and they compose freely. A layered column may hold an inlined document whose link opens another layer; a document section may itself be a set of anchored tabs. The mixed lens above inlines Project's sections in one column and layers Task 2 into the next, and even the pure inlining lens layers its link to Person. Because the choice lives on each edge rather than on each screen, it can change without touching the model—set by a developer's hint, or switched by the framework as space changes.
At second order, a lens decides arrangement: how siblings within a layer or an inlined run are laid out—their orientation, whether their properties align across siblings into a table, or whether a value maps to position, as on a timeline (§4.1). Visibility, placement, and arrangement are the three decisions of the conjecture.
This framing reduces an apparently unbounded space of screens to something tractable. Within this grammar, a screen is described by a navigation path, placements for visible edges, and arrangements for visible collections. That is a small, regular decision space—small enough for the framework to own its mechanics (the path, collapse, layering, inlining, and responsive switching) while the developer states intent through hints on the model: which edges inline, which layer, how collections arrange. The decisions are the developer's; their implementation is the framework's.
It also explains behaviors that would otherwise have to be built screen by screen:
None of these decisions is new to the literature. Furnas's fisheye views [5] formalize visibility as a degree-of-interest function over a tree; overview+detail and focus+context interfaces [6] separate or blend levels of detail much as layering and inlining do; and tree visualization distinguishes children drawn within their parents (inclusion) from children drawn beside them (adjacency) [7]. Inlining a linked target is what Nelson called transclusion [8]. Systems such as Furnas's, APT [9], and SUPPLE [4] go further and compute the presentation—by interest score, by search, or by optimization. Strvct deliberately does not. It owns the mechanism and supplies the defaults; the developer states intent through hints, much as a projectional editor lets a language designer declare the notation through which a model is edited [10].
Our use of lens differs from the Magic Lenses of HCI [11], which filter a local region of the screen. It shares the editable-view intuition of bidirectional programming [12], because edits flow back to the model; this analogy does not assert the formal round-trip laws of a bidirectional lens.
The UI projection is not the only one. The same graph is projected into records in object pools (the storage projection), into JSON for import, export, and patching (the exchange projection), and into a schema-and-patch tool interface for AI agents (the agent projection, §7.1). Each reads the same annotated model, while requiring its own framework implementation and application configuration.
The conjecture's scope is structured-information applications: CRMs, project management tools, mail clients, issue trackers, settings panels, and the like. The claim is that their screens can be expressed through relationship traversal, property editing, domain actions, and semantic collection arrangements. Readers can check this against interfaces they use: a mail client is a layered column of mailboxes, a layered column of messages, and an inlined message body; a settings panel is a vertical master-detail with inlined groups; an issue page is an inlined document whose cross-references layer. A modal is a layered edge drawn in front rather than beside; a search result is a derived collection; a dashboard is a set of inlined siblings with quantitative arrangement.
What the grammar does not supply is the task-specific workflow—the triage sequence, the bulk edit, the pipeline report. Those remain application design, stated as domain actions and policies (§6.2) rather than as screens; the framework owns the interaction mechanics beneath them.
In terms of the lens (§3), we divide the user interface grammar into two distinct layers:
| Mechanism | Semantic Mapping | Examples | Implementation Scope |
|---|---|---|---|
| Recursive Composition | Parent-child relationships and presentation subtrees | Master-detail navigation, inline documents, anchored tabs | Implemented; arbitrary presets such as Kanban need their own grouping and interaction policies |
| Cross-Sibling Alignment | Equivalent property slots aligned across items | Tables, spreadsheets, pivot matrices | Proposed framework extension |
| Value-to-Space Mapping | Temporal or spatial values mapped to position and extent | Timelines, Gantt charts, calendars, maps | Part of the design space; no general generated arrangement established here |
| Quantitative Encoding | Numeric values mapped to marks or axes | Line charts, bar plots, heatmaps | Part of the design space; specialized renderers required unless supplied by the framework |
Generation covers the arrangements and controls the framework implements. A developer selects those mechanisms through metadata or node methods. A new arrangement or specialized interaction may require a new renderer; once implemented generically, that renderer can potentially serve multiple domain models.
Spatial meaning alone does not determine this boundary: both calendars and battle maps encode meaningful positions. The practical distinction is whether an existing renderer supports the required semantics and interactions. Creative canvases, code editors, 3D viewports, medical imaging, and specialized scientific plots often require additional rendering and interaction code.
An application can combine generated navigation, properties, and actions with such specialized surfaces. The amount of custom work depends on its tasks, not just its domain category.
Strvct implements this grammar using client-side JavaScript: traversal (visibility and placement) through master-detail views and inline layouts, and arrangement through the collection views they contain. Master-detail views are its layering lens (§5.2); inline layouts are its inlining lens (§5.3). The core visual building blocks are Tiles, Tile Stacks, and Master-Detail Views.
The fundamental primitive in Strvct is the Tile:
A Tile Stack is a scrollable, ordered list or grid of tiles. Stacks support drag-and-drop reordering, slide-to-delete, and direct data import/export.
A Master-Detail View pairs a master tile stack with a detail pane showing the selected object's contents. Each selection layers the chosen child in a new pane. Because detail panes can themselves contain child master-detail views, navigation composes recursively to arbitrary depth.
Key characteristics of Strvct's master-detail engine:
While column traversal is the default, certain complex screens require rendering child views directly inside parent tiles rather than pushing new columns. These children are inlined rather than layered. Strvct provides two inline layout mechanisms and a presentation-delegation hook:
Developers define domain models as JavaScript classes inheriting from SvStorableNode. Properties are declared as slots enriched with metadata annotations:
(class Character extends SvStorableNode {
initPrototypeSlots () {
// Name slot: String property, persisted, synced to view, editable
{
const slot = this.newSlot("name", "");
slot.setSlotType("String");
slot.setShouldStoreSlot(true);
slot.setSyncsToView(true);
slot.setCanInspect(true);
slot.setIsSubnodeField(true);
slot.setCanEditInspection(true);
}
// Level slot: Number property
{
const slot = this.newSlot("level", 1);
slot.setSlotType("Number");
slot.setShouldStoreSlot(true);
slot.setSyncsToView(true);
slot.setCanInspect(true);
slot.setIsSubnodeField(true);
}
// Inventory relationship: Navigable child object
{
const slot = this.newSlot("inventory", null);
slot.setSlotType("Inventory");
slot.setShouldStoreSlot(true);
slot.setFinalInitProto(Inventory);
slot.setIsSubnodeField(true);
}
}
initPrototype () {
this.setShouldStore(true);
this.setShouldStoreSubnodes(false); // fields are UI, not stored children
}
title () {
return this.name() || "Unnamed Character";
}
subtitle () {
return "Level " + this.level();
}
}.initThisClass());The Character declaration assumes an application-defined Inventory node class. isSubnodeField exposes each property as a field in the node's contents; canInspect also exposes it in the developer inspector. Neither persistence nor view synchronization alone makes a property visible.
With the default nodeChildrenLayout() value of "column", selecting a character opens its fields and Inventory relationship in the next pane. Selecting Inventory traverses that relationship. On a narrow viewport, earlier navigation panes collapse and breadcrumbs retain access to the path.
To show the same contents as a document, the class can override an existing presentation hook:
// Methods inside Character; the stored properties remain the same.
nodeChildrenLayout () {
return "inline";
}
nodeInlineDepth () {
return 1;
}If Inventory is large and should remain a navigable summary within that document, its class can override nodeIsInlined() to return false. A container that should show its children as responsive anchored tabs instead overrides nodeSubnodesAreAnchoredTabs() to return true. These are node-level policies interpreted by shared views, rather than separately authored screens.
Adding a species slot with the same type, visibility, persistence, and synchronization annotations as name makes it available to the shared field renderer and storage serializer. Labels, constraints, and presentation order still need deliberate choices. This illustrates the maintenance benefit: reuse of the field machinery rather than the elimination of presentation design.
Domain behavior must also be exposed deliberately. An action slot names a model method, and an optional <methodName>ActionInfo() method supplies presentation state. For example, these members can be added to Character:
// Inside initPrototypeSlots():
{
const slot = this.newSlot("advanceLevelAction", null);
slot.setSlotType("Action");
slot.setIsSubnodeField(true);
slot.setActionMethodName("advanceLevel");
}
// Methods on Character:
advanceLevel () {
if (this.level() >= 20) {
throw new Error("Character is already at the maximum level");
}
this.setLevel(this.level() + 1);
}
advanceLevelActionInfo () {
return {
title: "Advance Level",
isEnabled: this.level() < 20,
isVisible: true
};
}The shared action field reads availability from the model and invokes the method; domain checks remain necessary for callers outside the UI. Slot constraints support field validation, while cross-property rules and failed operations need useful application feedback. Bulk operations and multi-step workflows require explicit domain methods and state; they do not follow automatically from navigation relationships.
Slot annotations serve as a decoupling bridge. Each framework subsystem reads slot metadata independently without cross-system dependencies:
slotType, canEditInspection, and isSubnodeField to instantiate Property Tiles and navigate child subnodes.shouldStoreSlot to serialize records into local storage (IndexedDB) and cloud object pools.syncsToView to observe slot updates and post coalesced, deferred notifications to active views. ┌──► UI Rendering Layer (Property Tiles & Controls)
├──► Persistence Engine (IndexedDB & Cloud Commit)
Slot Metadata ────┼──► Sync Scheduler (Weak Observer Notifications)
├──► AI Agent Infrastructure (Patch Schemas & Verification)
└──► Internationalization Engine (Label Translation)Shared metadata lets framework subsystems reuse declarations. These capabilities require framework implementation, application configuration, and testing; their benefit is that much of that work is shared across generated views:
The agent projection uses slot metadata for a schema-and-patch interface, described here by two generic operation types:
schema-fetch: Retrieves the slot schema for any domain class or object instance.apply-patch: Applies a JSON patch payload to update properties or mutate child relationships.The number of operation types can remain constant as classes are added; schema volume, discovery work, and agent context do not. Invalid patches can return schema information for a correction attempt. A usable deployment must also define the exposed root objects, traversal and access rules, and how domain actions are invoked. A small tool vocabulary alone does not establish task success or low reasoning cost.
Domain classes that keep browser dependencies in the view and service layers can run under Node.js. Tests can instantiate model graphs, invoke methods, and assert slot states without browser automation. This makes domain testing cheaper; layout, focus, gestures, and browser integration still require UI tests.
Strvct divides persistence into two unified strategies:
Cloud synchronization sends versioned atomic commits containing only the modified slot records. Conflicts are detected deterministically per document pool.
Accessibility and localization are properties of the UI projection rather than projections of their own, and both are handled at the framework primitive level: translation is applied at the model-to-view boundary, as labels leave the model. Shared view primitives centralize ARIA roles, focus management, keyboard navigation, and translation hooks. Fixes in a primitive can benefit every view that uses it. Application-specific labels, reading order, custom renderers, assistive-technology behavior, and translation quality still need validation.
Every tile supports modifier-clicking (Option + Click) to reveal a live Property Inspector displaying all declared slots, storage flags, and validation states. Developers can toggle Developer Mode to inspect hidden internal subnodes without writing custom debugging views.
Strvct was used to build undreamedof.ai, a commercial AI-powered virtual tabletop application for tabletop roleplaying games (D&D 5e).
| Subsystem | Estimated Domain Classes | Reported Specialized Custom Views |
|---|---|---|
| Character System | ~30 | None reported |
| Campaign Hierarchy | ~20 | Map viewer |
| Session & Gameplay | ~25 | 3D dice engine |
| AI Integration & Tools | ~15 | None reported |
| Total | ~90 | 2 |
The application uses framework views for character sheets, inventory managers, spellbooks, campaign trees, settings, chat logs, and inspectors. Its reported specialized surfaces are a 3D WebGL dice roller and an interactive tactical battle map.
These are author-reported estimates, not a dated source audit, and class counts are not screen counts; the inventory is offered as an existence proof that the grammar covers a substantial application, not as a coverage ratio. The more informative evidence would be a worked example of one screen whose presentation hint grew into a presented node or a new renderer under product pressure, so a reader can see what "policy-sized" looks like in practice; that is planned for a future revision, along with a reproducible comparison of representative tasks on completion rate, time, navigation errors, and mobile usability.
| Dimension | Component Frameworks | Low-Code / Visual Builders | Strvct |
|---|---|---|---|
| Primary Presentation Artifact | Components and application composition | Visual layouts and bindings | Annotated nodes and presentation policies |
| Reuse Mechanism | Shared components, libraries, schema-driven tools | Platform widgets, templates, connectors | Shared views interpreting node and slot metadata |
| Presentation Decisions | Usually expressed in components | Usually expressed in visual configuration | Expressed in model metadata, node methods, and presentation nodes |
| Maintenance Tradeoff | App authors maintain composition and integration | App authors maintain layouts and platform configuration | Shared mechanics reduce repeated view code; metadata and domain complexity still grow |
| Agent Integration | Application- or library-defined APIs and tools | Platform- or application-defined connectors | Schema-and-patch operations derived from exposed metadata |
| Persistence | Chosen and integrated by the application | Platform-dependent | Framework object pools and cloud synchronization |
These categories overlap: component applications can derive forms from schemas, and low-code platforms can infer interfaces from data. Strvct's distinguishing commitment is to use the annotated object graph as the primary source for navigation, editing, and several non-UI subsystems. This table describes architectural defaults, not measured productivity differences.
Several limitations and questions remain:
Strvct demonstrates a model-first approach in which shared views interpret an annotated object graph. Its implemented navigation grammar combines recursive master-detail panes, inline documents, responsive anchored tabs, and presentation delegation. The lens model explains how these mechanisms can compose without a separately authored component tree for every screen.
The deployed application shows the grammar covers a substantial product; quantitative coverage, development cost, and comparative usability remain open, and the conjecture itself is offered for the reader to test against the interfaces they know. Tables with cross-sibling alignment and other semantic arrangements remain extensions rather than established capabilities of this implementation.
The practical promise is reduced duplication: developers maintain domain behavior and presentation intent, while the framework shares the machinery for rendering, synchronization, storage, and agent access.
[1] Pawson, R., & Matthews, R. (2002). Naked Objects. Wiley.
[2] Apache Software Foundation. Apache Causeway (formerly Apache Isis), including its description of UI extensions. Accessed October 28, 2026.
[3] Miller Columns. Wikipedia. https://en.wikipedia.org/wiki/Miller_columns (NeXTSTEP navigation pattern).
[4] Gajos, K., & Weld, D. S. (2004). SUPPLE: Automatically Generating User Interfaces. IUI '04.
[5] Furnas, G. W. (1986). Generalized Fisheye Views. CHI '86, 16–23.
[6] Cockburn, A., Karlson, A., & Bederson, B. B. (2008). A Review of Overview+Detail, Zooming, and Focus+Context Interfaces. ACM Computing Surveys, 41(1).
[7] Schulz, H.-J., Hadlak, S., & Schumann, H. (2011). The Design Space of Implicit Hierarchy Visualization: A Survey. IEEE Transactions on Visualization and Computer Graphics, 17(4), 393–411.
[8] Nelson, T. H. (1981). Literary Machines. Mindful Press.
[9] Mackinlay, J. (1986). Automating the Design of Graphical Presentations of Relational Information. ACM Transactions on Graphics, 5(2), 110–141.
[10] Voelter, M., Siegmund, J., Berger, T., & Kolb, B. (2014). Towards User-Friendly Projectional Editors. SLE 2014, 41–61.
[11] Bier, E. A., Stone, M. C., Pier, K., Buxton, W., & DeRose, T. D. (1993). Toolglass and Magic Lenses: The See-Through Interface. SIGGRAPH '93.
[12] Foster, J. N., Greenwald, M. B., Moore, J. T., Pierce, B. C., & Schmitt, A. (2007). Combinators for Bidirectional Tree Transformations: A Linguistic Approach to the View-Update Problem. ACM Transactions on Programming Languages and Systems, 29(3).
[13] Engelbart, D. C., & English, W. K. (1968). A Research Center for Augmenting Human Intellect. AFIPS Fall Joint Computer Conference.