W WRNexusJS
Guide

Getting started

Create a production-ready WRNexusJS application with Bun.

1. Create the project

bunx @wrnexus/cli create my-app
cd my-app
bun install
bun run dev

2. Add a page

page Dashboard {
  state count = 0
  view {
    <main>
      <h1>Dashboard</h1>
      <button @click="count++">{count}</button>
    </main>
  }
}

3. Verify and build

wrnexus doctor
wrnexus test
wrnexus build

Where things live

  • app/pages contains routes.
  • app/components contains reusable .wrn components.
  • app/api contains server API handlers.
  • app/layouts contains shared shells.
  • app/middleware contains request middleware.
  • wrnexus.config.ts configures security, styles, data, mobile, and deployment.