UI overview
The framework gives an application two ways to build its screens. They are independent: pick one per application, and nothing else in the framework depends on the choice.
| Nuxt UI package (primary) | Server-rendered pages (optional) | |
|---|---|---|
| What you write | Vue 3 single-file components | Go templ components or Java JTE templates |
| Build | Node 24, pnpm, Vite | None beyond the language’s own build (templ generates Go; JTE compiles during the Maven build) |
| Served by | The application’s server as static files (the SPA) | The application’s server as HTML |
| Interactivity | Client-side Vue | Plain HTML links and forms, plus Datastar for drawers, dialogs and live patches |
| Content policy | Strict: no 'unsafe-eval', no inline styles |
Weaker: script-src adds 'unsafe-eval' because Datastar compiles expressions |
| Typed API client | Generated from the application’s OpenAPI document | Not applicable: handlers call the domain code directly |
| Shared admin pages | Yes (admin) | No |
| Page | The UI package | Server-rendered pages |
Both options are fed by the same sources of truth: the UI kit specs are a behaviour checklist for both, and the same message catalogs drive languages.
Which to choose
Section titled “Which to choose”Choose the Nuxt UI package when the application needs any of:
- content a user can write (rich text, other people’s markup), because the strict policy has no
'unsafe-eval'; - client-side state, forms typed from the OpenAPI document, or the shared admin pages;
- components the kit does not specify (date pickers, charts, rich tables).
Choose server-rendered pages when the application is mostly forms, lists and detail pages, nobody on the team wants a Node toolchain, and the pages can live with the weaker script policy. The pages work without JavaScript: links, GET and POST forms, post/redirect/get. Datastar then adds the drawer, dialogs and live patches on top.
Server-rendered pages are available in both languages: the Go module go/ui (templ) and the Java module
framework-ui (JTE). They render the same kit markup, so a page behaves the same in either.
How the pieces fit
Section titled “How the pieces fit”flowchart LR
subgraph spa [Nuxt UI route]
V[Vue app<br/>@flowcatalyst/ui] --> C[Generated client<br/>@flowcatalyst/api-runtime]
end
subgraph ssr [Server-rendered route]
T[templ / JTE pages<br/>kit components] --> D[Datastar patches]
end
C --> S[Application server<br/>typed operations]
D --> S
S --> O[OpenAPI document]
O -.generates.-> C
- The Nuxt route talks to the server through the typed operations and the OpenAPI document; the browser session is a cookie managed by sessions and login.
- The server-rendered route has no separate API layer: a handler answers a navigation with a full document and a Datastar request with a patch of the same template.
- The server serves a built Nuxt application, and the assets for server-rendered pages, through static assets and the SPA.
Branding
Section titled “Branding”Both options can carry an application’s own brand (name, logo, colours). The mechanism differs and is covered on the UI kit page.
Specifications
Section titled “Specifications”The normative texts are Server-rendered UI, Static assets and the SPA and Languages and locale formatting.