Server-first rendering
Useful HTML is rendered first; reactive scopes hydrate only where declared.
page Home { seo { title = "WRNexusJS — Bun-native server-first framework" description = "WRNexusJS is a Bun-native, SSR-first full-stack framework using the .wrn component language." canonical = "https://wrnexusjs.dev/" } view { Skip to content
WRNexusJS v0.2.59
WRNexusJS is an SSR-first, Bun-native full-stack framework. Build typed pages, APIs, validated forms, realtime rooms, secure sessions, workspaces, and optional mobile experiences with the .wrn component language.
Private developer preview. Request access to the package registry.
page Dashboard {
ssr { api tasks GET /api/tasks { return tasks } }
view {
<main>
<h1>Tasks</h1>
{#each tasks as task}
<article>{task.title}</article>
{:empty}
<p>Nothing waiting.</p>
{/each}
</main>
}
}Useful HTML is rendered first; reactive scopes hydrate only where declared.
.wrn componentsPages, layouts, props, state, events, server loops, and directives live in a focused language.
The runtime is Bun. Node compatibility is not claimed.
Database queries and shared validation connect server routes to forms.
CSP, CSRF, sessions, authorization, encryption, and safe output are framework primitives.
Rooms, Redis pub/sub, and multi-app gateways support live and isolated applications.
// app/schemas/contact.ts
import { v } from "@wrnexus/validation";
export default v.object({ email: v.string().email(), message: v.string().min(10) });
// app/api/contacts.ts
import schema from "../schemas/contact";
import { parseBody } from "@wrnexus/validation";
export const POST = async (ctx) => {
const result = await parseBody(schema, ctx.req);
return result.ok ? Response.json({ ok: true }, { status: 201 }) : result.response;
};Public creator/company site and approved WRNexusJS production showcase.
This documentation application runs WRNexusJS 0.2.59.
| Capability | Status | Details |
|---|---|---|
| SSR, routing, compiler, APIs | Preview | Installed in 0.2.59; public support policy pending. |
| Mobile/native | Experimental | Capacitor compatibility and native generation have platform limitations. |
| Durable queues | Experimental | Production durability requires an appropriate driver strategy. |