# WRNexusJS documentation 0.8.8 Status: Private Developer Preview. This site documents 47 release-aligned packages. # WrNexus > WrNexus is an SSR-first, **Bun-native** full-stack web framework. UI is written in > `.wrn` files (its own component language — NOT React/JSX/Vue). Routing is file-based. > This document teaches an AI how to write correct WrNexus code. It is private and > post-dates model training data, so rely on THIS document, not prior web-framework > assumptions. ## Golden rules - **Pages, components, and layouts are `.wrn` files.** Do NOT write `.tsx`/`.jsx`/React for UI. Do NOT use `useState`, hooks, JSX, or a client bundler. - **Routing is file-based** under `app/`. The filename is the route. No router config. - **Interactivity** lives in `state` + `{expr}` + `@event` inside `.wrn`. Components render on the server and hydrate automatically — you never write client-side JS islands. - **Runtime is Bun only** (uses `Bun.serve`, `bun:sqlite`, `Bun.password`, …). Node is not supported. - To add files, prefer the CLI: `wrnexus generate page ` / `component ` / `api ` / `schema `. ## Project layout ``` app/ pages/ *.wrn → routes: index.wrn = "/", about.wrn = "/about", blog/[slug].wrn = "/blog/:slug" components/ *.wrn → reusable UI, mounted in a page/component via
layouts/ *.wrn → named layouts; a page opts in with layout = "name" api/ *.ts → HTTP handlers: export const GET/POST/PUT/PATCH/DELETE = async (ctx) => Response middleware/ *.ts → export default async (ctx, next) => next() realtime/ *.ts → export default defineRoom({ ... }) from "@wrnexus/core" (ws://host/realtime/) schemas/ *.ts → validation schemas (the `v` builder), used by forms + parseBody locales/ *.json → i18n messages per language db/ schema.ts, queries/*.sql, migrations/*.sql styles/ global.css → Tailwind (default) or plain CSS wrnexus.config.ts → app config (AppConfig from "@wrnexus/styles") public/ → static assets served at / ``` ## `.wrn` page ```wrn page Home { layout = "public" // optional: a component in app/layouts/.wrn ("none" to skip) state count = 0 // optional: seeds client-reactive state (omit for pure SSR) seo { title = "Home" description = "..." canonical = "/" } view {

Hello

Count is {count}, doubled is {count * 2}.

} style { h1 { color: var(--wire-color-text); } } } ``` ## `.wrn` component ```wrn component Counter { props { // props come from mount attributes; each is coerced to the start = 0 // TYPE of its default (so start="5" arrives as the number 5) label = "Count" } state count = start // state may reference props view { } } ``` Mount it from any page/component: `
`. Components render on the server with their props, then hydrate — no per-component JS. ## The `view { }` block (plain HTML + a few directives) - `{expr}` — interpolate a JS expression. Reactive if it references `state`: `{count}`, `{count * 2}`, `{user.name}`. - `@event="expr"` — bind a DOM event; the expression runs in the reactive scope: `@click="count++"`, `@input="name = event.target.value"`. - `
` — mount a component (attrs become string props, coerced). - `` / `` — component/layout slots; fill with `
`. - **Server loop (DB/list/table):** `{#each as [, ]} …rows… {:empty} …fallback… {/each}` — iterates SSR data on the server and renders markup per item. `{item.field}` interpolates (HTML-escaped, XSS-safe). `` is a JS expression, usually an `ssr` data binding (see "Data-driven tables" below). This is how you render a database table in `.wrn`. - **Server conditional:** `{#if } … {:else if } … {:else} … {/if}` — renders the first truthy branch on the server. `` can reference `ssr` data, or the `item`/`index` of an enclosing `{#each}`. Works at page level and inside loops (e.g. `{#if r.active}{:else}{/if}` per row). For client-side show/hide based on reactive `state`, use `data-show="expr"` instead. - i18n: `{t:home.title}` in text, `t:placeholder="form.name"` on attributes — resolved per request from `app/locales/`. - Theme: any element with `data-wire-theme-toggle` toggles light/dark; `data-wire-theme-set="dark"` sets it. - Void/self-closing tags are fine: `
`, ``. - Only `{` and `}` are special (interpolation). Don't use a bare `}` in view text. ## Data-driven tables / lists (server-rendered `.wrn`) Use an `ssr` data binding to fetch rows on the server, then `{#each}` to render them. This renders on the **server** (SSR-first) and is HTML-escaped by default. ```wrn page Admin { layout = "dashboard" // Fetch on the server. The api handler at /api/contacts returns { contacts: [...] }; // this block's `return contacts` exposes that array (via `$data`) as the binding `rows`. ssr { api rows GET /api/contacts { return contacts } } view { {#each rows as r, i} {:empty} {/each}
#{i} {r.name} {r.email}
No submissions yet.
} } ``` The matching API returns the array under a key the `ssr` block reads: ```ts // app/api/contacts.ts → GET /api/contacts import { getDb } from "@wrnexus/db"; export const GET = async () => { const contacts = await getDb().all("SELECT id, name, email FROM contacts ORDER BY id DESC"); return Response.json({ contacts }); // ssr block does `return contacts` }; ``` **Prefer this `.wrn` + `{#each}` approach for DB-backed tables and lists.** (`.ts`/`.tsx` pages returning an HTML string are also supported for fully-custom programmatic rendering, but a `.wrn` page with `ssr` data + `{#each}` is the idiomatic, SSR-first way.) ## API routes (`app/api/*.ts`) ```ts // app/api/users/list.ts → GET /api/users/list import { getDb } from "@wrnexus/db"; export const GET = async (ctx) => { return Response.json({ users: await ListUsers(getDb()) }); }; export const POST = async (ctx) => { const body = await ctx.req.json(); return Response.json({ ok: true, body }, { status: 201 }); }; ``` `ctx` (the `Context` from `@wrnexus/core`) has: `req: Request`, `url: URL`, `params: Record` (dynamic route params, e.g. `/users/[id]` → `ctx.params.id`), `lang: string`, `t(key, params?)` (i18n), `cookies` (get/set), `session` (get/set). Auth: `getUser(ctx)` after `sessionAuth`/`logIn`. When an SSO forward-auth verifier needs the URL that originally reached the gateway, use `@wrnexus/helpers` instead of constructing it from untrusted headers: ```ts import { redirectToLogin } from "@wrnexus/helpers"; return redirectToLogin(ctx, "/login", { allowedHosts: ["admin.localhost:3000", "reports.localhost:3000"], }); ``` The package also exports `getOriginalRequestUrl`, `getOriginalRequestOrigin`, `getOriginalRequestPath`, and `getOriginalRequestMethod`. Always pass `allowedHosts` when using forwarded gateway URLs; the helper rejects untrusted redirect destinations. ## Middleware & realtime ```ts // app/middleware/logger.ts export default async function logger(ctx, next) { console.log(ctx.req.method, ctx.url.pathname); return next(); // return a Response WITHOUT calling next() to short-circuit } ``` ```ts // app/realtime/chat.ts → ws://host/realtime/chat import { defineRoom } from "@wrnexus/core"; export default defineRoom({ onConnect(client) { client.send({ type: "system", text: "connected" }); }, onMessage(client, msg) { client.room.broadcast({ type: "message", data: msg }); }, }); ``` Client side: a page opts in with `data-room="chat"` (handled by the realtime runtime). ## Config (`wrnexus.config.ts`) ```ts import type { AppConfig } from "@wrnexus/styles"; const config: AppConfig = { seo: { title: "App", titleTemplate: "%s | App", description: "..." }, styles: { entry: "app/styles/global.css", process: async ({ entryPath, mode }) => /* Tailwind */ "" }, fonts: { sans: '"Inter", system-ui, sans-serif', google: [{ family: "Inter", weights: [400, 600] }] }, theme: { default: "dark", themes: { light: { "color-primary": "#2563eb" } } }, i18n: { default: "en", locales: ["en", "es"] }, db: { driver: "sqlite", url: "file:./dev.db" }, security: { cors: { enabled: true, origin: ["http://localhost:5173"] } }, // profiles: { production: { db: { driver: "postgres", url: process.env.DATABASE_URL } } }, }; export default config; ``` ## Database (`@wrnexus/db`) ```ts // app/db/schema.ts import { v, table } from "@wrnexus/db"; export const users = table("users", { id: v.id(), name: v.string(), email: v.string().unique(), createdAt: v.timestamp(), }); ``` - Queries: write `app/db/queries/*.sql` with `-- name: ListUsers :many` blocks; `wrnexus db generate` emits typed functions. - Access at runtime: `import { getDb } from "@wrnexus/db"; const rows = await ListUsers(getDb());` - Migrations in `app/db/migrations/`; run `wrnexus db migrate` (dev auto-migrates sqlite). ## Validation (`@wrnexus/validation`) ```ts // app/schemas/login.ts import { v } from "@wrnexus/validation"; export default v.object({ email: v.string().email(), password: v.string().min(8), }); ``` In an API route: `import s from "../schemas/login"; import { parseBody } from "@wrnexus/validation"; const r = await parseBody(s, ctx.req);` → `r.ok ? r.value : r.response`. In a form: `
` + `` (client + server validation wired automatically). ## AI / LLM (`@wrnexus/ai`) ```ts // app/api/ai.ts import { createAI } from "@wrnexus/ai"; const ai = createAI(); // reads ANTHROPIC_API_KEY; default model claude-opus-4-8 export const POST = async (ctx) => { const { prompt } = await ctx.req.json(); return ai.streamResponse(prompt); // or: return Response.json({ text: await ai.generate(prompt) }) }; ``` ## CLI See the generated **Complete CLI command reference** below. It is sourced from the installed 0.8.8 executable so command names and options cannot drift. ## When asked to "create a page/component/feature" 1. Create the `.wrn` file under `app/pages/` (or `app/components/`) with a `page`/`component` block — or run `wrnexus generate page `. 2. Put markup in `view { }`, interactive bits in `state` + `{expr}` + `@event`, reusable UI as components mounted via `data-component`. 3. For data, add an `app/api/*.ts` route and `getDb()`; for forms, add an `app/schemas/*.ts` and `data-schema`. 4. Style with Tailwind utility classes in the view, or theme tokens (`var(--wire-*)`), or `style { }`. 5. Never emit React/JSX, a manual router, or client-side island JS — the framework handles hydration. # Complete CLI command reference This section is generated from the installed `@wrnexus/cli@0.8.7` executable. It is the canonical command inventory for this release. ```text wrnexus — WrNexus CLI Usage: wrnexus dev [app-dir] [--port=3000] [--host=::] Start the development server (live reload) wrnexus dev [app-dir] --services Start local production-service simulators with the app wrnexus dev [app-dir] --production-runtime wrnexus dev [app-dir] --services [--services-port=3099] [--services-http] Rebuild and reload the exact production artifact wrnexus build [app-dir] Build a production server bundle + assets wrnexus preview [app-dir] Serve the existing exact production output wrnexus create Scaffold a new app wrnexus workspace Scaffold a monorepo (apps/* + shared packages/*) wrnexus workspace add [--domain=name.localhost] Add an app to the current workspace wrnexus gateway [--port=3000] Serve every workspace app behind one port, routed by domain wrnexus production [workspace-dir] Build, migrate, and serve the complete production workspace wrnexus [workspace-dir] Run a configured workspace environment (development/staging/custom) wrnexus generate Scaffold a page | component | api | schema wrnexus generate routes | docker | mobile Generate routes or scaffold deployment targets wrnexus generate types [app-dir] Generate application-wide route/component/key types wrnexus routes [app-dir] Generate typed named routes wrnexus typecheck [app-dir] Generate types and check TypeScript plus every .wrn file wrnexus mobile add Install Capacitor or Expo native packages wrnexus mobile compile Compile .wrn pages into native Expo routes wrnexus native list List cross-platform native capabilities wrnexus native add Install capability packages for the configured mobile mode wrnexus eject Copy a Wire UI component into app/components wrnexus update [dir] [--latest] Upgrade deps, migrate project files, and verify the app wrnexus db Migrations: migrate | rollback | status | seed | generate | new wrnexus authz Authorization: list | generate | init [--dialect=sqlite|postgres|mysql] wrnexus test [level] [app-dir] [--watch] Run unit | component | api | browser | visual | accessibility | performance wrnexus profiles [app-dir] List config profiles (dev/prod/uat/…) and their env files wrnexus doctor [app-dir] [--fix] Check project health; optionally apply safe repairs wrnexus compatibility [app-dir] Inspect or explicitly upgrade behavior defaults wrnexus contracts [app-dir] Detect breaking boundary contract changes wrnexus security [app-dir] Audit ASVS controls, inspect headers, or run abuse tests wrnexus api [app-dir] Generate OpenAPI, docs, Postman, examples and SDKs wrnexus sdk generate [app-dir] Generate TypeScript, JavaScript, Java, Go, or Python SDK wrnexus deploy [app-dir] Generate docker | kubernetes | systemd | railway | render | fly wrnexus mcp [app-dir] Start the WRNexus MCP server over stdio wrnexus i18n [app-dir] Extract and audit translation keys wrnexus report [app-dir] [--file=app/pages/page.wrn] Create a sanitized reproduction bundle wrnexus playground [--port=4173] Start the shareable WRN compiler playground wrnexus config [app-dir] --explain Print the fully resolved profile configuration wrnexus analyze [app-dir] Inspect dist/build-report.json and performance budgets wrnexus explain [subject] [app-dir] Explain compiler and production build decisions wrnexus explain [app-dir] Explain route caching or permission enforcement wrnexus inspect [app-dir] Inspect packages | plugins | routes | assets | runtimes | styles | migrations | bundle wrnexus inspect component [app-dir] Inspect a component's typed public contract wrnexus generate system Scaffold a complete framework-native package Profiles: pass --profile= to dev/build/db (or set WRNEXUS_PROFILE) to load that profile's .env cascade and config overrides. e.g. wrnexus dev --profile=uat Workspace environments: configure protocol, rootDomain, port, hostname, runtime (development|production), hmr, build, migrate, and profile in wrnexus.workspace.ts. CLI overrides: --port, --host, --build/--no-build, --migrate/--no-migrate, --profile, and --prepare-only. Update options: --dry-run previews changes; --no-verify skips post-update check/build. ``` ## CLI workflows with expected output Commands below are copy-ready. Paths, ports, counts, and timings vary by project; the shown output identifies the success condition to check. ### Create, check, build, and preview an application ```bash bunx @wrnexus/cli@0.8.7 create my-app cd my-app bun install bunx wrnexus typecheck . bunx wrnexus build . bunx wrnexus preview . --port=3000 ``` Expected output: ```text ✓ Application types are valid ✓ Runtime: .../dist/reactive.js ✓ Styles: .../dist/styles.css ✓ Server: .../dist/server.js Run it: bun .../dist/server.js ``` ### Generate framework files and committed application types ```bash bunx wrnexus generate page Dashboard bunx wrnexus generate component status-card bunx wrnexus generate api health bunx wrnexus generate schema account bunx wrnexus generate routes bunx wrnexus generate types . ``` Expected output includes created source paths followed by: ```text ✓ Generated app/routes.gen.ts (... routes) ✓ Generated .../app/types/wrnexus.generated.d.ts (... routes, ... components) ``` ### Run development and production-runtime modes ```bash bunx wrnexus dev . --port=3000 bunx wrnexus dev . --services --services-port=3099 bunx wrnexus dev . --production-runtime --port=3000 ``` Expected output reports the active profile, discovered plugins/routes, generated cache path, and listening URL. Production-runtime mode rebuilds and reloads the exact production artifact. ### Database lifecycle ```bash bunx wrnexus db status bunx wrnexus db new create_accounts --from-models bunx wrnexus db migrate bunx wrnexus db generate bunx wrnexus db seed ``` Expected output identifies the selected profile/dialect, migration state, applied migration names, and generated typed query files. Run `db rollback` only when intentionally reverting the latest migration. ### Diagnose, inspect, and enforce contracts ```bash bunx wrnexus doctor . bunx wrnexus typecheck . bunx wrnexus compatibility check . bunx wrnexus contracts check . bunx wrnexus security audit . bunx wrnexus inspect packages . bunx wrnexus inspect routes . bunx wrnexus inspect component Navbar . bunx wrnexus analyze . ``` Successful checks exit with status 0. Inspect commands print the resolved package, route, component, asset, runtime, style, migration, or bundle contract without changing the application. ### Tests, API artifacts, SDKs, and deployment manifests ```bash bunx wrnexus test unit . bunx wrnexus test component . bunx wrnexus test api . bunx wrnexus test browser . bunx wrnexus api generate . bunx wrnexus api docs . bunx wrnexus sdk generate typescript . bunx wrnexus deploy docker . ``` Test commands return the underlying suite summary and a nonzero status on failure. API/SDK/deploy commands report each generated artifact; review and commit generated files after validation. ### Workspaces and environments ```bash bunx wrnexus workspace company-platform cd company-platform bunx wrnexus workspace add reports --domain=reports.localhost bunx wrnexus gateway --port=3000 bunx wrnexus production . --prepare-only bunx wrnexus staging . ``` Expected output lists created apps, domain mappings, selected environment/profile, build and migration decisions, and the gateway address. ### Internationalization, native targets, MCP, and support bundles ```bash bunx wrnexus i18n extract . bunx wrnexus i18n validate . bunx wrnexus generate mobile bunx wrnexus mobile compile bunx wrnexus native list bunx wrnexus mcp . bunx wrnexus report . --file=app/pages/index.wrn ``` Expected output identifies extracted/validated translation keys, generated native routes, available capabilities, MCP stdio startup, or the sanitized reproduction archive. MCP uses stdio, so protocol messages—not a web URL—are its normal runtime output. ### Safe upgrades ```bash bunx wrnexus update . --latest --dry-run bunx wrnexus update . --latest ``` The dry run previews dependency and migration changes. A real update prints the source and target versions, backup directory, each migration action, installation result, and verification result. Commit or back up the application before upgrading. # Complete CLI command reference This section is generated from the installed `@wrnexus/cli@0.8.7` executable. It is the canonical command inventory for this release. ```text wrnexus — WrNexus CLI Usage: wrnexus dev [app-dir] [--port=3000] [--host=::] Start the development server (live reload) wrnexus dev [app-dir] --services Start local production-service simulators with the app wrnexus dev [app-dir] --production-runtime wrnexus dev [app-dir] --services [--services-port=3099] [--services-http] Rebuild and reload the exact production artifact wrnexus build [app-dir] Build a production server bundle + assets wrnexus preview [app-dir] Serve the existing exact production output wrnexus create Scaffold a new app wrnexus workspace Scaffold a monorepo (apps/* + shared packages/*) wrnexus workspace add [--domain=name.localhost] Add an app to the current workspace wrnexus gateway [--port=3000] Serve every workspace app behind one port, routed by domain wrnexus production [workspace-dir] Build, migrate, and serve the complete production workspace wrnexus [workspace-dir] Run a configured workspace environment (development/staging/custom) wrnexus generate Scaffold a page | component | api | schema wrnexus generate routes | docker | mobile Generate routes or scaffold deployment targets wrnexus generate types [app-dir] Generate application-wide route/component/key types wrnexus routes [app-dir] Generate typed named routes wrnexus typecheck [app-dir] Generate types and check TypeScript plus every .wrn file wrnexus mobile add Install Capacitor or Expo native packages wrnexus mobile compile Compile .wrn pages into native Expo routes wrnexus native list List cross-platform native capabilities wrnexus native add Install capability packages for the configured mobile mode wrnexus eject Copy a Wire UI component into app/components wrnexus update [dir] [--latest] Upgrade deps, migrate project files, and verify the app wrnexus db Migrations: migrate | rollback | status | seed | generate | new wrnexus authz Authorization: list | generate | init [--dialect=sqlite|postgres|mysql] wrnexus test [level] [app-dir] [--watch] Run unit | component | api | browser | visual | accessibility | performance wrnexus profiles [app-dir] List config profiles (dev/prod/uat/…) and their env files wrnexus doctor [app-dir] [--fix] Check project health; optionally apply safe repairs wrnexus compatibility [app-dir] Inspect or explicitly upgrade behavior defaults wrnexus contracts [app-dir] Detect breaking boundary contract changes wrnexus security [app-dir] Audit ASVS controls, inspect headers, or run abuse tests wrnexus api [app-dir] Generate OpenAPI, docs, Postman, examples and SDKs wrnexus sdk generate [app-dir] Generate TypeScript, JavaScript, Java, Go, or Python SDK wrnexus deploy [app-dir] Generate docker | kubernetes | systemd | railway | render | fly wrnexus mcp [app-dir] Start the WRNexus MCP server over stdio wrnexus i18n [app-dir] Extract and audit translation keys wrnexus report [app-dir] [--file=app/pages/page.wrn] Create a sanitized reproduction bundle wrnexus playground [--port=4173] Start the shareable WRN compiler playground wrnexus config [app-dir] --explain Print the fully resolved profile configuration wrnexus analyze [app-dir] Inspect dist/build-report.json and performance budgets wrnexus explain [subject] [app-dir] Explain compiler and production build decisions wrnexus explain [app-dir] Explain route caching or permission enforcement wrnexus inspect [app-dir] Inspect packages | plugins | routes | assets | runtimes | styles | migrations | bundle wrnexus inspect component [app-dir] Inspect a component's typed public contract wrnexus generate system Scaffold a complete framework-native package Profiles: pass --profile= to dev/build/db (or set WRNEXUS_PROFILE) to load that profile's .env cascade and config overrides. e.g. wrnexus dev --profile=uat Workspace environments: configure protocol, rootDomain, port, hostname, runtime (development|production), hmr, build, migrate, and profile in wrnexus.workspace.ts. CLI overrides: --port, --host, --build/--no-build, --migrate/--no-migrate, --profile, and --prepare-only. Update options: --dry-run previews changes; --no-verify skips post-update check/build. ``` ## CLI workflows with expected output Commands below are copy-ready. Paths, ports, counts, and timings vary by project; the shown output identifies the success condition to check. ### Create, check, build, and preview an application ```bash bunx @wrnexus/cli@0.8.7 create my-app cd my-app bun install bunx wrnexus typecheck . bunx wrnexus build . bunx wrnexus preview . --port=3000 ``` Expected output: ```text ✓ Application types are valid ✓ Runtime: .../dist/reactive.js ✓ Styles: .../dist/styles.css ✓ Server: .../dist/server.js Run it: bun .../dist/server.js ``` ### Generate framework files and committed application types ```bash bunx wrnexus generate page Dashboard bunx wrnexus generate component status-card bunx wrnexus generate api health bunx wrnexus generate schema account bunx wrnexus generate routes bunx wrnexus generate types . ``` Expected output includes created source paths followed by: ```text ✓ Generated app/routes.gen.ts (... routes) ✓ Generated .../app/types/wrnexus.generated.d.ts (... routes, ... components) ``` ### Run development and production-runtime modes ```bash bunx wrnexus dev . --port=3000 bunx wrnexus dev . --services --services-port=3099 bunx wrnexus dev . --production-runtime --port=3000 ``` Expected output reports the active profile, discovered plugins/routes, generated cache path, and listening URL. Production-runtime mode rebuilds and reloads the exact production artifact. ### Database lifecycle ```bash bunx wrnexus db status bunx wrnexus db new create_accounts --from-models bunx wrnexus db migrate bunx wrnexus db generate bunx wrnexus db seed ``` Expected output identifies the selected profile/dialect, migration state, applied migration names, and generated typed query files. Run `db rollback` only when intentionally reverting the latest migration. ### Diagnose, inspect, and enforce contracts ```bash bunx wrnexus doctor . bunx wrnexus typecheck . bunx wrnexus compatibility check . bunx wrnexus contracts check . bunx wrnexus security audit . bunx wrnexus inspect packages . bunx wrnexus inspect routes . bunx wrnexus inspect component Navbar . bunx wrnexus analyze . ``` Successful checks exit with status 0. Inspect commands print the resolved package, route, component, asset, runtime, style, migration, or bundle contract without changing the application. ### Tests, API artifacts, SDKs, and deployment manifests ```bash bunx wrnexus test unit . bunx wrnexus test component . bunx wrnexus test api . bunx wrnexus test browser . bunx wrnexus api generate . bunx wrnexus api docs . bunx wrnexus sdk generate typescript . bunx wrnexus deploy docker . ``` Test commands return the underlying suite summary and a nonzero status on failure. API/SDK/deploy commands report each generated artifact; review and commit generated files after validation. ### Workspaces and environments ```bash bunx wrnexus workspace company-platform cd company-platform bunx wrnexus workspace add reports --domain=reports.localhost bunx wrnexus gateway --port=3000 bunx wrnexus production . --prepare-only bunx wrnexus staging . ``` Expected output lists created apps, domain mappings, selected environment/profile, build and migration decisions, and the gateway address. ### Internationalization, native targets, MCP, and support bundles ```bash bunx wrnexus i18n extract . bunx wrnexus i18n validate . bunx wrnexus generate mobile bunx wrnexus mobile compile bunx wrnexus native list bunx wrnexus mcp . bunx wrnexus report . --file=app/pages/index.wrn ``` Expected output identifies extracted/validated translation keys, generated native routes, available capabilities, MCP stdio startup, or the sanitized reproduction archive. MCP uses stdio, so protocol messages—not a web URL—are its normal runtime output. ### Safe upgrades ```bash bunx wrnexus update . --latest --dry-run bunx wrnexus update . --latest ``` The dry run previews dependency and migration changes. A real update prints the source and target versions, backup directory, each migration action, installation result, and verification result. Commit or back up the application before upgrading. # Complete CLI command reference This section is generated from the installed `@wrnexus/cli@0.8.7` executable. It is the canonical command inventory for this release. ```text wrnexus — WrNexus CLI Usage: wrnexus dev [app-dir] [--port=3000] [--host=::] Start the development server (live reload) wrnexus dev [app-dir] --services Start local production-service simulators with the app wrnexus dev [app-dir] --production-runtime wrnexus dev [app-dir] --services [--services-port=3099] [--services-http] Rebuild and reload the exact production artifact wrnexus build [app-dir] Build a production server bundle + assets wrnexus preview [app-dir] Serve the existing exact production output wrnexus create Scaffold a new app wrnexus workspace Scaffold a monorepo (apps/* + shared packages/*) wrnexus workspace add [--domain=name.localhost] Add an app to the current workspace wrnexus gateway [--port=3000] Serve every workspace app behind one port, routed by domain wrnexus production [workspace-dir] Build, migrate, and serve the complete production workspace wrnexus [workspace-dir] Run a configured workspace environment (development/staging/custom) wrnexus generate Scaffold a page | component | api | schema wrnexus generate routes | docker | mobile Generate routes or scaffold deployment targets wrnexus generate types [app-dir] Generate application-wide route/component/key types wrnexus routes [app-dir] Generate typed named routes wrnexus typecheck [app-dir] Generate types and check TypeScript plus every .wrn file wrnexus mobile add Install Capacitor or Expo native packages wrnexus mobile compile Compile .wrn pages into native Expo routes wrnexus native list List cross-platform native capabilities wrnexus native add Install capability packages for the configured mobile mode wrnexus eject Copy a Wire UI component into app/components wrnexus update [dir] [--latest] Upgrade deps, migrate project files, and verify the app wrnexus db Migrations: migrate | rollback | status | seed | generate | new wrnexus authz Authorization: list | generate | init [--dialect=sqlite|postgres|mysql] wrnexus test [level] [app-dir] [--watch] Run unit | component | api | browser | visual | accessibility | performance wrnexus profiles [app-dir] List config profiles (dev/prod/uat/…) and their env files wrnexus doctor [app-dir] [--fix] Check project health; optionally apply safe repairs wrnexus compatibility [app-dir] Inspect or explicitly upgrade behavior defaults wrnexus contracts [app-dir] Detect breaking boundary contract changes wrnexus security [app-dir] Audit ASVS controls, inspect headers, or run abuse tests wrnexus api [app-dir] Generate OpenAPI, docs, Postman, examples and SDKs wrnexus sdk generate [app-dir] Generate TypeScript, JavaScript, Java, Go, or Python SDK wrnexus deploy [app-dir] Generate docker | kubernetes | systemd | railway | render | fly wrnexus mcp [app-dir] Start the WRNexus MCP server over stdio wrnexus i18n [app-dir] Extract and audit translation keys wrnexus report [app-dir] [--file=app/pages/page.wrn] Create a sanitized reproduction bundle wrnexus playground [--port=4173] Start the shareable WRN compiler playground wrnexus config [app-dir] --explain Print the fully resolved profile configuration wrnexus analyze [app-dir] Inspect dist/build-report.json and performance budgets wrnexus explain [subject] [app-dir] Explain compiler and production build decisions wrnexus explain [app-dir] Explain route caching or permission enforcement wrnexus inspect [app-dir] Inspect packages | plugins | routes | assets | runtimes | styles | migrations | bundle wrnexus inspect component [app-dir] Inspect a component's typed public contract wrnexus generate system Scaffold a complete framework-native package Profiles: pass --profile= to dev/build/db (or set WRNEXUS_PROFILE) to load that profile's .env cascade and config overrides. e.g. wrnexus dev --profile=uat Workspace environments: configure protocol, rootDomain, port, hostname, runtime (development|production), hmr, build, migrate, and profile in wrnexus.workspace.ts. CLI overrides: --port, --host, --build/--no-build, --migrate/--no-migrate, --profile, and --prepare-only. Update options: --dry-run previews changes; --no-verify skips post-update check/build. ``` ## CLI workflows with expected output Commands below are copy-ready. Paths, ports, counts, and timings vary by project; the shown output identifies the success condition to check. ### Create, check, build, and preview an application ```bash bunx @wrnexus/cli@0.8.7 create my-app cd my-app bun install bunx wrnexus typecheck . bunx wrnexus build . bunx wrnexus preview . --port=3000 ``` Expected output: ```text ✓ Application types are valid ✓ Runtime: .../dist/reactive.js ✓ Styles: .../dist/styles.css ✓ Server: .../dist/server.js Run it: bun .../dist/server.js ``` ### Generate framework files and committed application types ```bash bunx wrnexus generate page Dashboard bunx wrnexus generate component status-card bunx wrnexus generate api health bunx wrnexus generate schema account bunx wrnexus generate routes bunx wrnexus generate types . ``` Expected output includes created source paths followed by: ```text ✓ Generated app/routes.gen.ts (... routes) ✓ Generated .../app/types/wrnexus.generated.d.ts (... routes, ... components) ``` ### Run development and production-runtime modes ```bash bunx wrnexus dev . --port=3000 bunx wrnexus dev . --services --services-port=3099 bunx wrnexus dev . --production-runtime --port=3000 ``` Expected output reports the active profile, discovered plugins/routes, generated cache path, and listening URL. Production-runtime mode rebuilds and reloads the exact production artifact. ### Database lifecycle ```bash bunx wrnexus db status bunx wrnexus db new create_accounts --from-models bunx wrnexus db migrate bunx wrnexus db generate bunx wrnexus db seed ``` Expected output identifies the selected profile/dialect, migration state, applied migration names, and generated typed query files. Run `db rollback` only when intentionally reverting the latest migration. ### Diagnose, inspect, and enforce contracts ```bash bunx wrnexus doctor . bunx wrnexus typecheck . bunx wrnexus compatibility check . bunx wrnexus contracts check . bunx wrnexus security audit . bunx wrnexus inspect packages . bunx wrnexus inspect routes . bunx wrnexus inspect component Navbar . bunx wrnexus analyze . ``` Successful checks exit with status 0. Inspect commands print the resolved package, route, component, asset, runtime, style, migration, or bundle contract without changing the application. ### Tests, API artifacts, SDKs, and deployment manifests ```bash bunx wrnexus test unit . bunx wrnexus test component . bunx wrnexus test api . bunx wrnexus test browser . bunx wrnexus api generate . bunx wrnexus api docs . bunx wrnexus sdk generate typescript . bunx wrnexus deploy docker . ``` Test commands return the underlying suite summary and a nonzero status on failure. API/SDK/deploy commands report each generated artifact; review and commit generated files after validation. ### Workspaces and environments ```bash bunx wrnexus workspace company-platform cd company-platform bunx wrnexus workspace add reports --domain=reports.localhost bunx wrnexus gateway --port=3000 bunx wrnexus production . --prepare-only bunx wrnexus staging . ``` Expected output lists created apps, domain mappings, selected environment/profile, build and migration decisions, and the gateway address. ### Internationalization, native targets, MCP, and support bundles ```bash bunx wrnexus i18n extract . bunx wrnexus i18n validate . bunx wrnexus generate mobile bunx wrnexus mobile compile bunx wrnexus native list bunx wrnexus mcp . bunx wrnexus report . --file=app/pages/index.wrn ``` Expected output identifies extracted/validated translation keys, generated native routes, available capabilities, MCP stdio startup, or the sanitized reproduction archive. MCP uses stdio, so protocol messages—not a web URL—are its normal runtime output. ### Safe upgrades ```bash bunx wrnexus update . --latest --dry-run bunx wrnexus update . --latest ``` The dry run previews dependency and migration changes. A real update prints the source and target versions, backup directory, each migration action, installation result, and verification result. Commit or back up the application before upgrading. # Complete CLI command reference This section is generated from the installed `@wrnexus/cli@0.8.7` executable. It is the canonical command inventory for this release. ```text wrnexus — WrNexus CLI Usage: wrnexus dev [app-dir] [--port=3000] [--host=::] Start the development server (live reload) wrnexus dev [app-dir] --services Start local production-service simulators with the app wrnexus dev [app-dir] --production-runtime wrnexus dev [app-dir] --services [--services-port=3099] [--services-http] Rebuild and reload the exact production artifact wrnexus build [app-dir] Build a production server bundle + assets wrnexus preview [app-dir] Serve the existing exact production output wrnexus create Scaffold a new app wrnexus workspace Scaffold a monorepo (apps/* + shared packages/*) wrnexus workspace add [--domain=name.localhost] Add an app to the current workspace wrnexus gateway [--port=3000] Serve every workspace app behind one port, routed by domain wrnexus production [workspace-dir] Build, migrate, and serve the complete production workspace wrnexus [workspace-dir] Run a configured workspace environment (development/staging/custom) wrnexus generate Scaffold a page | component | api | schema wrnexus generate routes | docker | mobile Generate routes or scaffold deployment targets wrnexus generate types [app-dir] Generate application-wide route/component/key types wrnexus routes [app-dir] Generate typed named routes wrnexus typecheck [app-dir] Generate types and check TypeScript plus every .wrn file wrnexus mobile add Install Capacitor or Expo native packages wrnexus mobile compile Compile .wrn pages into native Expo routes wrnexus native list List cross-platform native capabilities wrnexus native add Install capability packages for the configured mobile mode wrnexus eject Copy a Wire UI component into app/components wrnexus update [dir] [--latest] Upgrade deps, migrate project files, and verify the app wrnexus db Migrations: migrate | rollback | status | seed | generate | new wrnexus authz Authorization: list | generate | init [--dialect=sqlite|postgres|mysql] wrnexus test [level] [app-dir] [--watch] Run unit | component | api | browser | visual | accessibility | performance wrnexus profiles [app-dir] List config profiles (dev/prod/uat/…) and their env files wrnexus doctor [app-dir] [--fix] Check project health; optionally apply safe repairs wrnexus compatibility [app-dir] Inspect or explicitly upgrade behavior defaults wrnexus contracts [app-dir] Detect breaking boundary contract changes wrnexus security [app-dir] Audit ASVS controls, inspect headers, or run abuse tests wrnexus api [app-dir] Generate OpenAPI, docs, Postman, examples and SDKs wrnexus sdk generate [app-dir] Generate TypeScript, JavaScript, Java, Go, or Python SDK wrnexus deploy [app-dir] Generate docker | kubernetes | systemd | railway | render | fly wrnexus mcp [app-dir] Start the WRNexus MCP server over stdio wrnexus i18n [app-dir] Extract and audit translation keys wrnexus report [app-dir] [--file=app/pages/page.wrn] Create a sanitized reproduction bundle wrnexus playground [--port=4173] Start the shareable WRN compiler playground wrnexus config [app-dir] --explain Print the fully resolved profile configuration wrnexus analyze [app-dir] Inspect dist/build-report.json and performance budgets wrnexus explain [subject] [app-dir] Explain compiler and production build decisions wrnexus explain [app-dir] Explain route caching or permission enforcement wrnexus inspect [app-dir] Inspect packages | plugins | routes | assets | runtimes | styles | migrations | bundle wrnexus inspect component [app-dir] Inspect a component's typed public contract wrnexus generate system Scaffold a complete framework-native package Profiles: pass --profile= to dev/build/db (or set WRNEXUS_PROFILE) to load that profile's .env cascade and config overrides. e.g. wrnexus dev --profile=uat Workspace environments: configure protocol, rootDomain, port, hostname, runtime (development|production), hmr, build, migrate, and profile in wrnexus.workspace.ts. CLI overrides: --port, --host, --build/--no-build, --migrate/--no-migrate, --profile, and --prepare-only. Update options: --dry-run previews changes; --no-verify skips post-update check/build. ``` ## CLI workflows with expected output Commands below are copy-ready. Paths, ports, counts, and timings vary by project; the shown output identifies the success condition to check. ### Create, check, build, and preview an application ```bash bunx @wrnexus/cli@0.8.7 create my-app cd my-app bun install bunx wrnexus typecheck . bunx wrnexus build . bunx wrnexus preview . --port=3000 ``` Expected output: ```text ✓ Application types are valid ✓ Runtime: .../dist/reactive.js ✓ Styles: .../dist/styles.css ✓ Server: .../dist/server.js Run it: bun .../dist/server.js ``` ### Generate framework files and committed application types ```bash bunx wrnexus generate page Dashboard bunx wrnexus generate component status-card bunx wrnexus generate api health bunx wrnexus generate schema account bunx wrnexus generate routes bunx wrnexus generate types . ``` Expected output includes created source paths followed by: ```text ✓ Generated app/routes.gen.ts (... routes) ✓ Generated .../app/types/wrnexus.generated.d.ts (... routes, ... components) ``` ### Run development and production-runtime modes ```bash bunx wrnexus dev . --port=3000 bunx wrnexus dev . --services --services-port=3099 bunx wrnexus dev . --production-runtime --port=3000 ``` Expected output reports the active profile, discovered plugins/routes, generated cache path, and listening URL. Production-runtime mode rebuilds and reloads the exact production artifact. ### Database lifecycle ```bash bunx wrnexus db status bunx wrnexus db new create_accounts --from-models bunx wrnexus db migrate bunx wrnexus db generate bunx wrnexus db seed ``` Expected output identifies the selected profile/dialect, migration state, applied migration names, and generated typed query files. Run `db rollback` only when intentionally reverting the latest migration. ### Diagnose, inspect, and enforce contracts ```bash bunx wrnexus doctor . bunx wrnexus typecheck . bunx wrnexus compatibility check . bunx wrnexus contracts check . bunx wrnexus security audit . bunx wrnexus inspect packages . bunx wrnexus inspect routes . bunx wrnexus inspect component Navbar . bunx wrnexus analyze . ``` Successful checks exit with status 0. Inspect commands print the resolved package, route, component, asset, runtime, style, migration, or bundle contract without changing the application. ### Tests, API artifacts, SDKs, and deployment manifests ```bash bunx wrnexus test unit . bunx wrnexus test component . bunx wrnexus test api . bunx wrnexus test browser . bunx wrnexus api generate . bunx wrnexus api docs . bunx wrnexus sdk generate typescript . bunx wrnexus deploy docker . ``` Test commands return the underlying suite summary and a nonzero status on failure. API/SDK/deploy commands report each generated artifact; review and commit generated files after validation. ### Workspaces and environments ```bash bunx wrnexus workspace company-platform cd company-platform bunx wrnexus workspace add reports --domain=reports.localhost bunx wrnexus gateway --port=3000 bunx wrnexus production . --prepare-only bunx wrnexus staging . ``` Expected output lists created apps, domain mappings, selected environment/profile, build and migration decisions, and the gateway address. ### Internationalization, native targets, MCP, and support bundles ```bash bunx wrnexus i18n extract . bunx wrnexus i18n validate . bunx wrnexus generate mobile bunx wrnexus mobile compile bunx wrnexus native list bunx wrnexus mcp . bunx wrnexus report . --file=app/pages/index.wrn ``` Expected output identifies extracted/validated translation keys, generated native routes, available capabilities, MCP stdio startup, or the sanitized reproduction archive. MCP uses stdio, so protocol messages—not a web URL—are its normal runtime output. ### Safe upgrades ```bash bunx wrnexus update . --latest --dry-run bunx wrnexus update . --latest ``` The dry run previews dependency and migration changes. A real update prints the source and target versions, backup directory, each migration action, installation result, and verification result. Commit or back up the application before upgrading. # Complete CLI command reference This section is generated from the installed `@wrnexus/cli@0.8.7` executable. It is the canonical command inventory for this release. ```text wrnexus — WrNexus CLI Usage: wrnexus dev [app-dir] [--port=3000] [--host=::] Start the development server (live reload) wrnexus dev [app-dir] --services Start local production-service simulators with the app wrnexus dev [app-dir] --production-runtime wrnexus dev [app-dir] --services [--services-port=3099] [--services-http] Rebuild and reload the exact production artifact wrnexus build [app-dir] Build a production server bundle + assets wrnexus preview [app-dir] Serve the existing exact production output wrnexus create Scaffold a new app wrnexus workspace Scaffold a monorepo (apps/* + shared packages/*) wrnexus workspace add [--domain=name.localhost] Add an app to the current workspace wrnexus gateway [--port=3000] Serve every workspace app behind one port, routed by domain wrnexus production [workspace-dir] Build, migrate, and serve the complete production workspace wrnexus [workspace-dir] Run a configured workspace environment (development/staging/custom) wrnexus generate Scaffold a page | component | api | schema wrnexus generate routes | docker | mobile Generate routes or scaffold deployment targets wrnexus generate types [app-dir] Generate application-wide route/component/key types wrnexus routes [app-dir] Generate typed named routes wrnexus typecheck [app-dir] Generate types and check TypeScript plus every .wrn file wrnexus mobile add Install Capacitor or Expo native packages wrnexus mobile compile Compile .wrn pages into native Expo routes wrnexus native list List cross-platform native capabilities wrnexus native add Install capability packages for the configured mobile mode wrnexus eject Copy a Wire UI component into app/components wrnexus update [dir] [--latest] Upgrade deps, migrate project files, and verify the app wrnexus db Migrations: migrate | rollback | status | seed | generate | new wrnexus authz Authorization: list | generate | init [--dialect=sqlite|postgres|mysql] wrnexus test [level] [app-dir] [--watch] Run unit | component | api | browser | visual | accessibility | performance wrnexus profiles [app-dir] List config profiles (dev/prod/uat/…) and their env files wrnexus doctor [app-dir] [--fix] Check project health; optionally apply safe repairs wrnexus compatibility [app-dir] Inspect or explicitly upgrade behavior defaults wrnexus contracts [app-dir] Detect breaking boundary contract changes wrnexus security [app-dir] Audit ASVS controls, inspect headers, or run abuse tests wrnexus api [app-dir] Generate OpenAPI, docs, Postman, examples and SDKs wrnexus sdk generate [app-dir] Generate TypeScript, JavaScript, Java, Go, or Python SDK wrnexus deploy [app-dir] Generate docker | kubernetes | systemd | railway | render | fly wrnexus mcp [app-dir] Start the WRNexus MCP server over stdio wrnexus i18n [app-dir] Extract and audit translation keys wrnexus report [app-dir] [--file=app/pages/page.wrn] Create a sanitized reproduction bundle wrnexus playground [--port=4173] Start the shareable WRN compiler playground wrnexus config [app-dir] --explain Print the fully resolved profile configuration wrnexus analyze [app-dir] Inspect dist/build-report.json and performance budgets wrnexus explain [subject] [app-dir] Explain compiler and production build decisions wrnexus explain [app-dir] Explain route caching or permission enforcement wrnexus inspect [app-dir] Inspect packages | plugins | routes | assets | runtimes | styles | migrations | bundle wrnexus inspect component [app-dir] Inspect a component's typed public contract wrnexus generate system Scaffold a complete framework-native package Profiles: pass --profile= to dev/build/db (or set WRNEXUS_PROFILE) to load that profile's .env cascade and config overrides. e.g. wrnexus dev --profile=uat Workspace environments: configure protocol, rootDomain, port, hostname, runtime (development|production), hmr, build, migrate, and profile in wrnexus.workspace.ts. CLI overrides: --port, --host, --build/--no-build, --migrate/--no-migrate, --profile, and --prepare-only. Update options: --dry-run previews changes; --no-verify skips post-update check/build. ``` ## CLI workflows with expected output Commands below are copy-ready. Paths, ports, counts, and timings vary by project; the shown output identifies the success condition to check. ### Create, check, build, and preview an application ```bash bunx @wrnexus/cli@0.8.7 create my-app cd my-app bun install bunx wrnexus typecheck . bunx wrnexus build . bunx wrnexus preview . --port=3000 ``` Expected output: ```text ✓ Application types are valid ✓ Runtime: .../dist/reactive.js ✓ Styles: .../dist/styles.css ✓ Server: .../dist/server.js Run it: bun .../dist/server.js ``` ### Generate framework files and committed application types ```bash bunx wrnexus generate page Dashboard bunx wrnexus generate component status-card bunx wrnexus generate api health bunx wrnexus generate schema account bunx wrnexus generate routes bunx wrnexus generate types . ``` Expected output includes created source paths followed by: ```text ✓ Generated app/routes.gen.ts (... routes) ✓ Generated .../app/types/wrnexus.generated.d.ts (... routes, ... components) ``` ### Run development and production-runtime modes ```bash bunx wrnexus dev . --port=3000 bunx wrnexus dev . --services --services-port=3099 bunx wrnexus dev . --production-runtime --port=3000 ``` Expected output reports the active profile, discovered plugins/routes, generated cache path, and listening URL. Production-runtime mode rebuilds and reloads the exact production artifact. ### Database lifecycle ```bash bunx wrnexus db status bunx wrnexus db new create_accounts --from-models bunx wrnexus db migrate bunx wrnexus db generate bunx wrnexus db seed ``` Expected output identifies the selected profile/dialect, migration state, applied migration names, and generated typed query files. Run `db rollback` only when intentionally reverting the latest migration. ### Diagnose, inspect, and enforce contracts ```bash bunx wrnexus doctor . bunx wrnexus typecheck . bunx wrnexus compatibility check . bunx wrnexus contracts check . bunx wrnexus security audit . bunx wrnexus inspect packages . bunx wrnexus inspect routes . bunx wrnexus inspect component Navbar . bunx wrnexus analyze . ``` Successful checks exit with status 0. Inspect commands print the resolved package, route, component, asset, runtime, style, migration, or bundle contract without changing the application. ### Tests, API artifacts, SDKs, and deployment manifests ```bash bunx wrnexus test unit . bunx wrnexus test component . bunx wrnexus test api . bunx wrnexus test browser . bunx wrnexus api generate . bunx wrnexus api docs . bunx wrnexus sdk generate typescript . bunx wrnexus deploy docker . ``` Test commands return the underlying suite summary and a nonzero status on failure. API/SDK/deploy commands report each generated artifact; review and commit generated files after validation. ### Workspaces and environments ```bash bunx wrnexus workspace company-platform cd company-platform bunx wrnexus workspace add reports --domain=reports.localhost bunx wrnexus gateway --port=3000 bunx wrnexus production . --prepare-only bunx wrnexus staging . ``` Expected output lists created apps, domain mappings, selected environment/profile, build and migration decisions, and the gateway address. ### Internationalization, native targets, MCP, and support bundles ```bash bunx wrnexus i18n extract . bunx wrnexus i18n validate . bunx wrnexus generate mobile bunx wrnexus mobile compile bunx wrnexus native list bunx wrnexus mcp . bunx wrnexus report . --file=app/pages/index.wrn ``` Expected output identifies extracted/validated translation keys, generated native routes, available capabilities, MCP stdio startup, or the sanitized reproduction archive. MCP uses stdio, so protocol messages—not a web URL—are its normal runtime output. ### Safe upgrades ```bash bunx wrnexus update . --latest --dry-run bunx wrnexus update . --latest ``` The dry run previews dependency and migration changes. A real update prints the source and target versions, backup directory, each migration action, installation result, and verification result. Commit or back up the application before upgrading. # Complete CLI command reference This section is generated from the installed `@wrnexus/cli@0.8.7` executable. It is the canonical command inventory for this release. ```text wrnexus — WrNexus CLI Usage: wrnexus dev [app-dir] [--port=3000] [--host=::] Start the development server (live reload) wrnexus dev [app-dir] --services Start local production-service simulators with the app wrnexus dev [app-dir] --production-runtime wrnexus dev [app-dir] --services [--services-port=3099] [--services-http] Rebuild and reload the exact production artifact wrnexus build [app-dir] Build a production server bundle + assets wrnexus preview [app-dir] Serve the existing exact production output wrnexus create Scaffold a new app wrnexus workspace Scaffold a monorepo (apps/* + shared packages/*) wrnexus workspace add [--domain=name.localhost] Add an app to the current workspace wrnexus gateway [--port=3000] Serve every workspace app behind one port, routed by domain wrnexus production [workspace-dir] Build, migrate, and serve the complete production workspace wrnexus [workspace-dir] Run a configured workspace environment (development/staging/custom) wrnexus generate Scaffold a page | component | api | schema wrnexus generate routes | docker | mobile Generate routes or scaffold deployment targets wrnexus generate types [app-dir] Generate application-wide route/component/key types wrnexus routes [app-dir] Generate typed named routes wrnexus typecheck [app-dir] Generate types and check TypeScript plus every .wrn file wrnexus mobile add Install Capacitor or Expo native packages wrnexus mobile compile Compile .wrn pages into native Expo routes wrnexus native list List cross-platform native capabilities wrnexus native add Install capability packages for the configured mobile mode wrnexus eject Copy a Wire UI component into app/components wrnexus update [dir] [--latest] Upgrade deps, migrate project files, and verify the app wrnexus db Migrations: migrate | rollback | status | seed | generate | new wrnexus authz Authorization: list | generate | init [--dialect=sqlite|postgres|mysql] wrnexus test [level] [app-dir] [--watch] Run unit | component | api | browser | visual | accessibility | performance wrnexus profiles [app-dir] List config profiles (dev/prod/uat/…) and their env files wrnexus doctor [app-dir] [--fix] Check project health; optionally apply safe repairs wrnexus compatibility [app-dir] Inspect or explicitly upgrade behavior defaults wrnexus contracts [app-dir] Detect breaking boundary contract changes wrnexus security [app-dir] Audit ASVS controls, inspect headers, or run abuse tests wrnexus api [app-dir] Generate OpenAPI, docs, Postman, examples and SDKs wrnexus sdk generate [app-dir] Generate TypeScript, JavaScript, Java, Go, or Python SDK wrnexus deploy [app-dir] Generate docker | kubernetes | systemd | railway | render | fly wrnexus mcp [app-dir] Start the WRNexus MCP server over stdio wrnexus i18n [app-dir] Extract and audit translation keys wrnexus report [app-dir] [--file=app/pages/page.wrn] Create a sanitized reproduction bundle wrnexus playground [--port=4173] Start the shareable WRN compiler playground wrnexus config [app-dir] --explain Print the fully resolved profile configuration wrnexus analyze [app-dir] Inspect dist/build-report.json and performance budgets wrnexus explain [subject] [app-dir] Explain compiler and production build decisions wrnexus explain [app-dir] Explain route caching or permission enforcement wrnexus inspect [app-dir] Inspect packages | plugins | routes | assets | runtimes | styles | migrations | bundle wrnexus inspect component [app-dir] Inspect a component's typed public contract wrnexus generate system Scaffold a complete framework-native package Profiles: pass --profile= to dev/build/db (or set WRNEXUS_PROFILE) to load that profile's .env cascade and config overrides. e.g. wrnexus dev --profile=uat Workspace environments: configure protocol, rootDomain, port, hostname, runtime (development|production), hmr, build, migrate, and profile in wrnexus.workspace.ts. CLI overrides: --port, --host, --build/--no-build, --migrate/--no-migrate, --profile, and --prepare-only. Update options: --dry-run previews changes; --no-verify skips post-update check/build. ``` ## CLI workflows with expected output Commands below are copy-ready. Paths, ports, counts, and timings vary by project; the shown output identifies the success condition to check. ### Create, check, build, and preview an application ```bash bunx @wrnexus/cli@0.8.7 create my-app cd my-app bun install bunx wrnexus typecheck . bunx wrnexus build . bunx wrnexus preview . --port=3000 ``` Expected output: ```text ✓ Application types are valid ✓ Runtime: .../dist/reactive.js ✓ Styles: .../dist/styles.css ✓ Server: .../dist/server.js Run it: bun .../dist/server.js ``` ### Generate framework files and committed application types ```bash bunx wrnexus generate page Dashboard bunx wrnexus generate component status-card bunx wrnexus generate api health bunx wrnexus generate schema account bunx wrnexus generate routes bunx wrnexus generate types . ``` Expected output includes created source paths followed by: ```text ✓ Generated app/routes.gen.ts (... routes) ✓ Generated .../app/types/wrnexus.generated.d.ts (... routes, ... components) ``` ### Run development and production-runtime modes ```bash bunx wrnexus dev . --port=3000 bunx wrnexus dev . --services --services-port=3099 bunx wrnexus dev . --production-runtime --port=3000 ``` Expected output reports the active profile, discovered plugins/routes, generated cache path, and listening URL. Production-runtime mode rebuilds and reloads the exact production artifact. ### Database lifecycle ```bash bunx wrnexus db status bunx wrnexus db new create_accounts --from-models bunx wrnexus db migrate bunx wrnexus db generate bunx wrnexus db seed ``` Expected output identifies the selected profile/dialect, migration state, applied migration names, and generated typed query files. Run `db rollback` only when intentionally reverting the latest migration. ### Diagnose, inspect, and enforce contracts ```bash bunx wrnexus doctor . bunx wrnexus typecheck . bunx wrnexus compatibility check . bunx wrnexus contracts check . bunx wrnexus security audit . bunx wrnexus inspect packages . bunx wrnexus inspect routes . bunx wrnexus inspect component Navbar . bunx wrnexus analyze . ``` Successful checks exit with status 0. Inspect commands print the resolved package, route, component, asset, runtime, style, migration, or bundle contract without changing the application. ### Tests, API artifacts, SDKs, and deployment manifests ```bash bunx wrnexus test unit . bunx wrnexus test component . bunx wrnexus test api . bunx wrnexus test browser . bunx wrnexus api generate . bunx wrnexus api docs . bunx wrnexus sdk generate typescript . bunx wrnexus deploy docker . ``` Test commands return the underlying suite summary and a nonzero status on failure. API/SDK/deploy commands report each generated artifact; review and commit generated files after validation. ### Workspaces and environments ```bash bunx wrnexus workspace company-platform cd company-platform bunx wrnexus workspace add reports --domain=reports.localhost bunx wrnexus gateway --port=3000 bunx wrnexus production . --prepare-only bunx wrnexus staging . ``` Expected output lists created apps, domain mappings, selected environment/profile, build and migration decisions, and the gateway address. ### Internationalization, native targets, MCP, and support bundles ```bash bunx wrnexus i18n extract . bunx wrnexus i18n validate . bunx wrnexus generate mobile bunx wrnexus mobile compile bunx wrnexus native list bunx wrnexus mcp . bunx wrnexus report . --file=app/pages/index.wrn ``` Expected output identifies extracted/validated translation keys, generated native routes, available capabilities, MCP stdio startup, or the sanitized reproduction archive. MCP uses stdio, so protocol messages—not a web URL—are its normal runtime output. ### Safe upgrades ```bash bunx wrnexus update . --latest --dry-run bunx wrnexus update . --latest ``` The dry run previews dependency and migration changes. A real update prints the source and target versions, backup directory, each migration action, installation result, and verification result. Commit or back up the application before upgrading. # Complete CLI command reference This section is generated from the installed `@wrnexus/cli@0.8.8` executable. It is the canonical command inventory for this release. ```text wrnexus — WrNexus CLI Usage: wrnexus dev [app-dir] [--port=3000] [--host=::] Start the development server (live reload) wrnexus dev [app-dir] --services Start local production-service simulators with the app wrnexus dev [app-dir] --production-runtime wrnexus dev [app-dir] --services [--services-port=3099] [--services-http] Rebuild and reload the exact production artifact wrnexus build [app-dir] Build a production server bundle + assets wrnexus preview [app-dir] Serve the existing exact production output wrnexus create Scaffold a new app wrnexus workspace Scaffold a monorepo (apps/* + shared packages/*) wrnexus workspace add [--domain=name.localhost] Add an app to the current workspace wrnexus gateway [--port=3000] Serve every workspace app behind one port, routed by domain wrnexus production [workspace-dir] Build, migrate, and serve the complete production workspace wrnexus [workspace-dir] Run a configured workspace environment (development/staging/custom) wrnexus generate Scaffold a page | component | api | schema wrnexus generate routes | docker | mobile Generate routes or scaffold deployment targets wrnexus generate types [app-dir] Generate application-wide route/component/key types wrnexus routes [app-dir] Generate typed named routes wrnexus typecheck [app-dir] Generate types and check TypeScript plus every .wrn file wrnexus mobile add Install Capacitor or Expo native packages wrnexus mobile compile Compile .wrn pages into native Expo routes wrnexus native list List cross-platform native capabilities wrnexus native add Install capability packages for the configured mobile mode wrnexus eject Copy a Wire UI component into app/components wrnexus update [dir] [--latest] Upgrade deps, migrate project files, and verify the app wrnexus db Migrations: migrate | rollback | status | seed | generate | new wrnexus authz Authorization: list | generate | init [--dialect=sqlite|postgres|mysql] wrnexus test [level] [app-dir] [--watch] Run unit | component | api | browser | visual | accessibility | performance wrnexus profiles [app-dir] List config profiles (dev/prod/uat/…) and their env files wrnexus doctor [app-dir] [--fix] Check project health; optionally apply safe repairs wrnexus compatibility [app-dir] Inspect or explicitly upgrade behavior defaults wrnexus contracts [app-dir] Detect breaking boundary contract changes wrnexus security [app-dir] Audit ASVS controls, inspect headers, or run abuse tests wrnexus api [app-dir] Generate OpenAPI, docs, Postman, examples and SDKs wrnexus sdk generate [app-dir] Generate TypeScript, JavaScript, Java, Go, or Python SDK wrnexus deploy [app-dir] Generate docker | kubernetes | systemd | railway | render | fly wrnexus mcp [app-dir] Start the WRNexus MCP server over stdio wrnexus i18n [app-dir] Extract and audit translation keys wrnexus report [app-dir] [--file=app/pages/page.wrn] Create a sanitized reproduction bundle wrnexus playground [--port=4173] Start the shareable WRN compiler playground wrnexus config [app-dir] --explain Print the fully resolved profile configuration wrnexus analyze [app-dir] Inspect dist/build-report.json and performance budgets wrnexus explain [subject] [app-dir] Explain compiler and production build decisions wrnexus explain [app-dir] Explain route caching or permission enforcement wrnexus inspect [app-dir] Inspect packages | plugins | routes | assets | runtimes | styles | migrations | bundle wrnexus inspect component [app-dir] Inspect a component's typed public contract wrnexus generate system Scaffold a complete framework-native package Profiles: pass --profile= to dev/build/db (or set WRNEXUS_PROFILE) to load that profile's .env cascade and config overrides. e.g. wrnexus dev --profile=uat Workspace environments: configure protocol, rootDomain, port, hostname, runtime (development|production), hmr, build, migrate, and profile in wrnexus.workspace.ts. CLI overrides: --port, --host, --build/--no-build, --migrate/--no-migrate, --profile, and --prepare-only. Update options: --dry-run previews changes; --no-verify skips post-update check/build. ``` ## CLI workflows with expected output Commands below are copy-ready. Paths, ports, counts, and timings vary by project; the shown output identifies the success condition to check. ### Create, check, build, and preview an application ```bash bunx @wrnexus/cli@0.8.8 create my-app cd my-app bun install bunx wrnexus typecheck . bunx wrnexus build . bunx wrnexus preview . --port=3000 ``` Expected output: ```text ✓ Application types are valid ✓ Runtime: .../dist/reactive.js ✓ Styles: .../dist/styles.css ✓ Server: .../dist/server.js Run it: bun .../dist/server.js ``` ### Generate framework files and committed application types ```bash bunx wrnexus generate page Dashboard bunx wrnexus generate component status-card bunx wrnexus generate api health bunx wrnexus generate schema account bunx wrnexus generate routes bunx wrnexus generate types . ``` Expected output includes created source paths followed by: ```text ✓ Generated app/routes.gen.ts (... routes) ✓ Generated .../app/types/wrnexus.generated.d.ts (... routes, ... components) ``` ### Run development and production-runtime modes ```bash bunx wrnexus dev . --port=3000 bunx wrnexus dev . --services --services-port=3099 bunx wrnexus dev . --production-runtime --port=3000 ``` Expected output reports the active profile, discovered plugins/routes, generated cache path, and listening URL. Production-runtime mode rebuilds and reloads the exact production artifact. ### Database lifecycle ```bash bunx wrnexus db status bunx wrnexus db new create_accounts --from-models bunx wrnexus db migrate bunx wrnexus db generate bunx wrnexus db seed ``` Expected output identifies the selected profile/dialect, migration state, applied migration names, and generated typed query files. Run `db rollback` only when intentionally reverting the latest migration. ### Diagnose, inspect, and enforce contracts ```bash bunx wrnexus doctor . bunx wrnexus typecheck . bunx wrnexus compatibility check . bunx wrnexus contracts check . bunx wrnexus security audit . bunx wrnexus inspect packages . bunx wrnexus inspect routes . bunx wrnexus inspect component Navbar . bunx wrnexus analyze . ``` Successful checks exit with status 0. Inspect commands print the resolved package, route, component, asset, runtime, style, migration, or bundle contract without changing the application. ### Tests, API artifacts, SDKs, and deployment manifests ```bash bunx wrnexus test unit . bunx wrnexus test component . bunx wrnexus test api . bunx wrnexus test browser . bunx wrnexus api generate . bunx wrnexus api docs . bunx wrnexus sdk generate typescript . bunx wrnexus deploy docker . ``` Test commands return the underlying suite summary and a nonzero status on failure. API/SDK/deploy commands report each generated artifact; review and commit generated files after validation. ### Workspaces and environments ```bash bunx wrnexus workspace company-platform cd company-platform bunx wrnexus workspace add reports --domain=reports.localhost bunx wrnexus gateway --port=3000 bunx wrnexus production . --prepare-only bunx wrnexus staging . ``` Expected output lists created apps, domain mappings, selected environment/profile, build and migration decisions, and the gateway address. ### Internationalization, native targets, MCP, and support bundles ```bash bunx wrnexus i18n extract . bunx wrnexus i18n validate . bunx wrnexus generate mobile bunx wrnexus mobile compile bunx wrnexus native list bunx wrnexus mcp . bunx wrnexus report . --file=app/pages/index.wrn ``` Expected output identifies extracted/validated translation keys, generated native routes, available capabilities, MCP stdio startup, or the sanitized reproduction archive. MCP uses stdio, so protocol messages—not a web URL—are its normal runtime output. ### Safe upgrades ```bash bunx wrnexus update . --latest --dry-run bunx wrnexus update . --latest ``` The dry run previews dependency and migration changes. A real update prints the source and target versions, backup directory, each migration action, installation result, and verification result. Commit or back up the application before upgrading. # Complete CLI command reference This section is generated from the installed `@wrnexus/cli@0.8.8` executable. It is the canonical command inventory for this release. ```text wrnexus — WrNexus CLI Usage: wrnexus dev [app-dir] [--port=3000] [--host=::] Start the development server (live reload) wrnexus dev [app-dir] --services Start local production-service simulators with the app wrnexus dev [app-dir] --production-runtime wrnexus dev [app-dir] --services [--services-port=3099] [--services-http] Rebuild and reload the exact production artifact wrnexus build [app-dir] Build a production server bundle + assets wrnexus preview [app-dir] Serve the existing exact production output wrnexus create Scaffold a new app wrnexus workspace Scaffold a monorepo (apps/* + shared packages/*) wrnexus workspace add [--domain=name.localhost] Add an app to the current workspace wrnexus gateway [--port=3000] Serve every workspace app behind one port, routed by domain wrnexus production [workspace-dir] Build, migrate, and serve the complete production workspace wrnexus [workspace-dir] Run a configured workspace environment (development/staging/custom) wrnexus generate Scaffold a page | component | api | schema wrnexus generate routes | docker | mobile Generate routes or scaffold deployment targets wrnexus generate types [app-dir] Generate application-wide route/component/key types wrnexus routes [app-dir] Generate typed named routes wrnexus typecheck [app-dir] Generate types and check TypeScript plus every .wrn file wrnexus mobile add Install Capacitor or Expo native packages wrnexus mobile compile Compile .wrn pages into native Expo routes wrnexus native list List cross-platform native capabilities wrnexus native add Install capability packages for the configured mobile mode wrnexus eject Copy a Wire UI component into app/components wrnexus update [dir] [--latest] Upgrade deps, migrate project files, and verify the app wrnexus db Migrations: migrate | rollback | status | seed | generate | new wrnexus authz Authorization: list | generate | init [--dialect=sqlite|postgres|mysql] wrnexus test [level] [app-dir] [--watch] Run unit | component | api | browser | visual | accessibility | performance wrnexus profiles [app-dir] List config profiles (dev/prod/uat/…) and their env files wrnexus doctor [app-dir] [--fix] Check project health; optionally apply safe repairs wrnexus compatibility [app-dir] Inspect or explicitly upgrade behavior defaults wrnexus contracts [app-dir] Detect breaking boundary contract changes wrnexus security [app-dir] Audit ASVS controls, inspect headers, or run abuse tests wrnexus api [app-dir] Generate OpenAPI, docs, Postman, examples and SDKs wrnexus sdk generate [app-dir] Generate TypeScript, JavaScript, Java, Go, or Python SDK wrnexus deploy [app-dir] Generate docker | kubernetes | systemd | railway | render | fly wrnexus mcp [app-dir] Start the WRNexus MCP server over stdio wrnexus i18n [app-dir] Extract and audit translation keys wrnexus report [app-dir] [--file=app/pages/page.wrn] Create a sanitized reproduction bundle wrnexus playground [--port=4173] Start the shareable WRN compiler playground wrnexus config [app-dir] --explain Print the fully resolved profile configuration wrnexus analyze [app-dir] Inspect dist/build-report.json and performance budgets wrnexus explain [subject] [app-dir] Explain compiler and production build decisions wrnexus explain [app-dir] Explain route caching or permission enforcement wrnexus inspect [app-dir] Inspect packages | plugins | routes | assets | runtimes | styles | migrations | bundle wrnexus inspect component [app-dir] Inspect a component's typed public contract wrnexus generate system Scaffold a complete framework-native package Profiles: pass --profile= to dev/build/db (or set WRNEXUS_PROFILE) to load that profile's .env cascade and config overrides. e.g. wrnexus dev --profile=uat Workspace environments: configure protocol, rootDomain, port, hostname, runtime (development|production), hmr, build, migrate, and profile in wrnexus.workspace.ts. CLI overrides: --port, --host, --build/--no-build, --migrate/--no-migrate, --profile, and --prepare-only. Update options: --dry-run previews changes; --no-verify skips post-update check/build. ``` ## CLI workflows with expected output Commands below are copy-ready. Paths, ports, counts, and timings vary by project; the shown output identifies the success condition to check. ### Create, check, build, and preview an application ```bash bunx @wrnexus/cli@0.8.8 create my-app cd my-app bun install bunx wrnexus typecheck . bunx wrnexus build . bunx wrnexus preview . --port=3000 ``` Expected output: ```text ✓ Application types are valid ✓ Runtime: .../dist/reactive.js ✓ Styles: .../dist/styles.css ✓ Server: .../dist/server.js Run it: bun .../dist/server.js ``` ### Generate framework files and committed application types ```bash bunx wrnexus generate page Dashboard bunx wrnexus generate component status-card bunx wrnexus generate api health bunx wrnexus generate schema account bunx wrnexus generate routes bunx wrnexus generate types . ``` Expected output includes created source paths followed by: ```text ✓ Generated app/routes.gen.ts (... routes) ✓ Generated .../app/types/wrnexus.generated.d.ts (... routes, ... components) ``` ### Run development and production-runtime modes ```bash bunx wrnexus dev . --port=3000 bunx wrnexus dev . --services --services-port=3099 bunx wrnexus dev . --production-runtime --port=3000 ``` Expected output reports the active profile, discovered plugins/routes, generated cache path, and listening URL. Production-runtime mode rebuilds and reloads the exact production artifact. ### Database lifecycle ```bash bunx wrnexus db status bunx wrnexus db new create_accounts --from-models bunx wrnexus db migrate bunx wrnexus db generate bunx wrnexus db seed ``` Expected output identifies the selected profile/dialect, migration state, applied migration names, and generated typed query files. Run `db rollback` only when intentionally reverting the latest migration. ### Diagnose, inspect, and enforce contracts ```bash bunx wrnexus doctor . bunx wrnexus typecheck . bunx wrnexus compatibility check . bunx wrnexus contracts check . bunx wrnexus security audit . bunx wrnexus inspect packages . bunx wrnexus inspect routes . bunx wrnexus inspect component Navbar . bunx wrnexus analyze . ``` Successful checks exit with status 0. Inspect commands print the resolved package, route, component, asset, runtime, style, migration, or bundle contract without changing the application. ### Tests, API artifacts, SDKs, and deployment manifests ```bash bunx wrnexus test unit . bunx wrnexus test component . bunx wrnexus test api . bunx wrnexus test browser . bunx wrnexus api generate . bunx wrnexus api docs . bunx wrnexus sdk generate typescript . bunx wrnexus deploy docker . ``` Test commands return the underlying suite summary and a nonzero status on failure. API/SDK/deploy commands report each generated artifact; review and commit generated files after validation. ### Workspaces and environments ```bash bunx wrnexus workspace company-platform cd company-platform bunx wrnexus workspace add reports --domain=reports.localhost bunx wrnexus gateway --port=3000 bunx wrnexus production . --prepare-only bunx wrnexus staging . ``` Expected output lists created apps, domain mappings, selected environment/profile, build and migration decisions, and the gateway address. ### Internationalization, native targets, MCP, and support bundles ```bash bunx wrnexus i18n extract . bunx wrnexus i18n validate . bunx wrnexus generate mobile bunx wrnexus mobile compile bunx wrnexus native list bunx wrnexus mcp . bunx wrnexus report . --file=app/pages/index.wrn ``` Expected output identifies extracted/validated translation keys, generated native routes, available capabilities, MCP stdio startup, or the sanitized reproduction archive. MCP uses stdio, so protocol messages—not a web URL—are its normal runtime output. ### Safe upgrades ```bash bunx wrnexus update . --latest --dry-run bunx wrnexus update . --latest ``` The dry run previews dependency and migration changes. A real update prints the source and target versions, backup directory, each migration action, installation result, and verification result. Commit or back up the application before upgrading. # Canonical documentation locations - Framework and package documentation: https://wrnexusjs.dev/ - Interactive UI component showcase and examples: https://component.wrnexusjs.dev/ - Comprehensive AI reference: https://wrnexusjs.dev/llms-full.txt # Installed package index ## @wrnexus/ai - @wrnexus/ai 0.8.8 - Documentation: https://wrnexusjs.dev/packages/ai - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/auth - @wrnexus/auth 0.8.8 - Documentation: https://wrnexusjs.dev/packages/auth - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/authz - @wrnexus/authz 0.8.8 - Documentation: https://wrnexusjs.dev/packages/authz - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/benchmark - @wrnexus/benchmark 0.8.8 - Documentation: https://wrnexusjs.dev/packages/benchmark - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/cache - @wrnexus/cache 0.8.8 - Documentation: https://wrnexusjs.dev/packages/cache - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/captcha - @wrnexus/captcha 0.8.8 - Documentation: https://wrnexusjs.dev/packages/captcha - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/cli - @wrnexus/cli 0.8.8 - Documentation: https://wrnexusjs.dev/packages/cli - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/compiler - @wrnexus/compiler 0.8.8 - Documentation: https://wrnexusjs.dev/packages/compiler - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/content - @wrnexus/content 0.8.8 - Documentation: https://wrnexusjs.dev/packages/content - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/core - @wrnexus/core 0.8.8 - Documentation: https://wrnexusjs.dev/packages/core - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/csr - @wrnexus/csr 0.8.8 - Documentation: https://wrnexusjs.dev/packages/csr - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/db - @wrnexus/db 0.8.8 - Documentation: https://wrnexusjs.dev/packages/db - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/dev-server - @wrnexus/dev-server 0.8.8 - Documentation: https://wrnexusjs.dev/packages/dev-server - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/dev-toolbar - @wrnexus/dev-toolbar 0.8.8 - Documentation: https://wrnexusjs.dev/packages/dev-toolbar - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/encryption - @wrnexus/encryption 0.8.8 - Documentation: https://wrnexusjs.dev/packages/encryption - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/graphql - @wrnexus/graphql 0.8.8 - Documentation: https://wrnexusjs.dev/packages/graphql - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/helpers - @wrnexus/helpers 0.8.8 - Documentation: https://wrnexusjs.dev/packages/helpers - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/i18n - @wrnexus/i18n 0.8.8 - Documentation: https://wrnexusjs.dev/packages/i18n - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/identity - @wrnexus/identity 0.8.8 - Documentation: https://wrnexusjs.dev/packages/identity - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/image - @wrnexus/image 0.8.8 - Documentation: https://wrnexusjs.dev/packages/image - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/jwt - @wrnexus/jwt 0.8.8 - Documentation: https://wrnexusjs.dev/packages/jwt - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/language-server - @wrnexus/language-server 0.8.8 - Documentation: https://wrnexusjs.dev/packages/language-server - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/mcp - @wrnexus/mcp 0.8.8 - Documentation: https://wrnexusjs.dev/packages/mcp - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/mobile - @wrnexus/mobile 0.8.8 - Documentation: https://wrnexusjs.dev/packages/mobile - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/native - @wrnexus/native 0.8.8 - Documentation: https://wrnexusjs.dev/packages/native - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/oauth - @wrnexus/oauth 0.8.8 - Documentation: https://wrnexusjs.dev/packages/oauth - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/observability - @wrnexus/observability 0.8.8 - Documentation: https://wrnexusjs.dev/packages/observability - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/playground - @wrnexus/playground 0.8.8 - Documentation: https://wrnexusjs.dev/packages/playground - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/plugin - @wrnexus/plugin 0.8.8 - Documentation: https://wrnexusjs.dev/packages/plugin - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/pubsub - @wrnexus/pubsub 0.8.8 - Documentation: https://wrnexusjs.dev/packages/pubsub - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/pwa - @wrnexus/pwa 0.8.8 - Documentation: https://wrnexusjs.dev/packages/pwa - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/queue - @wrnexus/queue 0.8.8 - Documentation: https://wrnexusjs.dev/packages/queue - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/reactive - @wrnexus/reactive 0.8.8 - Documentation: https://wrnexusjs.dev/packages/reactive - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/realtime - @wrnexus/realtime 0.8.8 - Documentation: https://wrnexusjs.dev/packages/realtime - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/router - @wrnexus/router 0.8.8 - Documentation: https://wrnexusjs.dev/packages/router - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/rpc - @wrnexus/rpc 0.8.8 - Documentation: https://wrnexusjs.dev/packages/rpc - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/security - @wrnexus/security 0.8.8 - Documentation: https://wrnexusjs.dev/packages/security - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/ssr - @wrnexus/ssr 0.8.8 - Documentation: https://wrnexusjs.dev/packages/ssr - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/store - @wrnexus/store 0.8.8 - Documentation: https://wrnexusjs.dev/packages/store - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/styles - @wrnexus/styles 0.8.8 - Documentation: https://wrnexusjs.dev/packages/styles - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/syntax - @wrnexus/syntax 0.8.8 - Documentation: https://wrnexusjs.dev/packages/syntax - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/test - @wrnexus/test 0.8.8 - Documentation: https://wrnexusjs.dev/packages/test - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/tracking - @wrnexus/tracking 0.8.8 - Documentation: https://wrnexusjs.dev/packages/tracking - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/typecheck - @wrnexus/typecheck 0.8.8 - Documentation: https://wrnexusjs.dev/packages/typecheck - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/ui - @wrnexus/ui 0.8.8 - Documentation: https://wrnexusjs.dev/packages/ui - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/uploader - @wrnexus/uploader 0.8.8 - Documentation: https://wrnexusjs.dev/packages/uploader - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/validation - @wrnexus/validation 0.8.8 - Documentation: https://wrnexusjs.dev/packages/validation - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt # UI component catalog The installed @wrnexus/ui 0.8.8 release contains 102 documented components. The contracts below include every mount name, purpose, prop type, required/default status, slot, and event. Interactive examples live only on the dedicated component showcase. ### Accordion Showcase: https://component.wrnexusjs.dev/ Mount: (legacy: data-component="Accordion") Category: base Purpose: Theme-aware, responsive accordion component. Props: size: string = "default", color: string = "primary", variant: string = "default", class: string = "", id: string = "accordion", items: unknown[] = [], defaultOpen: unknown[] = [], multiple: boolean = false, alwaysOpen: boolean = false, disabled: boolean = false, indicator: string = "plus", indicatorPosition: string = "start", showIndicator: boolean = true, bordered: boolean = false, separated: boolean = false, flush: boolean = false, contentItalic: boolean = false Slots: none Events: change, open, close ### AdvancedSelect Showcase: https://component.wrnexusjs.dev/ Mount: (legacy: data-component="AdvancedSelect") Category: advanced-forms Purpose: Theme-aware, responsive advanced select component. Props: size: string = "default", color: string = "primary", label: string = "Advanced Select", name: string = "", value: string = "", values: unknown[] = [], options: unknown[] = [], groups: unknown[] = [], placeholder: string = "Select an option", placeholderIcon: string = "", searchPlaceholder: string = "Search options…", multiple: boolean = false, searchable: boolean = true, defaultOpen: boolean = false, clearable: boolean = true, allowEmpty: boolean = true, tags: boolean = false, disabled: boolean = false, required: boolean = false, invalid: boolean = false, validationMessage: string = "", helpText: string = "", loading: boolean = false, loadingLabel: string = "Loading options…", emptyLabel: string = "No options found", selectedOptionsLabel: string = "Selected options", clearLabel: string = "Clear selection", createLabel: string = "Create", loadMoreLabel: string = "Load more", searchMode: string = "contains", searchFields: string = "label,description", minSearchLength: number = 0, searchResultLimit: number = 0, maxSelections: number = 0, showCounter: boolean = false, counterTemplate: string = "{selected} selected", optionTemplate: string = "default", selectedTemplate: string = "default", closeOnSelect: boolean = true, scrollToSelected: boolean = true, fixed: boolean = false, placement: string = "bottom", remote: boolean = false, remoteUrl: string = "", remoteQueryParam: string = "q", remoteDebounce: number = 250, remoteAutoLoad: boolean = true, infinite: boolean = false, hasMore: boolean = false, page: number = 1, class: string = "" Slots: none Events: search, select, change, clear, open, close, load, error ### Alert Showcase: https://component.wrnexusjs.dev/ Mount: (legacy: data-component="Alert") Category: base Purpose: Theme-aware, responsive alert component. Props: size: string = "default", color: string = "info", variant: string = "soft", class: string = "", radius: string = "md", shadow: string = "sm", title: string = "Alert", description: string = "", items: unknown[] = [], actions: unknown[] = [], showIcon: boolean = false, icon: string = "", dismissible: boolean = false, dismissLabel: string = "Dismiss alert", role: string = "alert", live: string = "polite", linkLabel: string = "", linkHref: string = "", actionLabel: string = "", actionHref: string = "", compact: boolean = false Slots: none Events: dismiss, action ### AnnouncementBar Showcase: https://component.wrnexusjs.dev/ Mount: (legacy: data-component="AnnouncementBar") Category: marketing Purpose: Publish a responsive notice with badge, icon, supporting copy, action, dismiss behavior, and width controls. Props: badge: string = "", badgeIcon: string = "", message: string = "Announcement", description: string = "", icon: string = "icon-[lucide--megaphone]", actionLabel: string = "", actionHref: string = "", actionIcon: string = "", dismissible: boolean = false, dismissLabel: string = "Dismiss announcement", sticky: boolean = false, compact: boolean = false, size: string = "default", width: string = "default", color: string = "primary", variant: string = "soft", role: string = "status", live: string = "polite", class: string = "" Slots: none Events: dismiss ### AuthForm Showcase: https://component.wrnexusjs.dev/ Mount: (legacy: data-component="AuthForm") Category: core Purpose: Reusable auth form component. Props: size: string = "default", color: string = "primary", mode: string = "sign-in", action: string = "/api/auth/login", method: string = "post", title: string = "Sign in", description: string = "", returnTo: string = "", schema: string = "", showRemember: boolean = true, showName: boolean = true, submitLabel: string = "Continue", class: string = "" Slots: default Events: submit, change, input, focus, blur ### AuthSplitLayout Showcase: https://component.wrnexusjs.dev/ Mount: (legacy: data-component="AuthSplitLayout") Category: core Purpose: Reusable auth split layout component. Props: size: string = "default", color: string = "primary", eyebrow: string = "Secure identity", title: string = "Welcome back", description: string = "", brand: string = "Police Management System", features: unknown[] = [], class: string = "" Slots: aside-extra, form Events: none ### Avatar Showcase: https://component.wrnexusjs.dev/ Mount: (legacy: data-component="Avatar") Category: base Purpose: Theme-aware, responsive avatar component. Props: src: string = "", alt: string = "", initials: string = "", size: string = "md", color: string = "primary", variant: string = "solid", shape: string = "circle", status: string = "", statusLabel: string = "", statusPosition: string = "bottom", badge: string = "", badgeIcon: string = "", badgeLabel: string = "", tooltip: string = "", name: string = "", description: string = "", loading: string = "lazy", class: string = "" Slots: none Events: load, error, click ### AvatarGroup Showcase: https://component.wrnexusjs.dev/ Mount: (legacy: data-component="AvatarGroup") Category: base Purpose: Theme-aware, responsive avatar group component. Props: items: unknown[] = [], size: string = "md", color: string = "primary", variant: string = "solid", shape: string = "circle", layout: string = "stack", maxVisible: number = 4, columns: number = 3, borderColor: string = "", showTooltips: boolean = true, overflowLabel: string = "Show remaining members", class: string = "" Slots: none Events: overflow ### BackToTop Showcase: https://component.wrnexusjs.dev/ Mount: (legacy: data-component="BackToTop") Category: navigation Purpose: Provide a responsive floating control that returns long pages to the top and can show scroll progress. Props: threshold: number = 500, label: string = "Back to top", ariaLabel: string = "Scroll back to top", icon: string = "icon-[lucide--arrow-up]", position: string = "right", offset: string = "md", behavior: string = "smooth", showProgress: boolean = false, showLabel: boolean = false, alwaysVisible: boolean = false, size: string = "default", color: string = "primary", variant: string = "solid", shape: string = "round", class: string = "" Slots: none Events: none ### Badge Showcase: https://component.wrnexusjs.dev/ Mount: (legacy: data-component="Badge") Category: base Purpose: Theme-aware, responsive badge component. Props: label: string = "Badge", size: string = "md", color: string = "primary", variant: string = "solid", shape: string = "pill", class: string = "", icon: string = "", iconPosition: string = "start", dot: boolean = false, dotOnly: boolean = false, dotLabel: string = "Status", animated: boolean = false, avatarSrc: string = "", avatarAlt: string = "", dismissible: boolean = false, dismissLabel: string = "Remove badge", truncate: boolean = false, maxWidth: string = "12rem", anchorLabel: string = "", anchorIcon: string = "", placement: string = "inline", anchorLabelText: string = "Badge anchor" Slots: none Events: dismiss ### Blockquote Showcase: https://component.wrnexusjs.dev/ Mount:
(legacy: data-component="Blockquote") Category: base Purpose: Theme-aware, responsive blockquote component. Props: quote: string = "I just wanted to say that I'm very happy with my purchase so far. The documentation is outstanding - clear and detailed.", citation: string = "", citationTitle: string = "", citationUrl: string = "", avatarSrc: string = "", avatarAlt: string = "", size: string = "md", color: string = "primary", align: string = "left", variant: string = "default", quoteMark: boolean = true, italic: boolean = true, class: string = "" Slots: default Events: none ### Breadcrumb Showcase: https://component.wrnexusjs.dev/ Mount: (legacy: data-component="Breadcrumb") Category: navigation Purpose: Show responsive hierarchical navigation with home support, separators, current-page state, sizes, and selection events. Props: label: string = "Breadcrumb", items: unknown[] = [], active: string = "", separator: string = "chevron", showHome: boolean = false, homeLabel: string = "Home", homeHref: string = "/", homeIcon: string = "icon-[lucide--house]", size: string = "default", color: string = "primary", variant: string = "minimal", class: string = "" Slots: none Events: select ### Button Showcase: https://component.wrnexusjs.dev/ Mount: