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 {
W WRNexusJS
Menu
Private Developer Preview

WRNexusJS v0.2.59

Build from the server.
Ship only what matters.

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.

app/pages/dashboard.wrn
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>
  }
}

Why WRNexusJS

Server-first rendering

Useful HTML is rendered first; reactive scopes hydrate only where declared.

.wrn components

Pages, layouts, props, state, events, server loops, and directives live in a focused language.

Bun-native runtime

The runtime is Bun. Node compatibility is not claimed.

Typed data and validation

Database queries and shared validation connect server routes to forms.

Integrated security

CSP, CSRF, sessions, authorization, encryption, and safe output are framework primitives.

Realtime and workspaces

Rooms, Redis pub/sub, and multi-app gateways support live and isolated applications.

A small full-stack flow

// 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;
};

Request lifecycle

  1. RequestSecurity headers and request limits
  2. MiddlewareAuthentication, policy, and context
  3. File routePage or API handler
  4. Compiler + SSRSafe HTML and scoped runtime
  5. ResponseHTML, JSON, stream, or realtime upgrade

Production proof

WorkRoot

Public creator/company site and approved WRNexusJS production showcase.

wrnexusjs.dev

This documentation application runs WRNexusJS 0.2.59.

View deployment notes and showcase status →

Capability status

CapabilityStatusDetails
SSR, routing, compiler, APIsPreviewInstalled in 0.2.59; public support policy pending.
Mobile/nativeExperimentalCapacitor compatibility and native generation have platform limitations.
Durable queuesExperimentalProduction durability requires an appropriate driver strategy.

Continue exploring

} }