diff --git a/.gitignore b/.gitignore index 1015cf3d..bb308f13 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,4 @@ Thumbs.db .vscode/* !.vscode/settings.json !.vscode/extensions.json +!.env.*.example diff --git a/app/pages/404.wrn b/app/pages/404.wrn index 42e73f1b..3be2cad2 100644 --- a/app/pages/404.wrn +++ b/app/pages/404.wrn @@ -7,10 +7,10 @@ page Pagenotfound { view {
-
W WRNexusJS
+
W WRNexusJS
- +
} diff --git a/app/pages/access.wrn b/app/pages/access.wrn index 74e7f540..7c4e9a51 100644 --- a/app/pages/access.wrn +++ b/app/pages/access.wrn @@ -7,10 +7,10 @@ page Access { view {
-
W WRNexusJS
+
W WRNexusJS
-

Request preview access

WRNexusJS 0.6.0 packages are not available from the public npm registry. Installation requires approval and private registry credentials supplied by WorkRoot. Never paste registry tokens into source control, issue reports, or support messages.

Request process

  1. Contact WorkRoot through the public contact path at workroot.in.
  2. Describe the application, team, expected deployment, and Bun environment.
  3. After approval, follow the registry instructions supplied privately.
  4. Use the canonical scaffold command below only after authentication.
bunx @wrnexus/cli@0.6.0 create my-app

Access approval, response time, licensing terms, and support level remain owner-controlled. This site does not collect access requests directly.

- +

Request preview access

WRNexusJS 0.7.0 packages are not available from the public npm registry. Installation requires approval and private registry credentials supplied by WorkRoot. Never paste registry tokens into source control, issue reports, or support messages.

Request process

  1. Contact WorkRoot through the public contact path at workroot.in.
  2. Describe the application, team, expected deployment, and Bun environment.
  3. After approval, follow the registry instructions supplied privately.
  4. Use the canonical scaffold command below only after authentication.
bunx @wrnexus/cli@0.7.0 create my-app

Access approval, response time, licensing terms, and support level remain owner-controlled. This site does not collect access requests directly.

+
} diff --git a/app/pages/architecture.wrn b/app/pages/architecture.wrn index 0cd1201b..aef5595a 100644 --- a/app/pages/architecture.wrn +++ b/app/pages/architecture.wrn @@ -7,10 +7,10 @@ page Architecture { view {
-
W WRNexusJS
+
W WRNexusJS
-
Framework architecture · 0.6.0

Architecture

WRNexusJS is Bun-native and SSR-first. File discovery maps pages and API handlers; middleware enriches or short-circuits a request; the compiler turns .wrn declarations into server render functions and small feature runtimes.

Request and build lifecycle

  1. DiscoverPages, APIs, middleware, components, layouts, schemas, rooms
  2. CompileParse .wrn, validate grammar, generate server code
  3. RequestLimits, security, locale, session, middleware
  4. MatchStatic and dynamic file route
  5. RenderSSR data, escaped interpolation, components, metadata
  6. EnhanceOnly required reactive/directive runtimes

Package boundaries

core owns contexts, middleware, sessions and rooms; router discovers routes; compiler parses .wrn; ssr renders documents; csr supplies browser runtimes; dev-server and cli orchestrate development and builds.

Security and data flow

Validation happens at trust boundaries. Session authentication establishes identity; authorization makes resource decisions. CSP, Trusted Types, CSRF, upload checks, WebSocket origins, request limits, and output escaping are layered controls—not substitutes for application policy.

Realtime and scale

Rooms are process-local unless connected through pub/sub. Redis-backed pub/sub distributes events. Queue durability depends on the selected driver and must be evaluated explicitly.

Workspaces and gateways

The gateway can dispatch multiple applications while preserving route, component, asset, config, and session boundaries. Validate host routing and isolation before production.

Build and deployment

wrnexus build . produces dist/server.js and hashed/static assets. Run the server with Bun, apply migrations before traffic, terminate TLS at a trusted edge, and forward only expected proxy headers.

Mobile

Mobile compatibility bridges SSR-safe Capacitor capabilities; native route generation is experimental and is not general web portability. Test each target platform.

Generated files and limits

app/routes.gen.ts, .wrnexus/, and dist/ are generated. The runtime is Bun-only. Preview packages are private. Historical compatibility and long-term support policy are not yet published.

- +
Framework architecture · 0.7.0

Architecture

WRNexusJS is Bun-native and SSR-first. File discovery maps pages and API handlers; middleware enriches or short-circuits a request; the compiler turns .wrn declarations into server render functions and small feature runtimes.

Request and build lifecycle

  1. DiscoverPages, APIs, middleware, components, layouts, schemas, rooms
  2. CompileParse .wrn, validate grammar, generate server code
  3. RequestLimits, security, locale, session, middleware
  4. MatchStatic and dynamic file route
  5. RenderSSR data, escaped interpolation, components, metadata
  6. EnhanceOnly required reactive/directive runtimes

Package boundaries

core owns contexts, middleware, sessions and rooms; router discovers routes; compiler parses .wrn; ssr renders documents; csr supplies browser runtimes; dev-server and cli orchestrate development and builds.

Security and data flow

Validation happens at trust boundaries. Session authentication establishes identity; authorization makes resource decisions. CSP, Trusted Types, CSRF, upload checks, WebSocket origins, request limits, and output escaping are layered controls—not substitutes for application policy.

Realtime and scale

Rooms are process-local unless connected through pub/sub. Redis-backed pub/sub distributes events. Queue durability depends on the selected driver and must be evaluated explicitly.

Workspaces and gateways

The gateway can dispatch multiple applications while preserving route, component, asset, config, and session boundaries. Validate host routing and isolation before production.

Build and deployment

wrnexus build . produces dist/server.js and hashed/static assets. Run the server with Bun, apply migrations before traffic, terminate TLS at a trusted edge, and forward only expected proxy headers.

Mobile

Mobile compatibility bridges SSR-safe Capacitor capabilities; native route generation is experimental and is not general web portability. Test each target platform.

Generated files and limits

app/routes.gen.ts, .wrnexus/, and dist/ are generated. The runtime is Bun-only. Preview packages are private. Historical compatibility and long-term support policy are not yet published.

+
} diff --git a/app/pages/benchmarks.wrn b/app/pages/benchmarks.wrn index 98e10573..6707922b 100644 --- a/app/pages/benchmarks.wrn +++ b/app/pages/benchmarks.wrn @@ -7,10 +7,10 @@ page Benchmarks { view {
-
W WRNexusJS
+
W WRNexusJS

Benchmarks

No publishable benchmark dataset yet

No comparative speed claims are published. A valid baseline must record scripts, commit, Bun/framework versions, hardware, OS, warmup, samples, workload, raw results, median, percentiles, memory, HTML size, browser JavaScript size, and run date.

The roadmap starts with WRNexusJS-only measurements before any maintained equivalent-workload comparison.

- +
} diff --git a/app/pages/changelog.wrn b/app/pages/changelog.wrn index 6ed767bd..fc8ee6a0 100644 --- a/app/pages/changelog.wrn +++ b/app/pages/changelog.wrn @@ -7,10 +7,10 @@ page Changelog { view {
-
W WRNexusJS
+
W WRNexusJS
-

Changelog

0.6.0 2026-07-13

Documentation is aligned to all 33 installed packages. This release adds @wrnexus/helpers, original-request URL helpers, safe login redirects, working wrnexus workspace add, and forward-auth redirect propagation.

Migration notes

Run wrnexus update --latest and keep every @wrnexus/* package on 0.6.0. Existing applications must explicitly add @wrnexus/helpers before importing it; newly scaffolded applications include it automatically.

Versioning and support

The packages use semantic-looking versions, but a formal compatibility and old-release support policy has not been approved. Preview consumers should treat minor releases as potentially requiring migration review.

- +

Changelog

0.7.0 2026-07-13

Documentation is aligned to all 38 installed packages. This release adds @wrnexus/helpers, original-request URL helpers, safe login redirects, working wrnexus workspace add, and forward-auth redirect propagation.

Migration notes

Run wrnexus update --latest and keep every @wrnexus/* package on 0.7.0. Existing applications must explicitly add @wrnexus/helpers before importing it; newly scaffolded applications include it automatically.

Versioning and support

The packages use semantic-looking versions, but a formal compatibility and old-release support policy has not been approved. Preview consumers should treat minor releases as potentially requiring migration review.

+
} diff --git a/app/pages/examples.wrn b/app/pages/examples.wrn index 969d7acf..232da8cb 100644 --- a/app/pages/examples.wrn +++ b/app/pages/examples.wrn @@ -7,10 +7,10 @@ page Examples { view {
-
W WRNexusJS
+
W WRNexusJS
-

Examples

Examples are tied to installed 0.6.0 package documentation. The focused snippets in guides are source-verified; standalone runnable projects and CI compilation are tracked as remaining work.

Minimal .wrn page

Documented

Database CRUD

Planned fixture

Authentication and protected route

Planned fixture

Permissions

Planned fixture

Forms and validation

Documented

Realtime dashboard

Planned fixture

File upload

Planned fixture

Background queue

Planned fixture

Redis pub/sub

Planned fixture

Workspace gateway

Planned fixture

Deployment

Planned fixture

Experimental mobile mode

Planned fixture
- +

Examples

Examples are tied to installed 0.7.0 package documentation. The focused snippets in guides are source-verified; standalone runnable projects and CI compilation are tracked as remaining work.

Minimal .wrn page

Documented

Database CRUD

Planned fixture

Authentication and protected route

Planned fixture

Permissions

Planned fixture

Forms and validation

Documented

Realtime dashboard

Planned fixture

File upload

Planned fixture

Background queue

Planned fixture

Redis pub/sub

Planned fixture

Workspace gateway

Planned fixture

Deployment

Planned fixture

Experimental mobile mode

Planned fixture
+
} diff --git a/app/pages/getting-started.wrn b/app/pages/getting-started.wrn index 37fd8a85..a9328c96 100644 --- a/app/pages/getting-started.wrn +++ b/app/pages/getting-started.wrn @@ -7,9 +7,9 @@ page Gettingstarted { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview guide · v0.6.0

Build a contact inbox

This path creates a server-rendered page, validated API route, middleware, and realtime next step. It requires approved registry access and Bun 1.3.x; this site was verified with Bun 1.3.14.

1. Create the project

bunx @wrnexus/cli@0.6.0 create my-app
+      
Preview guide · v0.7.0

Build a contact inbox

This path creates a server-rendered page, validated API route, middleware, and realtime next step. It requires approved registry access and Bun 1.3.x; this site was verified with Bun 1.3.14.

1. Create the project

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

2. Know the structure

app/pages/       # file-based .wrn routes
@@ -39,7 +39,7 @@ export const POST = async (ctx) => {
 }

7. Test and ship

bun run test
 bun run build
 bun dist/server.js

Next: deployment, database, authentication, and workspaces.

- +
} diff --git a/app/pages/guides/api-routes.wrn b/app/pages/guides/api-routes.wrn index df8798ef..c5adc9b8 100644 --- a/app/pages/guides/api-routes.wrn +++ b/app/pages/guides/api-routes.wrn @@ -7,10 +7,10 @@ page APIroutes { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview guide · 0.6.0

API routes

Export GET, POST, PUT, PATCH, or DELETE from app/api files. Validate request bodies, enforce authentication and authorization, cap request sizes, and return Web Responses.

Release scope

This guide describes installed 0.6.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

- +
Preview guide · 0.7.0

API routes

Export GET, POST, PUT, PATCH, or DELETE from app/api files. Validate request bodies, enforce authentication and authorization, cap request sizes, and return Web Responses.

Release scope

This guide describes installed 0.7.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

+
} diff --git a/app/pages/guides/authentication.wrn b/app/pages/guides/authentication.wrn index d675146d..5a3130e4 100644 --- a/app/pages/guides/authentication.wrn +++ b/app/pages/guides/authentication.wrn @@ -7,10 +7,10 @@ page Authentication { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview guide · 0.6.0

Authentication

Configure session authentication, log users in through supported auth helpers, and read identity from context. Cookie flags, rotation, expiry, and secret storage remain deployment responsibilities.

Release scope

This guide describes installed 0.6.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

- +
Preview guide · 0.7.0

Authentication

Configure session authentication, log users in through supported auth helpers, and read identity from context. Cookie flags, rotation, expiry, and secret storage remain deployment responsibilities.

Release scope

This guide describes installed 0.7.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

+
} diff --git a/app/pages/guides/authorization.wrn b/app/pages/guides/authorization.wrn index 6c6177ef..42d8112d 100644 --- a/app/pages/guides/authorization.wrn +++ b/app/pages/guides/authorization.wrn @@ -7,10 +7,10 @@ page Authorization { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview guide · 0.6.0

Authorization

Authentication identifies; authorization decides. Enforce permissions in server routes and policies, including object ownership. UI hiding is never an authorization boundary.

Release scope

This guide describes installed 0.6.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

- +
Preview guide · 0.7.0

Authorization

Authentication identifies; authorization decides. Enforce permissions in server routes and policies, including object ownership. UI hiding is never an authorization boundary.

Release scope

This guide describes installed 0.7.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

+
} diff --git a/app/pages/guides/configuration-and-profiles.wrn b/app/pages/guides/configuration-and-profiles.wrn index 522f7fac..44c7d3cd 100644 --- a/app/pages/guides/configuration-and-profiles.wrn +++ b/app/pages/guides/configuration-and-profiles.wrn @@ -7,10 +7,10 @@ page Configurationandprofiles { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview guide · 0.6.0

Configuration and profiles

wrnexus.config.ts owns styles, SEO, security, data, mobile, fonts, and profiles. Keep secrets in validated environment variables and review merged production configuration.

Release scope

This guide describes installed 0.6.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

- +
Preview guide · 0.7.0

Configuration and profiles

wrnexus.config.ts owns styles, SEO, security, data, mobile, fonts, and profiles. Keep secrets in validated environment variables and review merged production configuration.

Release scope

This guide describes installed 0.7.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

+
} diff --git a/app/pages/guides/database.wrn b/app/pages/guides/database.wrn index eb9efbcf..6990eb4c 100644 --- a/app/pages/guides/database.wrn +++ b/app/pages/guides/database.wrn @@ -7,10 +7,10 @@ page Database { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview guide · 0.6.0

Database

Configure SQLite or the installed supported driver, keep queries in named SQL blocks, generate typed functions, and apply migrations before traffic. Back up data and test rollback independently.

Release scope

This guide describes installed 0.6.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

- +
Preview guide · 0.7.0

Database

Configure SQLite or the installed supported driver, keep queries in named SQL blocks, generate typed functions, and apply migrations before traffic. Back up data and test rollback independently.

Release scope

This guide describes installed 0.7.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

+
} diff --git a/app/pages/guides/deployment.wrn b/app/pages/guides/deployment.wrn index ad7f343f..8389fcc2 100644 --- a/app/pages/guides/deployment.wrn +++ b/app/pages/guides/deployment.wrn @@ -7,10 +7,10 @@ page Deployment { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview guide · 0.6.0

Deployment

Run bun run build, apply migrations, and start dist/server.js with Bun. Configure TLS, proxy trust, environment validation, health checks, graceful restarts, logs, backups, and restrictive security headers.

Release scope

This guide describes installed 0.6.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

- +
Preview guide · 0.7.0

Deployment

Run bun run build, apply migrations, and start dist/server.js with Bun. Configure TLS, proxy trust, environment validation, health checks, graceful restarts, logs, backups, and restrictive security headers.

Release scope

This guide describes installed 0.7.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

+
} diff --git a/app/pages/guides/forms-and-validation.wrn b/app/pages/guides/forms-and-validation.wrn index 6cabf38b..82688bb1 100644 --- a/app/pages/guides/forms-and-validation.wrn +++ b/app/pages/guides/forms-and-validation.wrn @@ -7,10 +7,10 @@ page Formsandvalidation { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview guide · 0.6.0

Forms and validation

Define a v.object schema, use data-schema on the form, show field errors with data-error, and always call parseBody on the server. refine is server-only.

Release scope

This guide describes installed 0.6.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

- +
Preview guide · 0.7.0

Forms and validation

Define a v.object schema, use data-schema on the form, show field errors with data-error, and always call parseBody on the server. refine is server-only.

Release scope

This guide describes installed 0.7.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

+
} diff --git a/app/pages/guides/i18n-and-themes.wrn b/app/pages/guides/i18n-and-themes.wrn index 49b5a353..5e1b145e 100644 --- a/app/pages/guides/i18n-and-themes.wrn +++ b/app/pages/guides/i18n-and-themes.wrn @@ -7,10 +7,10 @@ page Internationalizationandthemes { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview guide · 0.6.0

Internationalization and themes

Store locale JSON under app/locales and use translation directives. Themes resolve CSS tokens; ensure contrast, system preference behavior, persistence, and non-color cues.

Release scope

This guide describes installed 0.6.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

- +
Preview guide · 0.7.0

Internationalization and themes

Store locale JSON under app/locales and use translation directives. Themes resolve CSS tokens; ensure contrast, system preference behavior, persistence, and non-color cues.

Release scope

This guide describes installed 0.7.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

+
} diff --git a/app/pages/guides/middleware.wrn b/app/pages/guides/middleware.wrn index e437fb8f..02dab39d 100644 --- a/app/pages/guides/middleware.wrn +++ b/app/pages/guides/middleware.wrn @@ -7,10 +7,10 @@ page Middleware { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview guide · 0.6.0

Middleware

Middleware receives context and next. Return next() to continue or return a Response to stop. Put request limits and trust-boundary controls before business logic.

Release scope

This guide describes installed 0.6.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

- +
Preview guide · 0.7.0

Middleware

Middleware receives context and next. Return next() to continue or return a Response to stop. Put request limits and trust-boundary controls before business logic.

Release scope

This guide describes installed 0.7.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

+
} diff --git a/app/pages/guides/mobile.wrn b/app/pages/guides/mobile.wrn index 81c1b9c7..d041c4d8 100644 --- a/app/pages/guides/mobile.wrn +++ b/app/pages/guides/mobile.wrn @@ -7,10 +7,10 @@ page Mobile { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview guide · 0.6.0

Mobile

Mobile capabilities are experimental in this preview. Test Capacitor permissions and lifecycle on each platform; do not assume every .wrn or browser API converts to native.

Release scope

This guide describes installed 0.6.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

- +
Preview guide · 0.7.0

Mobile

Mobile capabilities are experimental in this preview. Test Capacitor permissions and lifecycle on each platform; do not assume every .wrn or browser API converts to native.

Release scope

This guide describes installed 0.7.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

+
} diff --git a/app/pages/guides/observability.wrn b/app/pages/guides/observability.wrn index 1015659d..92231d40 100644 --- a/app/pages/guides/observability.wrn +++ b/app/pages/guides/observability.wrn @@ -7,10 +7,10 @@ page Observability { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview guide · 0.6.0

Observability

Use tracking middleware and sinks with redaction, sampling, stable request identifiers, alert ownership, and retention limits. Never capture registry tokens or session secrets.

Release scope

This guide describes installed 0.6.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

- +
Preview guide · 0.7.0

Observability

Use tracking middleware and sinks with redaction, sampling, stable request identifiers, alert ownership, and retention limits. Never capture registry tokens or session secrets.

Release scope

This guide describes installed 0.7.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

+
} diff --git a/app/pages/guides/pages-and-components.wrn b/app/pages/guides/pages-and-components.wrn index fbc7b2b7..9f455493 100644 --- a/app/pages/guides/pages-and-components.wrn +++ b/app/pages/guides/pages-and-components.wrn @@ -7,10 +7,10 @@ page Pagesandcomponents { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview guide · 0.6.0

Pages and components

Pages are routable, components are reusable, and layouts provide shared slots. Mount a component with data-component and keep browser state scoped and minimal.

Release scope

This guide describes installed 0.6.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

- +
Preview guide · 0.7.0

Pages and components

Pages are routable, components are reusable, and layouts provide shared slots. Mount a component with data-component and keep browser state scoped and minimal.

Release scope

This guide describes installed 0.7.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

+
} diff --git a/app/pages/guides/project-structure.wrn b/app/pages/guides/project-structure.wrn index f33d329f..e6c463e0 100644 --- a/app/pages/guides/project-structure.wrn +++ b/app/pages/guides/project-structure.wrn @@ -7,10 +7,10 @@ page Projectstructure { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview guide · 0.6.0

Project structure

Pages, components, layouts, APIs, middleware, schemas, database files, locales, realtime rooms, and styles live under app. Never edit app/routes.gen.ts, .wrnexus, or dist by hand.

Release scope

This guide describes installed 0.6.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

- +
Preview guide · 0.7.0

Project structure

Pages, components, layouts, APIs, middleware, schemas, database files, locales, realtime rooms, and styles live under app. Never edit app/routes.gen.ts, .wrnexus, or dist by hand.

Release scope

This guide describes installed 0.7.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

+
} diff --git a/app/pages/guides/pubsub.wrn b/app/pages/guides/pubsub.wrn index b81fc1cb..feb4328b 100644 --- a/app/pages/guides/pubsub.wrn +++ b/app/pages/guides/pubsub.wrn @@ -7,10 +7,10 @@ page Pubsub { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview guide · 0.6.0

Pub/sub

The in-process driver cannot cross processes. Use Redis where instances must share events, define channel ownership, and design for reconnects and duplicate delivery.

Release scope

This guide describes installed 0.6.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

- +
Preview guide · 0.7.0

Pub/sub

The in-process driver cannot cross processes. Use Redis where instances must share events, define channel ownership, and design for reconnects and duplicate delivery.

Release scope

This guide describes installed 0.7.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

+
} diff --git a/app/pages/guides/queues.wrn b/app/pages/guides/queues.wrn index 40ed41cf..173c486d 100644 --- a/app/pages/guides/queues.wrn +++ b/app/pages/guides/queues.wrn @@ -7,10 +7,10 @@ page Queues { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview guide · 0.6.0

Queues

Queue behavior is preview-level. Treat in-process work as non-durable, make handlers idempotent, cap retries, record failures, and choose a production persistence strategy.

Release scope

This guide describes installed 0.6.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

- +
Preview guide · 0.7.0

Queues

Queue behavior is preview-level. Treat in-process work as non-durable, make handlers idempotent, cap retries, record failures, and choose a production persistence strategy.

Release scope

This guide describes installed 0.7.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

+
} diff --git a/app/pages/guides/realtime.wrn b/app/pages/guides/realtime.wrn index 2a4efd55..38eb24b9 100644 --- a/app/pages/guides/realtime.wrn +++ b/app/pages/guides/realtime.wrn @@ -7,10 +7,10 @@ page Realtime { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview guide · 0.6.0

Realtime

defineRoom handles connection and messages. Validate message shapes, authorize subscriptions, restrict origins, bound payloads, and use pub/sub to scale across processes.

Release scope

This guide describes installed 0.6.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

- +
Preview guide · 0.7.0

Realtime

defineRoom handles connection and messages. Validate message shapes, authorize subscriptions, restrict origins, bound payloads, and use pub/sub to scale across processes.

Release scope

This guide describes installed 0.7.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

+
} diff --git a/app/pages/guides/routing.wrn b/app/pages/guides/routing.wrn index dc183438..c7d9ee93 100644 --- a/app/pages/guides/routing.wrn +++ b/app/pages/guides/routing.wrn @@ -7,10 +7,10 @@ page Routing { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview guide · 0.6.0

Routing

A page filename defines its URL; index maps to the directory root and bracket segments are dynamic parameters. API files under app/api expose HTTP method functions and receive a Context.

Release scope

This guide describes installed 0.6.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

- +
Preview guide · 0.7.0

Routing

A page filename defines its URL; index maps to the directory root and bracket segments are dynamic parameters. API files under app/api expose HTTP method functions and receive a Context.

Release scope

This guide describes installed 0.7.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

+
} diff --git a/app/pages/guides/security.wrn b/app/pages/guides/security.wrn index b5f56a47..bf56888f 100644 --- a/app/pages/guides/security.wrn +++ b/app/pages/guides/security.wrn @@ -7,10 +7,10 @@ page Applicationsecurity { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview guide · 0.6.0

Application security

Use CSP, CSRF, Trusted Types, session hardening, validation, origin checks, upload restrictions, encryption, request limits, and explicit CORS. See the security policy for reporting.

Release scope

This guide describes installed 0.6.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

- +
Preview guide · 0.7.0

Application security

Use CSP, CSRF, Trusted Types, session hardening, validation, origin checks, upload restrictions, encryption, request limits, and explicit CORS. See the security policy for reporting.

Release scope

This guide describes installed 0.7.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

+
} diff --git a/app/pages/guides/server-data.wrn b/app/pages/guides/server-data.wrn index c699661b..cc0df5c7 100644 --- a/app/pages/guides/server-data.wrn +++ b/app/pages/guides/server-data.wrn @@ -7,10 +7,10 @@ page Serverdata { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview guide · 0.6.0

Server data

Use an ssr API binding, return the desired response field, and render it with a server #each block. Values are escaped. Avoid fetching private data through a route that lacks authorization.

Release scope

This guide describes installed 0.6.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

- +
Preview guide · 0.7.0

Server data

Use an ssr API binding, return the desired response field, and render it with a server #each block. Values are escaped. Avoid fetching private data through a route that lacks authorization.

Release scope

This guide describes installed 0.7.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

+
} diff --git a/app/pages/guides/testing.wrn b/app/pages/guides/testing.wrn index 9907d69d..41a4765b 100644 --- a/app/pages/guides/testing.wrn +++ b/app/pages/guides/testing.wrn @@ -7,10 +7,10 @@ page Testing { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview guide · 0.6.0

Testing

Use Bun tests and @wrnexus/test helpers. Cover server HTML, API status and validation, authorization failures, reactive behavior, and a production startup smoke test.

Release scope

This guide describes installed 0.6.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

- +
Preview guide · 0.7.0

Testing

Use Bun tests and @wrnexus/test helpers. Cover server HTML, API status and validation, authorization failures, reactive behavior, and a production startup smoke test.

Release scope

This guide describes installed 0.7.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

+
} diff --git a/app/pages/guides/troubleshooting.wrn b/app/pages/guides/troubleshooting.wrn index 16fd62a8..36487714 100644 --- a/app/pages/guides/troubleshooting.wrn +++ b/app/pages/guides/troubleshooting.wrn @@ -7,10 +7,10 @@ page Troubleshooting { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview guide · 0.6.0

Troubleshooting

Confirm Bun and package versions, regenerate docs/routes through supported commands, read the first compiler diagnostic, check file naming, validate config, and reproduce under a production build.

Release scope

This guide describes installed 0.6.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

- +
Preview guide · 0.7.0

Troubleshooting

Confirm Bun and package versions, regenerate docs/routes through supported commands, read the first compiler diagnostic, check file naming, validate config, and reproduce under a production build.

Release scope

This guide describes installed 0.7.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

+
} diff --git a/app/pages/guides/upgrading.wrn b/app/pages/guides/upgrading.wrn index f998fee9..aaad06c9 100644 --- a/app/pages/guides/upgrading.wrn +++ b/app/pages/guides/upgrading.wrn @@ -7,10 +7,10 @@ page Upgrading { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview guide · 0.6.0

Upgrading

Back up and commit first, then use wrnexus update --latest as documented by the installed CLI. Review migrations and keep every @wrnexus package aligned. Current release: 0.6.0.

Release scope

This guide describes installed 0.6.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

- +
Preview guide · 0.7.0

Upgrading

Back up and commit first, then use wrnexus update --latest as documented by the installed CLI. Review migrations and keep every @wrnexus package aligned. Current release: 0.7.0.

Release scope

This guide describes installed 0.7.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

+
} diff --git a/app/pages/guides/uploads.wrn b/app/pages/guides/uploads.wrn index 884226c7..a1ae5ab1 100644 --- a/app/pages/guides/uploads.wrn +++ b/app/pages/guides/uploads.wrn @@ -7,10 +7,10 @@ page Uploads { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview guide · 0.6.0

Uploads

Configure named stores, accepted MIME/extensions, and maxBytes. Random keys avoid path traversal. Private files require an authenticated serving route; v1 buffers each file in memory.

Release scope

This guide describes installed 0.6.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

- +
Preview guide · 0.7.0

Uploads

Configure named stores, accepted MIME/extensions, and maxBytes. Random keys avoid path traversal. Private files require an authenticated serving route; v1 buffers each file in memory.

Release scope

This guide describes installed 0.7.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

+
} diff --git a/app/pages/guides/workspaces-and-gateway.wrn b/app/pages/guides/workspaces-and-gateway.wrn index 4cca4f1d..fbc6a96f 100644 --- a/app/pages/guides/workspaces-and-gateway.wrn +++ b/app/pages/guides/workspaces-and-gateway.wrn @@ -7,9 +7,9 @@ page Workspacesandgateway { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview guide · 0.6.0

Workspaces and gateway

A workspace runs isolated applications behind one domain-routing gateway. Add an application from the workspace root; the CLI scaffolds apps/reports and registers it in wrnexus.workspace.ts:

wrnexus workspace add reports --domain=reports.localhost
+      
Preview guide · 0.7.0

Workspaces and gateway

A workspace runs isolated applications behind one domain-routing gateway. Add an application from the workspace root; the CLI scaffolds apps/reports and registers it in wrnexus.workspace.ts:

wrnexus workspace add reports --domain=reports.localhost
 bun install
 bun run dev

Forward authentication

Point protected applications at a dedicated verifier endpoint. The verifier must return 2xx for an authenticated session, 401/403 to deny access, or an HTTP redirect to begin browser login.

// wrnexus.workspace.ts
 {
@@ -28,8 +28,8 @@ export const GET = async (ctx: Context) => {
   return redirectToLogin(ctx, "/login", {
     allowedHosts: ["admin.localhost:3000", "reports.localhost:3000"],
   });
-};

Always allowlist redirect hosts. After login, validate or sign the returnTo value before redirecting. Keep internal app ports private and open applications through the gateway port.

Release scope

This guide describes installed 0.6.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

- +};

Always allowlist redirect hosts. After login, validate or sign the returnTo value before redirecting. Keep internal app ports private and open applications through the gateway port.

Release scope

This guide describes installed 0.7.0 capabilities. Follow linked package declarations for exact signatures; undocumented behavior is not guaranteed.

Browse package APIs · Troubleshooting · Support

+
} diff --git a/app/pages/index.wrn b/app/pages/index.wrn index ce86dd4c..d67fa2f0 100644 --- a/app/pages/index.wrn +++ b/app/pages/index.wrn @@ -7,9 +7,9 @@ page Home { view {
-
W WRNexusJS
+
W WRNexusJS
-

WRNexusJS v0.6.0

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 {
+      

WRNexusJS v0.7.0

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>
@@ -35,10 +35,10 @@ export const POST = async (ctx) => {
   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.6.0.

View deployment notes and showcase status →

-

Capability status

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

Continue exploring

- +

Production proof

WorkRoot

Public creator/company site and approved WRNexusJS production showcase.

wrnexusjs.dev

This documentation application runs WRNexusJS 0.7.0.

View deployment notes and showcase status →

+

Capability status

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

Continue exploring

+
} diff --git a/app/pages/language.wrn b/app/pages/language.wrn index d90fcd98..de8eb1ed 100644 --- a/app/pages/language.wrn +++ b/app/pages/language.wrn @@ -7,15 +7,15 @@ page Thewrnlanguage { view {
-
W WRNexusJS
+
W WRNexusJS
-
Language reference · 0.6.0

The .wrn language

File anatomy

page Account {
+      
Language reference · 0.7.0

The .wrn language

File anatomy

page Account {
   layout = "public"
   seo { title = "Account" description = "Manage your account." }
   state count = 0
   view { <button @click="count++">Count {count}</button> }
 }

Pages, components, layouts, props, and state

Pages are routes. Components declare default-valued props and may hold state. Layouts provide shared slots. Mount components with data-component; fill default or named slots with data-slot.

Interpolation, conditionals, and loops

Interpolation is HTML-escaped. Use server {#if} and {#each} for SSR data. Use data-show for reactive client visibility.

Events and directives

@click and other events execute in the reactive scope. Data attributes opt into forms, i18n, themes, realtime, uploader, browser, and mobile behavior. Consult the exact package page because availability varies.

Forms, i18n, themes, and realtime

form[data-schema] connects descriptors to client and server validation. Translation keys use {t:key}. Theme toggles use data-wire-theme-toggle. Realtime pages opt into a named room.

Escaping and security

Text interpolation is escaped by default. Do not construct trusted HTML from user input. Server-only refinements must be repeated at the authoritative mutation boundary.

Common compiler errors

  • Use balanced braces; a literal brace must be escaped.
  • Declare UI in view, not JSX or hooks.
  • Use a valid page, component, or layout declaration matching the file role.
  • Keep server loops tied to available SSR bindings.
  • Check troubleshooting and compiler API for this release.
- +
} diff --git a/app/pages/license.wrn b/app/pages/license.wrn index bd56c5e4..934bcaed 100644 --- a/app/pages/license.wrn +++ b/app/pages/license.wrn @@ -7,10 +7,10 @@ page License { view {
-
W WRNexusJS
+
W WRNexusJS

License

Owner decision required

This documentation repository contains no public license file, and the packages are unavailable from the public npm registry. No open-source license or redistribution right should be inferred.

Approved preview users must follow the private/commercial terms supplied by WorkRoot. Contact WorkRoot before copying, redistributing, or using WRNexusJS in production.

- +
} diff --git a/app/pages/packages.wrn b/app/pages/packages.wrn index 1aeb67a2..13be1e1f 100644 --- a/app/pages/packages.wrn +++ b/app/pages/packages.wrn @@ -12,10 +12,10 @@ page Packages {
W WRNexusJS - +
-
31 focused packages

Package reference

Everything in the framework, organized by responsibility and documented from the published 0.6.0 APIs.

Showing {category} packages

+
31 focused packages

Package reference

Everything in the framework, organized by responsibility and documented from the published 0.7.0 APIs.

Showing {category} packages

AI

@wrnexus/ai

Server-side Anthropic client with generation and streaming.

Open documentation →
@@ -108,7 +108,7 @@ page Packages { Security

@wrnexus/validation

Typed schemas, coercion, validation, and browser descriptors.

Open documentation →
- + } diff --git a/app/pages/packages/ai.wrn b/app/pages/packages/ai.wrn index 0d09ff9e..6b344a29 100644 --- a/app/pages/packages/ai.wrn +++ b/app/pages/packages/ai.wrn @@ -10,11 +10,11 @@ page wrnexusai {
W WRNexusJS - +
-
AI · Package reference

@wrnexus/ai

Server-side Anthropic client with generation and streaming.

v0.6.0Private registryAI

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/ai@0.6.0

Request preview access. Never put registry tokens in source control.

A tiny, zero-dependency Claude (Anthropic) client for WRNexusJS apps — generate and stream text with Claude from any server-side code.
+
AI · Package reference

@wrnexus/ai

Server-side Anthropic client with generation and streaming.

v0.7.0Private registryAI

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/ai@0.7.0

Request preview access. Never put registry tokens in source control.

A tiny, zero-dependency Claude (Anthropic) client for WRNexusJS apps — generate and stream text with Claude from any server-side code.

Part of the WRNexusJS framework — an SSR-first, Bun-native full-stack web framework.

Overview

@wrnexus/ai is a thin, dependency-free wrapper over the Anthropic Messages API, built on fetch (Bun-native, no SDK). Use it in API routes, jobs, or middleware to call Claude. It defaults to the most capable model, claude-opus-4-8, reads your key from ANTHROPIC_API_KEY, and supports both one-shot generation and streaming.

@@ -240,7 +240,7 @@ export const POST = async (ctx) => { };
- + } diff --git a/app/pages/packages/auth.wrn b/app/pages/packages/auth.wrn index f9db9b83..874c08bd 100644 --- a/app/pages/packages/auth.wrn +++ b/app/pages/packages/auth.wrn @@ -10,11 +10,11 @@ page wrnexusauth {
W WRNexusJS - +
-
Security · Package reference

@wrnexus/auth

Authentication routes, sessions, forms, guards, and account flows.

v0.6.0Private registrySecurity

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/auth@0.6.0

Request preview access. Never put registry tokens in source control.

Framework-native authentication, identity, account-security, and session management for WRNexusJS.

+
Security · Package reference

@wrnexus/auth

Authentication routes, sessions, forms, guards, and account flows.

v0.7.0Private registrySecurity

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/auth@0.7.0

Request preview access. Never put registry tokens in source control.

Framework-native authentication, identity, account-security, and session management for WRNexusJS.

Capabilities

  • Password registration, login, recovery, reset, and authenticated password changes
  • @@ -360,7 +360,7 @@ export const auth = createAuthEngine({ };
- + } diff --git a/app/pages/packages/authz.wrn b/app/pages/packages/authz.wrn index fc2f39e7..39c786b0 100644 --- a/app/pages/packages/authz.wrn +++ b/app/pages/packages/authz.wrn @@ -10,11 +10,11 @@ page wrnexusauthz {
W WRNexusJS - +
-
Security · Package reference

@wrnexus/authz

Role, permission, policy, and authorization guards.

v0.6.0Private registrySecurity

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/authz@0.6.0

Request preview access. Never put registry tokens in source control.

Composable authorization for WRNexusJS — role-based (RBAC), policy-based (PBAC), and attribute-based (ABAC) access control that reduces to a boolean check plus an authorize() guard.
+
Security · Package reference

@wrnexus/authz

Role, permission, policy, and authorization guards.

v0.7.0Private registrySecurity

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/authz@0.7.0

Request preview access. Never put registry tokens in source control.

Composable authorization for WRNexusJS — role-based (RBAC), policy-based (PBAC), and attribute-based (ABAC) access control that reduces to a boolean check plus an authorize() guard.

Part of the WRNexusJS framework — an SSR-first, Bun-native full-stack web framework.

Overview

@wrnexus/authz is a small, server-side authorization toolkit. It gives you three interchangeable models — RBAC (roles → permissions), PBAC (policy predicates), and ABAC (attribute matchers) — that all collapse to a boolean | Promise<boolean> decision. Wrap any decision in a Middleware guard (authorize, requireRole, requirePermission) to protect WRNexusJS routes. Reach for it whenever a route or action needs to be gated on who the user is, what roles they hold, or attributes of the user and the resource. It plugs into @wrnexus/core by reading ctx.user as the authorization subject.

@@ -242,7 +242,7 @@ app.put( );
- + } diff --git a/app/pages/packages/captcha.wrn b/app/pages/packages/captcha.wrn index e3135f09..beabdd88 100644 --- a/app/pages/packages/captcha.wrn +++ b/app/pages/packages/captcha.wrn @@ -10,11 +10,11 @@ page wrnexuscaptcha {
W WRNexusJS - +
-
Security · Package reference

@wrnexus/captcha

Managed CAPTCHA verification, middleware, and UI integration.

v0.6.0Private registrySecurity

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/captcha@0.6.0

Request preview access. Never put registry tokens in source control.

A first-class CAPTCHA and anti-automation package for WRNexusJS. It supports self-hosted challenges, a managed WRNexus service, external providers, form submission guards, page gates, accessible audio, adaptive risk checks, and a Tailwind-only .wrn component.

+
Security · Package reference

@wrnexus/captcha

Managed CAPTCHA verification, middleware, and UI integration.

v0.7.0Private registrySecurity

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/captcha@0.7.0

Request preview access. Never put registry tokens in source control.

A first-class CAPTCHA and anti-automation package for WRNexusJS. It supports self-hosted challenges, a managed WRNexus service, external providers, form submission guards, page gates, accessible audio, adaptive risk checks, and a Tailwind-only .wrn component.

Install

bun add @wrnexus/captcha

WRNexusJS automatically discovers the package plugin, component, client runtime, styles, and DevToolbar audit. Use <Captcha /> directly after installation. The browser runtime is injected once only on responses that render a CAPTCHA; no script tag, public-file copy, or manual plugin registration is required. Call captchaPlugin(options) explicitly only when an application needs to override the discovered package configuration.

@@ -314,7 +314,7 @@ export const HEAD = POST;
- + } diff --git a/app/pages/packages/cli.wrn b/app/pages/packages/cli.wrn index 658f0700..2aa77955 100644 --- a/app/pages/packages/cli.wrn +++ b/app/pages/packages/cli.wrn @@ -10,11 +10,11 @@ page wrnexuscli {
W WRNexusJS - +
-
Tooling · Package reference

@wrnexus/cli

Create, develop, build, generate, test, and maintain WRNexusJS apps.

v0.6.0Private registryTooling

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/cli@0.6.0

Request preview access. Never put registry tokens in source control.

The wrnexus command-line tool that scaffolds, runs, builds, tests, and manages WRNexusJS apps.
+
Tooling · Package reference

@wrnexus/cli

Create, develop, build, generate, test, and maintain WRNexusJS apps.

v0.7.0Private registryTooling

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/cli@0.7.0

Request preview access. Never put registry tokens in source control.

The wrnexus command-line tool that scaffolds, runs, builds, tests, and manages WRNexusJS apps.

Part of the WRNexusJS framework — an SSR-first, Bun-native full-stack web framework.

Overview

@wrnexus/cli provides the wrnexus executable — the single entry point for developing a WRNexusJS app. It runs the HMR dev server, produces a self-contained production build, scaffolds apps/pages/components, drives database migrations, regenerates typed routes and queries, runs tests, and manages configuration profiles. It also scaffolds multi-app monorepos and serves them behind a domain-routing gateway. This is a CLI/build-time package (it shells out to the Bun binary for the dev child and tests) and it also exports the workspace config types via a subpath.

@@ -153,7 +153,7 @@ wrnexus update --latest wrnexus doctor
- + } diff --git a/app/pages/packages/compiler.wrn b/app/pages/packages/compiler.wrn index 0cce8a5a..8a675d02 100644 --- a/app/pages/packages/compiler.wrn +++ b/app/pages/packages/compiler.wrn @@ -10,11 +10,11 @@ page wrnexuscompiler {
W WRNexusJS - +
-
Core · Package reference

@wrnexus/compiler

Parser and code generators for the .wrn language.

v0.6.0Private registryCore

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/compiler@0.6.0

Request preview access. Never put registry tokens in source control.

Compiler for the .wrn language — tokenizes, parses, and lowers .wrn page and component files to TypeScript.
+
Core · Package reference

@wrnexus/compiler

Parser and code generators for the .wrn language.

v0.7.0Private registryCore

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/compiler@0.7.0

Request preview access. Never put registry tokens in source control.

Compiler for the .wrn language — tokenizes, parses, and lowers .wrn page and component files to TypeScript.

Part of the WRNexusJS framework — an SSR-first, Bun-native full-stack web framework.

Overview

@wrnexus/compiler turns .wrn source into TypeScript that targets the framework's runtime primitives. A .wrn file declares either a page (a route) or a component (a reusable, prop-driven fragment) with blocks for state, view (plain HTML), seo, style, functions, api, ssr/client data bindings, and realtime websocket handlers. The pipeline is source → Lexer → parse() → PageAst → generate() → TypeScript. It is a build/server-side library — the WRNexusJS dev loader calls it to compile .wrn files on the fly, surfacing ParseError as a readable error page.

@@ -255,6 +255,17 @@ interface WrnSourceMap { } declare function createWrnSourceMap(source: string, generated: string): WrnSourceMap; +type RouteExecutionKind = "static" | "static-interactive" | "request-ssr" | "authenticated-ssr" | "streaming-ssr" | "dynamic"; +interface RuntimeRequirements { + kind: RouteExecutionKind; + canPrerender: boolean; + needsClientRuntime: boolean; + needsServerRuntime: boolean; + hydrationStrategy: string | null; + reasons: string[]; +} +declare function analyzeRuntimeRequirements(ast: PageAst$1): RuntimeRequirements; + declare class NativeCompileError extends Error { constructor(message: string); } @@ -319,7 +330,7 @@ declare function compileWireFile(source: string, filePath?: string): string; /** Richer entry point returning the AST and structured diagnostics. */ declare function compile(source: string, filePath?: string): CompileResult; -export { type CompilationCache, type CompilationCacheEntry, type CompilationCacheOptions, type CompileResult, DependencyGraph, NativeCompileError, compilationKey, compile, compileNativeWireFile, compileWireFile, createCompilationCache, createComponentContract, createWrnSourceMap, generate, generateBrowserModule, generateDeclarations, generateNative, generateServerFunctionsModule, generateStoreBrowserModule, generateStoreModule, generateTargets, resolveWrnImport, resolveWrnImports, rpcManifest }; +export { type CompilationCache, type CompilationCacheEntry, type CompilationCacheOptions, type CompileResult, DependencyGraph, NativeCompileError, type RouteExecutionKind, type RuntimeRequirements, analyzeRuntimeRequirements, compilationKey, compile, compileNativeWireFile, compileWireFile, createCompilationCache, createComponentContract, createWrnSourceMap, generate, generateBrowserModule, generateDeclarations, generateNative, generateServerFunctionsModule, generateStoreBrowserModule, generateStoreModule, generateTargets, resolveWrnImport, resolveWrnImports, rpcManifest };

Examples

Copy-ready examples from the installed package documentation.

Compile a page

import { compileWireFile } from "@wrnexus/compiler";
 
 const ts = compileWireFile(`
@@ -350,7 +361,7 @@ lx.next(); // { type: "ident", value: "Home", pos: 5 &#
 lx.next(); // { type: "lbrace", value: "{", pos: 10 }
- + } diff --git a/app/pages/packages/core.wrn b/app/pages/packages/core.wrn index b46495c0..9cdc01dd 100644 --- a/app/pages/packages/core.wrn +++ b/app/pages/packages/core.wrn @@ -10,11 +10,11 @@ page wrnexuscore {
W WRNexusJS - +
-
Core · Package reference

@wrnexus/core

Contexts, middleware, security, sessions, caching, JSX, and realtime.

v0.6.0Private registryCore

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/core@0.6.0

Request preview access. Never put registry tokens in source control.

The framework core: the request Context, middleware contract, and the security, session, caching, streaming, realtime, and JSX primitives every other WRNexusJS package builds on.
+
Core · Package reference

@wrnexus/core

Contexts, middleware, security, sessions, caching, JSX, and realtime.

v0.7.0Private registryCore

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/core@0.7.0

Request preview access. Never put registry tokens in source control.

The framework core: the request Context, middleware contract, and the security, session, caching, streaming, realtime, and JSX primitives every other WRNexusJS package builds on.

Part of the WRNexusJS framework — an SSR-first, Bun-native full-stack web framework.

Overview

@wrnexus/core is the shared foundation of WRNexusJS. It defines the Context object that flows through every middleware, page, and API route, plus the Middleware/Next contract they implement. On top of that it ships the building blocks a real app needs: cookie-backed sessions, password auth, CSRF protection, rate limiting, request logging, HTTP + in-memory caching, file uploads, streaming/SSE responses, WebSocket "rooms", security headers/CORS, and a server-side JSX runtime that renders to HTML strings. Everything here is server-side and Bun-native (it uses Bun.password, Bun.write, the web-standard Request/Response, and crypto). You depend on it directly and transitively through the rest of the framework.

@@ -291,10 +291,21 @@ interface LocalStorageSnapshot { getAll(): Record<string, string>; has(key: string): boolean; } +interface SessionPolicy { + cookieName?: string; + idleTimeoutMs?: number; + absoluteTimeoutMs?: number; + sameSite?: NonNullable<CookieOptions["sameSite"]>; + secure?: boolean; +} +declare function setSessionPolicy(policy: SessionPolicy): void; /** A stored session: its data plus an absolute expiry timestamp (ms). */ interface SessionEntry { data: Record<string, unknown>; expiresAt: number; + /** Creation time used for the absolute session lifetime. Optional for old backends. */ + createdAt?: number; + lastAccessAt?: number; } /** * Pluggable session persistence. The default is process-local memory; swap in a @@ -330,6 +341,10 @@ interface AsyncSessionBackend { */ declare function loadSession(backend: AsyncSessionBackend, options?: { ttlMs?: number; + absoluteTtlMs?: number; + cookieName?: string; + sameSite?: NonNullable<CookieOptions["sameSite"]>; + secure?: boolean; }): Middleware; /** @@ -436,27 +451,26 @@ declare function isSafeIslandName(name: string): boolean; declare function isSafeRequestPath(pathname: string): boolean; /** - * CSRF protection via the double-submit cookie pattern. - * - * The framework sets a readable `wire-csrf` cookie on page loads; the client - * echoes it in an `x-csrf-token` header on unsafe requests (the Wire UI form - * runtime does this automatically). The server checks header === cookie. A - * cross-site attacker can't read the cookie to forge the header, so the request - * is rejected — while same-origin requests pass. + * CSRF protection via the double-submit cookie pattern plus origin/fetch + * metadata validation for unsafe requests. */ declare const CSRF_COOKIE = "wire-csrf"; declare const CSRF_HEADER = "x-csrf-token"; +interface CsrfProtectionOptions { + /** Validate Origin when present. Defaults to true. */ + verifyOrigin?: boolean; + /** Additional exact origins permitted for trusted cross-origin clients. */ + trustedOrigins?: string[]; + /** Reject Sec-Fetch-Site: cross-site on unsafe requests. Defaults to true. */ + verifyFetchMetadata?: boolean; +} /** Ensure the CSRF cookie exists (readable by JS) and return its token. */ declare function csrfToken(ctx: Context): string; -/** - * Verify an unsafe request's CSRF token against the cookie. Safe methods - * (GET/HEAD/OPTIONS) always pass. The token may arrive in the `x-csrf-token` - * header or a `_csrf` field already parsed onto `ctx.locals`. - */ -declare function verifyCsrf(ctx: Context): boolean; -/** Middleware that 403s unsafe requests with a missing/mismatched CSRF token. */ -declare function csrfProtection(): Middleware; +/** Verify an unsafe request's token, origin, and browser fetch metadata. */ +declare function verifyCsrf(ctx: Context, options?: CsrfProtectionOptions): boolean; +/** Middleware that 403s unsafe requests with a missing/mismatched token. */ +declare function csrfProtection(options?: CsrfProtectionOptions): Middleware; /** * Authentication primitives. @@ -614,6 +628,8 @@ interface CacheControlOptions { noCache?: boolean; /** stale-while-revalidate window in seconds. */ staleWhileRevalidate?: number; + /** stale-if-error window in seconds. */ + staleIfError?: number; immutable?: boolean; } /** Build a Cache-Control header value from options. */ @@ -626,16 +642,37 @@ declare function etag(body: string | ArrayBuffer | Uint8Array, weak?: boolean): declare function notModified(req: Request, tag: string): boolean; /** - * File upload helpers. Bun parses `multipart/form-data` natively via - * `Request.formData()`, yielding web `File` objects; these helpers validate and - * persist them safely (size/type limits, filename sanitisation to prevent path - * traversal). + * File upload helpers. The legacy `saveUpload` keeps the original sanitized + * filename for compatibility. New applications should use `saveUploadSecure`, + * which stores a random name and supports content inspection/scanning hooks. */ declare class UploadError extends Error { - constructor(message: string); + readonly code: string; + constructor(message: string, code?: string); } +interface UploadInspectionResult { + allowed: boolean; + detectedType?: string; + reason?: string; +} +type UploadInspector = (input: { + file: File; + bytes: Uint8Array; + filename: string; +}) => UploadInspectionResult | Promise<UploadInspectionResult>; +type UploadScanner = (input: { + file: File; + bytes: Uint8Array; + filename: string; +}) => boolean | { + clean: boolean; + reason?: string; +} | Promise<boolean | { + clean: boolean; + reason?: string; +}>; interface SaveUploadOptions { - /** Destination directory. */ + /** Destination directory. Keep this outside the public web root. */ dir: string; /** Reject files larger than this many bytes. */ maxBytes?: number; @@ -643,22 +680,48 @@ interface SaveUploadOptions { allowedTypes?: string[]; /** Choose the stored filename. Default: the sanitised original name. */ filename?: (file: File) => string; + /** Content/magic-byte inspection hook. */ + inspect?: UploadInspector; + /** Malware scanning hook. */ + scan?: UploadScanner; + /** Called after validation but before persistence. */ + beforeSave?: (input: { + file: File; + bytes: Uint8Array; + filename: string; + }) => void | Promise<void>; +} +interface SecureUploadOptions extends Omit<SaveUploadOptions, "filename"> { + /** Preserve the original sanitized name instead of a random server name. */ + preserveOriginalName?: boolean; + /** Optional custom secure filename generator. */ + filename?: (file: File) => string; + /** Preserve a conservative extension on random filenames. Defaults to true. */ + preserveExtension?: boolean; } interface SavedUpload { path: string; filename: string; size: number; type: string; + detectedType?: string; } /** All `File` values in a parsed form, with their field names. */ -declare function collectUploads(form: FormData): { +declare function collectUploads(form: FormData, options?: { + maxFiles?: number; + maxTotalBytes?: number; +}): { field: string; file: File; }[]; -/** Validate and write one uploaded file to disk. Throws `UploadError` on reject. */ +/** Validate and write one uploaded file using a compatibility filename policy. */ declare function saveUpload(file: File, options: SaveUploadOptions): Promise<SavedUpload>; +/** Store an upload under a random server-generated name by default. */ +declare function saveUploadSecure(file: File, options: SecureUploadOptions): Promise<SavedUpload>; /** Strip directory separators, traversal, and control chars from a filename. */ declare function sanitizeFilename(name: string): string; +declare function randomUploadFilename(originalName?: string, preserveExtension?: boolean): string; +declare function secureDownloadHeaders(filename: string, type?: string): Headers; /** * Streaming response primitives. @@ -780,7 +843,27 @@ interface RoomAuthInfo { /** The upgrade request's headers (cookies, etc.). */ headers: Headers; } +interface RealtimeSecurityOptions { + /** Maximum inbound or outbound serialized message size. Defaults to 64 KiB. */ + maxMessageBytes?: number; + /** Maximum messages accepted per connection per rolling second. Defaults to 30. */ + maxMessagesPerSecond?: number; + /** Maximum live connections in one room. Defaults to 1,000. */ + maxConnectionsPerRoom?: number; + /** Maximum connections for one authenticated user in a room. Defaults to 10. */ + maxConnectionsPerUser?: number; + /** Reject anonymous connections before onConnect. */ + requireUser?: boolean; + /** Maximum nested JSON depth. Defaults to 32. */ + maxJsonDepth?: number; + /** Optional message schema/authorization predicate. */ + validateMessage?(message: unknown, client: RoomClient): boolean | Promise<boolean>; + /** Called when a connection is rejected or closed for a policy violation. */ + onViolation?(reason: string, client?: RoomClient): void; +} interface RoomHandlers<TData = Record<string, unknown>> { + /** Per-room abuse and payload controls. */ + security?: RealtimeSecurityOptions; /** * Gate the connection BEFORE it is accepted. Return false to reject the * upgrade with 403 (e.g. `authorize: (info) => !!info.user` to require auth). @@ -822,6 +905,9 @@ interface RealtimeEnvelope { interface RealtimeBridge { publish(envelope: RealtimeEnvelope): void; } +interface RealtimeRegistryOptions extends RealtimeSecurityOptions { + now?: () => number; +} interface RealtimeRegistry { open(socket: RawSocket, meta: RealtimeConnectMeta): void | Promise<void>; message(socket: RawSocket, raw: string | Uint8Array): void | Promise<void>; @@ -834,7 +920,7 @@ interface RealtimeRegistry { size(): number; } /** Create the registry that maps sockets ↔ rooms and drives room handlers. */ -declare function createRealtimeRegistry(): RealtimeRegistry; +declare function createRealtimeRegistry(options?: RealtimeRegistryOptions): RealtimeRegistry; /** * A minimal pub/sub bus (structurally satisfied by `@wrnexus/pubsub`). Used to * bridge realtime broadcasts across processes without a hard dependency. @@ -931,9 +1017,22 @@ interface TrustedTypesConfig { allowDuplicates?: boolean; } type PermissionsPolicyConfig = Record<string, string | string[] | false | null | undefined>; +interface RequestLimitsConfig { + maxUrlLength?: number; + maxHeaderCount?: number; + maxHeaderBytes?: number; + maxQueryParameters?: number; + maxBodyBytes?: number; + timeoutMs?: number; + maxConcurrent?: number; + trustedHosts?: string[]; + fetchMetadata?: boolean; +} interface SecurityConfig { /** Set false to skip all framework security headers except explicitly enabled CORS. */ headers?: boolean; + /** Built-in request size, timeout, concurrency, host, and Fetch Metadata limits. */ + requestLimits?: RequestLimitsConfig; /** * Trust `X-Forwarded-Proto` / `X-Forwarded-Host` when building `ctx.url` — set * this when the app runs behind a TLS-terminating reverse proxy (nginx, the @@ -952,6 +1051,12 @@ interface SecurityConfig { frameOptions?: false | "DENY" | "SAMEORIGIN"; /** Defaults to "strict-origin-when-cross-origin". */ referrerPolicy?: false | string; + /** Defaults to "same-origin". */ + crossOriginResourcePolicy?: false | "same-origin" | "same-site" | "cross-origin"; + /** Isolate the origin in its own agent cluster. Defaults to true. */ + originAgentCluster?: boolean; + /** Disable speculative DNS prefetching. Defaults to true. */ + disableDnsPrefetch?: boolean; /** Defaults to a restrictive browser capability policy. */ permissionsPolicy?: false | PermissionsPolicyConfig; /** Extra static headers applied last. */ @@ -1055,6 +1160,20 @@ interface PerformanceBudgets { imageBytes?: number; hydrationMs?: number; serverRenderMs?: number; + /** Largest Contentful Paint in milliseconds. Recommended <= 2500. */ + lcpMs?: number; + /** Interaction to Next Paint in milliseconds. Recommended <= 200. */ + inpMs?: number; + /** Cumulative Layout Shift score. Recommended <= 0.1. */ + cls?: number; + /** Time to First Byte in milliseconds. */ + ttfbMs?: number; + /** Longest main-thread task in milliseconds. Recommended <= 50. */ + longTaskMs?: number; + /** Number of client hydration boundaries on the route. */ + hydratedComponents?: number; + /** Total request count for the initial navigation. */ + requests?: number; } interface PerformanceMeasurement { routeJsBytes?: number; @@ -1063,6 +1182,13 @@ interface PerformanceMeasurement { imageBytes?: number; hydrationMs?: number; serverRenderMs?: number; + lcpMs?: number; + inpMs?: number; + cls?: number; + ttfbMs?: number; + longTaskMs?: number; + hydratedComponents?: number; + requests?: number; } interface BudgetViolation { metric: keyof PerformanceBudgets; @@ -1070,6 +1196,7 @@ interface BudgetViolation { actual: number; overBy: number; } +declare const recommendedWebBudgets: Readonly<PerformanceBudgets>; declare function checkPerformanceBudgets(budgets: PerformanceBudgets, measurement: PerformanceMeasurement): BudgetViolation[]; interface ProblemDetails { @@ -1146,7 +1273,7 @@ declare function withIdempotency<T>(store: IdempotencyStore<T>, key: replayed: boolean; }>; -export { type ActionDefinition, ApplicationLifecycle, type AsyncSessionBackend, type Bucket, type BudgetViolation, CSRF_COOKIE, CSRF_HEADER, type CacheControlOptions, type CachePolicy, type ContentSecurityPolicyConfig, type Context, type CookieOptions, type CookieStore, type CorsConfig, type CorsOrigin, type CspDirectiveValue, type DefinedAction, type DefinedEndpoint, type DefinedLoader, type EndpointDefinition, EndpointError, type EndpointErrorBody, type FeatureFlags, type FeatureRule, type FeatureValue, type HealthCheck, type HealthCheckResult, HealthRegistry, type HstsConfig, type IdempotencyRecord, type IdempotencyStore, type LifecycleHandler, type LifecyclePhase, type LoaderDefinition, type LocalStorageSnapshot, type Middleware, type Mode, type Next, type PageComponent, type PageMeta, type PerformanceBudgets, type PerformanceMeasurement, type PermissionsPolicyConfig, type ProblemDetails, type ProblemDetailsInput, type RateLimitOptions, type RateLimitStore, type RawSocket, type RealtimeBridge, type RealtimeBus, type RealtimeConnectMeta, type RealtimeEnvelope, type RealtimeHandler, type RealtimeRegistry, type RealtimeSocket, type RequestLoggerOptions, type RequestRecord, type RequireAuthOptions, type Room, type RoomAuthInfo, type RoomClient, type RoomDefinition, type RoomHandlers, type RpcClientOptions, SESSION_USER_KEY, type SaveUploadOptions, type SavedUpload, type SchemaLike, type SecurityConfig, type SeoConfig, type ServerSentEvent, ServiceContainer, type ServiceToken, type SessionBackend, type SessionEntry, type SessionStore, type Span, type SpanRecord, type StreamResponseInit, type TFunction, TTLCache, type Target, type Tenant, type TenantMiddlewareOptions, type TenantResolver, type Tracer, type TrustedTypesConfig, UploadError, bridgeRealtime, cacheControl, checkPerformanceBudgets, collectUploads, createContext, createCorsPreflightResponse, createRealtimeRegistry, createRpcClient, createTracer, csrfProtection, csrfToken, dedupe, defaultKey, defineAction, defineEndpoint, defineFeatureFlags, defineLoader, defineRoom, escapeHtml, etag, getUser, hashPassword, isRoomDefinition, isSafeIslandName, isSafeRequestPath, isWebSocketOriginAllowed, loadSession, logIn, logOut, memoryIdempotencyStore, notModified, peerKey, problem, proxyKey, rateLimit, renderDevError, renderError, renderNotFound, renderProdError, renderStatusPage, requestId, requestLogger, requireAuth, requireTenant, resolveRequestUrl, sanitizeFilename, saveUpload, serviceToken, sessionAuth, setSessionBackend, sse, streamResponse, tenantFromSubdomain, tenantMiddleware, tenantScope, tracingMiddleware, verifyCsrf, verifyPassword, withCacheControl, withContextHeaders, withIdempotency, withSecurityHeaders, withSpan }; +export { type ActionDefinition, ApplicationLifecycle, type AsyncSessionBackend, type Bucket, type BudgetViolation, CSRF_COOKIE, CSRF_HEADER, type CacheControlOptions, type CachePolicy, type ContentSecurityPolicyConfig, type Context, type CookieOptions, type CookieStore, type CorsConfig, type CorsOrigin, type CspDirectiveValue, type CsrfProtectionOptions, type DefinedAction, type DefinedEndpoint, type DefinedLoader, type EndpointDefinition, EndpointError, type EndpointErrorBody, type FeatureFlags, type FeatureRule, type FeatureValue, type HealthCheck, type HealthCheckResult, HealthRegistry, type HstsConfig, type IdempotencyRecord, type IdempotencyStore, type LifecycleHandler, type LifecyclePhase, type LoaderDefinition, type LocalStorageSnapshot, type Middleware, type Mode, type Next, type PageComponent, type PageMeta, type PerformanceBudgets, type PerformanceMeasurement, type PermissionsPolicyConfig, type ProblemDetails, type ProblemDetailsInput, type RateLimitOptions, type RateLimitStore, type RawSocket, type RealtimeBridge, type RealtimeBus, type RealtimeConnectMeta, type RealtimeEnvelope, type RealtimeHandler, type RealtimeRegistry, type RealtimeRegistryOptions, type RealtimeSecurityOptions, type RealtimeSocket, type RequestLimitsConfig, type RequestLoggerOptions, type RequestRecord, type RequireAuthOptions, type Room, type RoomAuthInfo, type RoomClient, type RoomDefinition, type RoomHandlers, type RpcClientOptions, SESSION_USER_KEY, type SaveUploadOptions, type SavedUpload, type SchemaLike, type SecureUploadOptions, type SecurityConfig, type SeoConfig, type ServerSentEvent, ServiceContainer, type ServiceToken, type SessionBackend, type SessionEntry, type SessionPolicy, type SessionStore, type Span, type SpanRecord, type StreamResponseInit, type TFunction, TTLCache, type Target, type Tenant, type TenantMiddlewareOptions, type TenantResolver, type Tracer, type TrustedTypesConfig, UploadError, type UploadInspectionResult, type UploadInspector, type UploadScanner, bridgeRealtime, cacheControl, checkPerformanceBudgets, collectUploads, createContext, createCorsPreflightResponse, createRealtimeRegistry, createRpcClient, createTracer, csrfProtection, csrfToken, dedupe, defaultKey, defineAction, defineEndpoint, defineFeatureFlags, defineLoader, defineRoom, escapeHtml, etag, getUser, hashPassword, isRoomDefinition, isSafeIslandName, isSafeRequestPath, isWebSocketOriginAllowed, loadSession, logIn, logOut, memoryIdempotencyStore, notModified, peerKey, problem, proxyKey, randomUploadFilename, rateLimit, recommendedWebBudgets, renderDevError, renderError, renderNotFound, renderProdError, renderStatusPage, requestId, requestLogger, requireAuth, requireTenant, resolveRequestUrl, sanitizeFilename, saveUpload, saveUploadSecure, secureDownloadHeaders, serviceToken, sessionAuth, setSessionBackend, setSessionPolicy, sse, streamResponse, tenantFromSubdomain, tenantMiddleware, tenantScope, tracingMiddleware, verifyCsrf, verifyPassword, withCacheControl, withContextHeaders, withIdempotency, withSecurityHeaders, withSpan };

Examples

Copy-ready examples from the installed package documentation.

A minimal middleware chain

import {
   createContext,
   withContextHeaders,
@@ -1210,7 +1337,7 @@ const registry = createRealtimeRegistry();
 bridgeRealtime(registry, createPubSub(redisDriver(process.env.REDIS_URL)));
- + } diff --git a/app/pages/packages/csr.wrn b/app/pages/packages/csr.wrn index 697d47e8..5ebda1d1 100644 --- a/app/pages/packages/csr.wrn +++ b/app/pages/packages/csr.wrn @@ -10,11 +10,11 @@ page wrnexuscsr {
W WRNexusJS - +
-
Frontend · Package reference

@wrnexus/csr

Reactive, navigation, and realtime browser runtimes.

v0.6.0Private registryFrontend

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/csr@0.6.0

Request preview access. Never put registry tokens in source control.

The browser-side client runtime for WRNexusJS — generic, self-contained JS that hydrates server-rendered pages with reactivity, client-side navigation, and realtime rooms.
+
Frontend · Package reference

@wrnexus/csr

Reactive, navigation, and realtime browser runtimes.

v0.7.0Private registryFrontend

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/csr@0.7.0

Request preview access. Never put registry tokens in source control.

The browser-side client runtime for WRNexusJS — generic, self-contained JS that hydrates server-rendered pages with reactivity, client-side navigation, and realtime rooms.

Part of the WRNexusJS framework — an SSR-first, Bun-native full-stack web framework.

Overview

@wrnexus/csr holds the three client runtimes that WRNexusJS serves to the browser. Components are authored as .wrn files and rendered on the server; this package provides the single, generic runtime that hydrates that HTML in the browser — there are no per-component browser bundles. Each runtime is exported as a plain-JS string (no build step, no imports) intended to be served verbatim from a well-known URL:

@@ -297,7 +297,7 @@ room.on("chat", (msg) => console.log(msg.user, msg.text)); room.send({ type: "chat", user: "ada", text: "hi" });
- + } diff --git a/app/pages/packages/db.wrn b/app/pages/packages/db.wrn index 9329375d..2a3034d3 100644 --- a/app/pages/packages/db.wrn +++ b/app/pages/packages/db.wrn @@ -10,11 +10,11 @@ page wrnexusdb {
W WRNexusJS - +
-
Data · Package reference

@wrnexus/db

Database adapters, typed queries, models, migrations, and sessions.

v0.6.0Private registryData

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/db@0.6.0

Request preview access. Never put registry tokens in source control.

The database layer for WRNexusJS: TS models as the single source of truth for DDL, validation, and result typing, plus a driver-based Db client, migrations, and a sqlc-style query generator.
+
Data · Package reference

@wrnexus/db

Database adapters, typed queries, models, migrations, and sessions.

v0.7.0Private registryData

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/db@0.7.0

Request preview access. Never put registry tokens in source control.

The database layer for WRNexusJS: TS models as the single source of truth for DDL, validation, and result typing, plus a driver-based Db client, migrations, and a sqlc-style query generator.

Part of the WRNexusJS framework — an SSR-first, Bun-native full-stack web framework.

Overview

@wrnexus/db is the server-side data layer. You describe tables as TypeScript models (the v column builder + table()); those models drive migrations, coerce raw DB rows into typed objects, and feed the query generator. A thin Driver interface is implemented by adapters for SQLite (bun:sqlite), Postgres/MySQL (Bun.SQL), and MongoDB. The Db client adds ergonomics — model-mapped all/one, transactions, createTable, pagination, and batched relation loading. A process-wide registry (getDb/setDb) exposes configured connections to pages and API routes. Reach for it whenever a WRNexusJS app needs persistence.

@@ -342,7 +342,34 @@ declare function tenantScope(sql: string, tenantId: unknown, dialect: Dialect, e }; declare function softDeleteClause(column?: string): string; -export { type CursorPage, type CursorPageOptions, Db, Dialect, type Migration, Model, type ModelRef, type PageOptions, type Paginated, type QueryDef, type QueryKind, type RelationOptions, Row, appliedMigrations, applyMigrations, closeDatabases, cursorPaginate, databaseNames, generateQueriesFile, getDb, hasDb, loadMigrations, loadRelated, migrate, optimisticUpdate, paginate, parseMigration, parseQueries, registerDb, registerLazyDb, rollback, scaffoldMigration, setDb, softDeleteClause, status, tenantScope }; +interface QueryRecord { + sql: string; + paramsCount: number; + durationMs: number; + rowCount?: number; + operation: "all" | "one" | "exec"; + duplicateCount: number; +} +interface QueryIssue { + code: string; + severity: "error" | "warning" | "info"; + message: string; + sql: string; +} +interface QueryPolicy { + slowQueryMs?: number; + timeoutMs?: number; + maxRows?: number; + duplicateWarningCount?: number; + warnSelectStar?: boolean; + warnUnboundedSelect?: boolean; + onQuery?: (record: QueryRecord) => void | Promise<void>; + onIssue?: (issue: QueryIssue) => void | Promise<void>; +} +declare function instrumentDb(db: Db, policy?: QueryPolicy): Db; +declare function queryOperation(sql: string): string; + +export { type CursorPage, type CursorPageOptions, Db, Dialect, type Migration, Model, type ModelRef, type PageOptions, type Paginated, type QueryDef, type QueryIssue, type QueryKind, type QueryPolicy, type QueryRecord, type RelationOptions, Row, appliedMigrations, applyMigrations, closeDatabases, cursorPaginate, databaseNames, generateQueriesFile, getDb, hasDb, instrumentDb, loadMigrations, loadRelated, migrate, optimisticUpdate, paginate, parseMigration, parseQueries, queryOperation, registerDb, registerLazyDb, rollback, scaffoldMigration, setDb, softDeleteClause, status, tenantScope };

Examples

Copy-ready examples from the installed package documentation.

Define models, connect, create tables, and query with typed results

import { v, table, createDb } from "@wrnexus/db";
 import { sqlite } from "@wrnexus/db/sqlite";
 
@@ -381,7 +408,7 @@ await repo.insert({ email: "a@b.com" });
 const active = await repo.find({ active: true });
- + } diff --git a/app/pages/packages/dev-server.wrn b/app/pages/packages/dev-server.wrn index a6f558a3..99433345 100644 --- a/app/pages/packages/dev-server.wrn +++ b/app/pages/packages/dev-server.wrn @@ -10,11 +10,11 @@ page wrnexusdevserver {
W WRNexusJS - +
-
Runtime · Package reference

@wrnexus/dev-server

Development and production servers, HMR, assets, and gateways.

v0.6.0Private registryRuntime

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/dev-server@0.6.0

Request preview access. Never put registry tokens in source control.

The WRNexusJS HTTP + WebSocket server runtime — request dispatch, SSR document assembly, live-reload (HMR), and the portable production handler.
+
Runtime · Package reference

@wrnexus/dev-server

Development and production servers, HMR, assets, and gateways.

v0.7.0Private registryRuntime

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/dev-server@0.7.0

Request preview access. Never put registry tokens in source control.

The WRNexusJS HTTP + WebSocket server runtime — request dispatch, SSR document assembly, live-reload (HMR), and the portable production handler.

Part of the WRNexusJS framework — an SSR-first, Bun-native full-stack web framework.

Overview

This package is the server runtime that powers a WRNexusJS app in both development and production. A single request runtime (createHandlers) owns HTTP/WebSocket dispatch and SSR document assembly; it knows nothing about _how_ modules and assets are produced, so the dev and prod entry points wire in different backends: dev uses dynamic module loading plus on-the-fly bundling and injects a live-reload client; prod uses a static, pre-built manifest with cache-immutable assets. The package also ships a multi-app gateway (route several apps by Host header behind one port) and a portable node:http adapter for WinterCG hosts. It is entirely server-side and Bun-native (Bun.serve, Bun.file, Bun.gzipSync).

@@ -337,7 +337,7 @@ interface RuntimeDeps { clientRuntimes?: ClientRuntimeDefinition[]; /** Page navigation strategy. `document` disables same-origin link interception. */ navigation?: { - mode?: "client" | "document"; + mode?: "auto" | "client" | "document"; }; /** Raw HTML appended to every page head (e.g. CDN framework links). */ head?: string; @@ -442,6 +442,21 @@ interface GatewayApp { auth?: GatewayAuth; } /** Gateway-wide security controls, enforced for every app. */ +interface GatewayRequestLimits { + maxUrlLength?: number; + maxHeaderCount?: number; + maxHeaderBytes?: number; + maxQueryParameters?: number; + maxBodyBytes?: number; + timeoutMs?: number; + maxConcurrent?: number; + fetchMetadata?: boolean; +} +interface GatewayWebSocketSecurity { + maxMessageBytes?: number; + maxQueuedMessages?: number; + allowedOrigins?: string[]; +} interface GatewaySecurity { /** Reject requests whose Host matches no app (404) instead of routing to the first. */ trustedHostsOnly?: boolean; @@ -456,6 +471,10 @@ interface GatewaySecurity { forwardedHeaders?: boolean; /** Log each request (host → app, method, path, status). */ accessLog?: boolean; + /** URL, header, body, timeout, concurrency, and Fetch Metadata limits. */ + requestLimits?: GatewayRequestLimits; + /** WebSocket origin, payload, and pre-connect queue limits. */ + websocket?: GatewayWebSocketSecurity; } interface GatewayOptions { port?: number; @@ -737,7 +756,7 @@ await startGateway({ });
- + } diff --git a/app/pages/packages/dev-toolbar.wrn b/app/pages/packages/dev-toolbar.wrn index 89444f28..a166b212 100644 --- a/app/pages/packages/dev-toolbar.wrn +++ b/app/pages/packages/dev-toolbar.wrn @@ -10,11 +10,11 @@ page wrnexusdevtoolbar {
W WRNexusJS - +
-
Tooling · Package reference

@wrnexus/dev-toolbar

Development toolbar diagnostics, inspection, and runtime status.

v0.6.0Private registryTooling

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/dev-toolbar@0.6.0

Request preview access. Never put registry tokens in source control.

Development-only page quality toolbar for WRNexusJS.

+
Tooling · Package reference

@wrnexus/dev-toolbar

Development toolbar diagnostics, inspection, and runtime status.

v0.7.0Private registryTooling

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/dev-toolbar@0.7.0

Request preview access. Never put registry tokens in source control.

Development-only page quality toolbar for WRNexusJS.

Features

  • Runtime, resource and unhandled promise error capture
  • @@ -37,7 +37,7 @@ export { DEV_TOOLBAR_CSS, DEV_TOOLBAR_RUNTIME } from './client/index.j const issues = runDevToolbarRules(context);
- + } diff --git a/app/pages/packages/encryption.wrn b/app/pages/packages/encryption.wrn index bdfc34d6..0a6d327b 100644 --- a/app/pages/packages/encryption.wrn +++ b/app/pages/packages/encryption.wrn @@ -10,11 +10,11 @@ page wrnexusencryption {
W WRNexusJS - +
-
Security · Package reference

@wrnexus/encryption

Hashing, HMAC, authenticated encryption, and key derivation.

v0.6.0Private registrySecurity

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/encryption@0.6.0

Request preview access. Never put registry tokens in source control.

Dependency-free crypto helpers for WRNexusJS: authenticated symmetric encryption (AES-256-GCM), hashing, and HMAC signing.
+
Security · Package reference

@wrnexus/encryption

Hashing, HMAC, authenticated encryption, and key derivation.

v0.7.0Private registrySecurity

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/encryption@0.7.0

Request preview access. Never put registry tokens in source control.

Dependency-free crypto helpers for WRNexusJS: authenticated symmetric encryption (AES-256-GCM), hashing, and HMAC signing.

Part of the WRNexusJS framework — an SSR-first, Bun-native full-stack web framework.

Overview

This package provides small, focused cryptographic primitives for server-side use: encrypting secrets/tokens/database fields at rest with AES-256-GCM, deriving keys from passwords via PBKDF2, computing SHA-256 digests, and signing/verifying payloads with HMAC-SHA256. It is built entirely on the standard Web Crypto API (crypto.subtle) plus btoa/atob and TextEncoder/TextDecoder — no third-party dependencies. Reach for it whenever you need to protect sensitive values or verify webhook signatures. All functions are async (Web Crypto is promise-based).

@@ -127,7 +127,7 @@ const ok = await hmacVerify(rawBody, webhookSecret, incomingSignatureHeader); if (!ok) throw new Error("Invalid webhook signature");
- + } diff --git a/app/pages/packages/helpers.wrn b/app/pages/packages/helpers.wrn index 4148b470..3dc8fbf8 100644 --- a/app/pages/packages/helpers.wrn +++ b/app/pages/packages/helpers.wrn @@ -10,11 +10,11 @@ page wrnexushelpers {
W WRNexusJS - +
-
Tooling · Package reference

@wrnexus/helpers

Safe Context URL helpers and forward-auth login redirects.

v0.6.0Private registryTooling

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/helpers@0.6.0

Request preview access. Never put registry tokens in source control.

Safe convenience helpers for common WRNexusJS application flows. The package uses standard Context, URL, and Response values and has no runtime dependency beyond @wrnexus/core.

+
Tooling · Package reference

@wrnexus/helpers

Safe Context URL helpers and forward-auth login redirects.

v0.7.0Private registryTooling

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/helpers@0.7.0

Request preview access. Never put registry tokens in source control.

Safe convenience helpers for common WRNexusJS application flows. The package uses standard Context, URL, and Response values and has no runtime dependency beyond @wrnexus/core.

bun add @wrnexus/helpers

The package is private, so the machine must be authenticated to the wrnexus npm organization.

Usage

@@ -156,7 +156,7 @@ export const GET = async (ctx: Context) => { };
- + } diff --git a/app/pages/packages/i18n.wrn b/app/pages/packages/i18n.wrn index d0c17082..3c307e49 100644 --- a/app/pages/packages/i18n.wrn +++ b/app/pages/packages/i18n.wrn @@ -10,11 +10,11 @@ page wrnexusi18n {
W WRNexusJS - +
-
Frontend · Package reference

@wrnexus/i18n

Translation loading, locale resolution, and Intl formatting.

v0.6.0Private registryFrontend

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/i18n@0.6.0

Request preview access. Never put registry tokens in source control.

Per-request translations plus locale-aware number, date, and currency formatting for WRNexusJS apps.
+
Frontend · Package reference

@wrnexus/i18n

Translation loading, locale resolution, and Intl formatting.

v0.7.0Private registryFrontend

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/i18n@0.7.0

Request preview access. Never put registry tokens in source control.

Per-request translations plus locale-aware number, date, and currency formatting for WRNexusJS apps.

Part of the WRNexusJS framework — an SSR-first, Bun-native full-stack web framework.

Overview

@wrnexus/i18n loads locale files from app/locales/<lang>.json, resolves the active language for each request (cookie → Accept-Language → default), and builds a t(key, params) translator used both in server code and in .wrn views. It also ships Intl-based formatting helpers and a tiny client runtime that wires up a language switcher. Translation lookup, language resolution, and HTML marker rewriting run server-side; only the small I18N_RUNTIME snippet runs in the browser.

@@ -251,7 +251,7 @@ formatRelativeTime(-3, "day", lang); // "3 days ago" plural(2, { one: "# item", other: "# items" }, lang); // "2 items"
- + } diff --git a/app/pages/packages/jwt.wrn b/app/pages/packages/jwt.wrn index f2a03ea8..6335eb0c 100644 --- a/app/pages/packages/jwt.wrn +++ b/app/pages/packages/jwt.wrn @@ -10,11 +10,11 @@ page wrnexusjwt {
W WRNexusJS - +
-
Security · Package reference

@wrnexus/jwt

HS256 JWT signing, verification, and bearer authentication.

v0.6.0Private registrySecurity

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/jwt@0.6.0

Request preview access. Never put registry tokens in source control.

Dependency-free JSON Web Tokens (HS256) via Web Crypto, plus a bearer-token auth middleware for WRNexusJS.
+
Security · Package reference

@wrnexus/jwt

HS256 JWT signing, verification, and bearer authentication.

v0.7.0Private registrySecurity

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/jwt@0.7.0

Request preview access. Never put registry tokens in source control.

Dependency-free JSON Web Tokens (HS256) via Web Crypto, plus a bearer-token auth middleware for WRNexusJS.

Part of the WRNexusJS framework — an SSR-first, Bun-native full-stack web framework.

Overview

@wrnexus/jwt signs and verifies stateless JSON Web Tokens using the HS256 (HMAC-SHA-256) algorithm. It has no runtime dependencies — signing and verification are implemented directly on the standard Web Crypto API (crypto.subtle), which Bun provides natively. It runs server-side and pairs with the session-based auth in @wrnexus/core, giving you a stateless option for API and mobile clients. Reach for it when you need bearer-token auth rather than cookie sessions.

@@ -192,7 +192,7 @@ app.use(jwtAuth({ secret: process.env.JWT_SECRET! })); app.use(jwtAuth({ secret: process.env.JWT_SECRET!, required: false }));
- + } diff --git a/app/pages/packages/mobile.wrn b/app/pages/packages/mobile.wrn index b5607541..dc18ab7a 100644 --- a/app/pages/packages/mobile.wrn +++ b/app/pages/packages/mobile.wrn @@ -10,11 +10,11 @@ page wrnexusmobile {
W WRNexusJS - +
-
Native · Package reference

@wrnexus/mobile

SSR-safe compatibility access to Capacitor plugins.

v0.6.0Private registryNative

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/mobile@0.6.0

Request preview access. Never put registry tokens in source control.

SSR-safe access to Capacitor plugins from WRNexusJS browser code.
+
Native · Package reference

@wrnexus/mobile

SSR-safe compatibility access to Capacitor plugins.

v0.7.0Private registryNative

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/mobile@0.7.0

Request preview access. Never put registry tokens in source control.

SSR-safe access to Capacitor plugins from WRNexusJS browser code.

Overview

@wrnexus/mobile keeps optional native imports out of server rendering while giving browser-owned modules one consistent registry for Capacitor plugins. During SSR, mobile.isNative() is false and mobile.platform() is "web".

Install a plugin through the WRNexusJS CLI so the web and native projects stay aligned:

@@ -169,7 +169,7 @@ const network = mobile.plugin<NetworkPlugin>("Network"); const status = network ? await network.getStatus() : { connected: true, connectionType: "unknown" };
- + } diff --git a/app/pages/packages/native.wrn b/app/pages/packages/native.wrn index 9d616e3a..ca39816a 100644 --- a/app/pages/packages/native.wrn +++ b/app/pages/packages/native.wrn @@ -10,11 +10,11 @@ page wrnexusnative {
W WRNexusJS - +
-
Native · Package reference

@wrnexus/native

Cross-platform browser and Capacitor capability registry.

v0.6.0Private registryNative

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/native@0.6.0

Request preview access. Never put registry tokens in source control.

Cross-platform capabilities for browsers, Capacitor WebViews, and compiled native apps.
+
Native · Package reference

@wrnexus/native

Cross-platform browser and Capacitor capability registry.

v0.7.0Private registryNative

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/native@0.7.0

Request preview access. Never put registry tokens in source control.

Cross-platform capabilities for browsers, Capacitor WebViews, and compiled native apps.

Overview

@wrnexus/native exposes capabilities by name so application code can ask what the current platform supports before presenting an action. Browser capabilities use Web APIs; mobile capabilities use installed Capacitor plugins. platform() returns "server" during SSR, "browser" on the web, and the Capacitor platform in a native WebView.

bun add @wrnexus/native
@@ -152,7 +152,7 @@ const position = await native.run( );
- + } diff --git a/app/pages/packages/oauth.wrn b/app/pages/packages/oauth.wrn index f669c88d..0578c820 100644 --- a/app/pages/packages/oauth.wrn +++ b/app/pages/packages/oauth.wrn @@ -10,11 +10,11 @@ page wrnexusoauth {
W WRNexusJS - +
-
Security · Package reference

@wrnexus/oauth

OAuth 2.0, PKCE, provider presets, and profile mapping.

v0.6.0Private registrySecurity

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/oauth@0.6.0

Request preview access. Never put registry tokens in source control.

Dependency-free OAuth 2.0 sign-in for any provider, with PKCE and presets for Google, GitHub, and Discord.
+
Security · Package reference

@wrnexus/oauth

OAuth 2.0, PKCE, provider presets, and profile mapping.

v0.7.0Private registrySecurity

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/oauth@0.7.0

Request preview access. Never put registry tokens in source control.

Dependency-free OAuth 2.0 sign-in for any provider, with PKCE and presets for Google, GitHub, and Discord.

Part of the WRNexusJS framework — an SSR-first, Bun-native full-stack web framework.

Overview

@wrnexus/oauth implements the OAuth 2.0 Authorization Code flow (with PKCE) for server-side sign-in. It ships ready-made provider presets and a defineProvider helper for custom providers, then gives you two flow functions — startAuth (build the redirect) and completeAuth (exchange the code and fetch the user's profile). It has no runtime dependencies: it uses the platform fetch and WebCrypto only. Pairs naturally with @wrnexus/core's logIn to establish a session once you have a normalized profile.

@@ -313,7 +313,7 @@ const gitlab = defineProvider({ });
- + } diff --git a/app/pages/packages/plugin.wrn b/app/pages/packages/plugin.wrn index eeb09812..e16b0120 100644 --- a/app/pages/packages/plugin.wrn +++ b/app/pages/packages/plugin.wrn @@ -10,11 +10,11 @@ page wrnexusplugin {
W WRNexusJS - +
-
Core · Package reference

@wrnexus/plugin

Plugin contracts, lifecycle hooks, composition, and framework integration.

v0.6.0Private registryCore

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/plugin@0.6.0

Request preview access. Never put registry tokens in source control.

Deterministic WRNexusJS plugin contracts for configuration, AST/code transforms, diagnostics, development servers, production builds, and DevToolbar extensions.

+
Core · Package reference

@wrnexus/plugin

Plugin contracts, lifecycle hooks, composition, and framework integration.

v0.7.0Private registryCore

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/plugin@0.7.0

Request preview access. Never put registry tokens in source control.

Deterministic WRNexusJS plugin contracts for configuration, AST/code transforms, diagnostics, development servers, production builds, and DevToolbar extensions.

Use definePlugin() and declare enforce, before, or after when ordering matters. Duplicate names and dependency cycles are rejected.

Complete TypeScript API

Generated from the exact installed package declarations.

export { PageAst, WrnDiagnostic } from '@wrnexus/syntax';
 import { WrnexusPlugin, PluginInput, PluginContext, PluginRunner } from './types.js';
 export { ClientRuntimeDefinition, ClientRuntimeInject, ClientRuntimeLoad, ClientRuntimeType, PackageAssetDefinition, PackageMigrationDefinition, PackagePluginManifest, PackageRouteDefinition, PackageStyleDefinition, PluginCommand, PluginContributions, PluginDevToolbarPanel, PluginOrder, TransformContext, WrnexusPackageManifest } from './types.js';
@@ -39,7 +39,7 @@ export default definePlugin({
 const ordered = resolvePlugins([corePlugin, analyticsPlugin]);
- + } diff --git a/app/pages/packages/pubsub.wrn b/app/pages/packages/pubsub.wrn index eb9efa11..d6b2f08b 100644 --- a/app/pages/packages/pubsub.wrn +++ b/app/pages/packages/pubsub.wrn @@ -10,11 +10,11 @@ page wrnexuspubsub {
W WRNexusJS - +
-
Realtime · Package reference

@wrnexus/pubsub

In-process and Redis-backed publish/subscribe.

v0.6.0Private registryRealtime

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/pubsub@0.6.0

Request preview access. Never put registry tokens in source control.

Topic-based publish/subscribe with a pluggable driver — in-process by default, Redis for cross-process messaging.
+
Realtime · Package reference

@wrnexus/pubsub

In-process and Redis-backed publish/subscribe.

v0.7.0Private registryRealtime

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/pubsub@0.7.0

Request preview access. Never put registry tokens in source control.

Topic-based publish/subscribe with a pluggable driver — in-process by default, Redis for cross-process messaging.

Part of the WRNexusJS framework — an SSR-first, Bun-native full-stack web framework.

Overview

@wrnexus/pubsub is a small server-side pub/sub bus. You publish messages to a topic and subscribe with topic patterns; handlers fire for matching topics. The default driver keeps everything in-process, and you can swap in the Redis driver (@wrnexus/pubsub/redis) to fan messages out across processes or hosts. It also backs @wrnexus/core's realtime bridge for horizontal scaling.

@@ -176,7 +176,7 @@ await bus.publish("order:created", { id: 7 }); driver.close();
- + } diff --git a/app/pages/packages/queue.wrn b/app/pages/packages/queue.wrn index 89dc2324..a054b528 100644 --- a/app/pages/packages/queue.wrn +++ b/app/pages/packages/queue.wrn @@ -10,11 +10,11 @@ page wrnexusqueue {
W WRNexusJS - +
-
Data · Package reference

@wrnexus/queue

Background jobs with delay, concurrency, retry, and repetition.

v0.6.0Private registryData

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/queue@0.6.0

Request preview access. Never put registry tokens in source control.

A background job queue with delays, retries + exponential backoff, recurring jobs, and concurrent workers.
+
Data · Package reference

@wrnexus/queue

Background jobs with delay, concurrency, retry, and repetition.

v0.7.0Private registryData

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/queue@0.7.0

Request preview access. Never put registry tokens in source control.

A background job queue with delays, retries + exponential backoff, recurring jobs, and concurrent workers.

Part of the WRNexusJS framework — an SSR-first, Bun-native full-stack web framework.

Overview

@wrnexus/queue is a server-side in-process job queue. You register named workers, enqueue jobs (optionally delayed or recurring), and let the queue poll and run them on a timer — with per-job retry limits and doubling backoff between attempts. The default store lives in memory; the design allows a pluggable driver to back it with Redis/SQL for durability across restarts. Reach for it when you need to defer work (emails, webhooks, cleanup) off the request path without a heavyweight external broker. Tests can drive it deterministically via drain().

@@ -252,7 +252,7 @@ clock = 5000; const ran = await queue.drain(); // => 1
- + } diff --git a/app/pages/packages/reactive.wrn b/app/pages/packages/reactive.wrn index 86216274..f153e5e6 100644 --- a/app/pages/packages/reactive.wrn +++ b/app/pages/packages/reactive.wrn @@ -10,11 +10,11 @@ page wrnexusreactive {
W WRNexusJS - +
-
Frontend · Package reference

@wrnexus/reactive

Small type-safe reactive signal primitives.

v0.6.0Private registryFrontend

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/reactive@0.6.0

Request preview access. Never put registry tokens in source control.

Tiny, type-safe reactive primitives (signals) with zero dependencies.
+
Frontend · Package reference

@wrnexus/reactive

Small type-safe reactive signal primitives.

v0.7.0Private registryFrontend

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/reactive@0.7.0

Request preview access. Never put registry tokens in source control.

Tiny, type-safe reactive primitives (signals) with zero dependencies.

Part of the WRNexusJS framework — an SSR-first, Bun-native full-stack web framework.

Overview

@wrnexus/reactive is the seed of WRNexusJS's reactivity layer: a minimal signal primitive that holds a value, notifies subscribers when it changes, and hands back an unsubscribe function. It is deliberately small and framework-agnostic — it powers nothing on its own, but is shaped so client islands (and later the .wrn compiler's state blocks) can build reactive bindings on top of it. Reach for it when you need observable state without pulling in a full reactivity library.

@@ -156,7 +156,7 @@ const user: Signal<{ name: string } | null> = signal(null); user.set({ name: "Ada" });
- + } diff --git a/app/pages/packages/router.wrn b/app/pages/packages/router.wrn index 3b039e29..d4a5dedc 100644 --- a/app/pages/packages/router.wrn +++ b/app/pages/packages/router.wrn @@ -10,11 +10,11 @@ page wrnexusrouter {
W WRNexusJS - +
-
Core · Package reference

@wrnexus/router

Filesystem discovery, route matching, and typed route generation.

v0.6.0Private registryCore

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/router@0.6.0

Request preview access. Never put registry tokens in source control.

File-based router that maps an app/ directory onto route tables and matches request paths against them.
+
Core · Package reference

@wrnexus/router

Filesystem discovery, route matching, and typed route generation.

v0.7.0Private registryCore

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/router@0.7.0

Request preview access. Never put registry tokens in source control.

File-based router that maps an app/ directory onto route tables and matches request paths against them.

Part of the WRNexusJS framework — an SSR-first, Bun-native full-stack web framework.

Overview

@wrnexus/router scans an application's app/ directory once at startup and builds route tables for pages, API endpoints, realtime channels, middleware, server-rendered .wrn components, layouts, and validation schemas. It also compiles URL patterns (/users/[id]) into RegExps and matches request paths against them. Request input is never turned into a file path, which makes the router immune to path traversal. This is a server-side package used by the WRNexusJS runtime to resolve incoming requests, plus a codegen helper for compile-time typed links.

@@ -302,7 +302,7 @@ const routes = sortRoutes([{ raw: "/posts/[slug]", file: " const m = matchRoute(routes, "/posts/hello"); // { route, params: { slug: "hello" } }
- + } diff --git a/app/pages/packages/ssr.wrn b/app/pages/packages/ssr.wrn index 9dd5209d..4f85014b 100644 --- a/app/pages/packages/ssr.wrn +++ b/app/pages/packages/ssr.wrn @@ -10,11 +10,11 @@ page wrnexusssr {
W WRNexusJS - +
-
Runtime · Package reference

@wrnexus/ssr

Secure HTML document rendering and SEO metadata.

v0.6.0Private registryRuntime

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/ssr@0.6.0

Request preview access. Never put registry tokens in source control.

Server-side rendering: wraps a page's HTML body in a complete HTML document with a metadata-driven <head>.
+
Runtime · Package reference

@wrnexus/ssr

Secure HTML document rendering and SEO metadata.

v0.7.0Private registryRuntime

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/ssr@0.7.0

Request preview access. Never put registry tokens in source control.

Server-side rendering: wraps a page's HTML body in a complete HTML document with a metadata-driven <head>.

Part of the WRNexusJS framework — an SSR-first, Bun-native full-stack web framework.

Overview

Pages in WRNexusJS return an HTML string for the body. @wrnexus/ssr takes that body and produces a full HTML document — building the <head> from page metadata and global SEO defaults, resolving canonical/Open Graph/Twitter tags, and injecting module preloads and <script type="module"> tags. It is deliberately server-only: nothing in this package touches the DOM or ships to the browser, keeping server code genuinely server-only. Reach for it on the server when turning a rendered page body into a response document.

@@ -213,7 +213,7 @@ return new Response(html, { return new Response(html, { headers: { "content-type": "text/html; charset=utf-8" } });
- + } diff --git a/app/pages/packages/styles.wrn b/app/pages/packages/styles.wrn index d73404b9..d719b342 100644 --- a/app/pages/packages/styles.wrn +++ b/app/pages/packages/styles.wrn @@ -10,11 +10,11 @@ page wrnexusstyles {
W WRNexusJS - +
-
Frontend · Package reference

@wrnexus/styles

CSS pipeline, themes, fonts, profiles, and application config.

v0.6.0Private registryFrontend

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/styles@0.6.0

Request preview access. Never put registry tokens in source control.

Global CSS bundling, the --wire-* design-token theme system, and the wrnexus.config.ts app-config loader for WRNexusJS apps.
+
Frontend · Package reference

@wrnexus/styles

CSS pipeline, themes, fonts, profiles, and application config.

v0.7.0Private registryFrontend

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/styles@0.7.0

Request preview access. Never put registry tokens in source control.

Global CSS bundling, the --wire-* design-token theme system, and the wrnexus.config.ts app-config loader for WRNexusJS apps.

Part of the WRNexusJS framework — an SSR-first, Bun-native full-stack web framework.

Overview

This package owns three server-side concerns that shape every page a WRNexusJS app renders:

@@ -493,6 +493,10 @@ interface ObservabilityConfig { sampleRate?: number; exporter?: "console" | "otlp" | "none"; endpoint?: string; + /** Collect privacy-preserving Core Web Vitals from real browsers. */ + webVitals?: boolean; + /** Same-origin endpoint receiving Web Vitals. */ + webVitalsEndpoint?: string; } interface TenancyConfig { mode?: "subdomain" | "domain" | "path" | "custom"; @@ -509,11 +513,13 @@ interface BuildConfig { } interface NavigationConfig { /** - * `client` progressively enhances same-origin links with in-place page swaps. + * `auto` (default) omits navigation JavaScript from fully static pages and + * progressively enhances routes that already need browser behavior. + * `client` always enhances same-origin links with in-place page swaps. * `document` keeps normal browser navigation so every route performs a fresh * server-rendered document request. */ - mode?: "client" | "document"; + mode?: "auto" | "client" | "document"; } interface ImportsConfig { mode?: "legacy" | "compatible" | "explicit"; @@ -713,6 +719,14 @@ interface ContrastResult { level: "fail" | "aa-large" | "aa" | "aaa"; } declare function contrast(foreground: string, background: string): ContrastResult | null; +interface CssPerformanceAuditIssue { + code: string; + severity: "error" | "warning" | "info"; + message: string; + line?: number; +} +/** Detect CSS patterns that commonly increase style, paint, or compositing cost. */ +declare function auditCssPerformance(source: string): CssPerformanceAuditIssue[]; /** * @wrnexus/styles — global stylesheet pipeline + app config. @@ -732,7 +746,7 @@ declare function contrast(foreground: string, background: string): ContrastResul */ declare function renderStyles(ctx: StyleProcessContext, styles?: StylesConfig): Promise<string>; -export { ACCENT_COOKIE, type AppConfig, type BuildConfig, type ConfigIssue, type ContrastResult, type CssTokenAudit, type CustomThemePalette, DEFAULT_THEMES, type DevToolbarConfig, type ExperimentalConfig, type ExplainedConfig, type FontConfig, type FontDisplay, type GoogleFont, type LocalFontFace, type MobileConfig, type Mode, type NavigationConfig, type ObservabilityConfig, type PerformanceConfig, type PwaConfig, type ResolvedTheme, type StyleProcessContext, type StyleSource, type StylesConfig, type Mode as StylesMode, THEME_COOKIE, THEME_CSS_HREF, THEME_JS_HREF, THEME_PALETTES, THEME_PALETTE_NAMES, type TenancyConfig, type ThemeAccentConfig, type ThemeConfig, type ThemePaletteName, type ThemeTokens, auditWireTokens, bundleCss, contrast, defineConfig, explainAppConfig, findStyleEntry, fontCspSources, headToString, loadAppConfig, loadEnv, loadRawConfig, normalizeStyleSources, renderFontHead, renderProductionFontHead, renderStyles, renderThemeCss, renderThemeRuntime, resolveAccentName, resolveProfile, resolveThemeConfig, resolveThemeName, tailwindSourceDirectives, validateAppConfig }; +export { ACCENT_COOKIE, type AppConfig, type BuildConfig, type ConfigIssue, type ContrastResult, type CssPerformanceAuditIssue, type CssTokenAudit, type CustomThemePalette, DEFAULT_THEMES, type DevToolbarConfig, type ExperimentalConfig, type ExplainedConfig, type FontConfig, type FontDisplay, type GoogleFont, type LocalFontFace, type MobileConfig, type Mode, type NavigationConfig, type ObservabilityConfig, type PerformanceConfig, type PwaConfig, type ResolvedTheme, type StyleProcessContext, type StyleSource, type StylesConfig, type Mode as StylesMode, THEME_COOKIE, THEME_CSS_HREF, THEME_JS_HREF, THEME_PALETTES, THEME_PALETTE_NAMES, type TenancyConfig, type ThemeAccentConfig, type ThemeConfig, type ThemePaletteName, type ThemeTokens, auditCssPerformance, auditWireTokens, bundleCss, contrast, defineConfig, explainAppConfig, findStyleEntry, fontCspSources, headToString, loadAppConfig, loadEnv, loadRawConfig, normalizeStyleSources, renderFontHead, renderProductionFontHead, renderStyles, renderThemeCss, renderThemeRuntime, resolveAccentName, resolveProfile, resolveThemeConfig, resolveThemeName, tailwindSourceDirectives, validateAppConfig };

Examples

Copy-ready examples from the installed package documentation.

wrnexus.config.ts

import type { AppConfig } from "@wrnexus/styles";
 
 export default {
@@ -805,7 +819,7 @@ const themeJs = renderThemeRuntime(theme); // served at THEME_JS_HREF
- + } diff --git a/app/pages/packages/syntax.wrn b/app/pages/packages/syntax.wrn index 88a81439..c758d292 100644 --- a/app/pages/packages/syntax.wrn +++ b/app/pages/packages/syntax.wrn @@ -10,11 +10,11 @@ page wrnexussyntax {
W WRNexusJS - +
-
Frontend · Package reference

@wrnexus/syntax

Editor syntax definitions and language tooling for .wrn files.

v0.6.0Private registryFrontend

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/syntax@0.6.0

Request preview access. Never put registry tokens in source control.

Canonical WRN lexer, parser, AST, language metadata, source positions, and stable diagnostics. Framework tooling should import this package instead of implementing a separate .wrn parser.

+
Frontend · Package reference

@wrnexus/syntax

Editor syntax definitions and language tooling for .wrn files.

v0.7.0Private registryFrontend

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/syntax@0.7.0

Request preview access. Never put registry tokens in source control.

Canonical WRN lexer, parser, AST, language metadata, source positions, and stable diagnostics. Framework tooling should import this package instead of implementing a separate .wrn parser.

See docs/WRN-LANGUAGE-SPEC-1.0.md in the WRNexusJS repository.

Complete TypeScript API

Generated from the exact installed package declarations.

export { LexError, Lexer } from './tokenizer.js';
 export { A as ActionBlock, a as ApiBlock, b as Attr, C as ComputedDecl, D as DataApiBlock, c as DataMode, E as EffectBlock, d as EventDecl, F as FunctionParameterDecl, e as FunctionRuntime, L as LifecycleBlock, f as LoadBlock, M as ModeFunctionsBlock, O as OutputDecl, P as PageAst, g as ParseError, h as PersistDecl, i as PropDecl, R as RealtimeBlock, j as RealtimeHandler, k as RuntimeFunctionDecl, S as SeoBlock, l as StateDecl, m as StateRuntime, n as StoreKind, o as StoreLifecycleDecl, p as StructuredImportDecl, V as VOID_ELEMENTS, q as ViewNode, W as WatchBlock, r as parse, s as parseComputedDeclarations, t as parseHtmlView, u as parseOutputs, v as parsePersist, w as parseRuntimeFunctions, x as parseStateDeclarations, y as parseStoreLifecycle, z as parseStructuredImports, B as stripRuntimeFunctionModifiers } from './parser-BGaF5Zdu.js';
 export { RuntimeType, eraseFunctionTypes, inferredRuntimeType, runtimeTypeOf, validateTypedInitializer } from './types.js';
@@ -48,7 +48,7 @@ const ast = parse('component Greeting { view { <p>Hello</p>
 const summary = diagnosticSummary(diagnose(source));
- + } diff --git a/app/pages/packages/test.wrn b/app/pages/packages/test.wrn index 6f066707..390c7164 100644 --- a/app/pages/packages/test.wrn +++ b/app/pages/packages/test.wrn @@ -10,11 +10,11 @@ page wrnexustest {
W WRNexusJS - +
-
Tooling · Package reference

@wrnexus/test

WRNexusJS-aware component, route, and browser testing utilities.

v0.6.0Private registryTooling

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/test@0.6.0

Request preview access. Never put registry tokens in source control.

Testing utilities for WRNexusJS apps — component rendering, reactive-DOM mounting, route handler calls, and a full in-process app harness, plus a one-import re-export of bun:test.
+
Tooling · Package reference

@wrnexus/test

WRNexusJS-aware component, route, and browser testing utilities.

v0.7.0Private registryTooling

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/test@0.7.0

Request preview access. Never put registry tokens in source control.

Testing utilities for WRNexusJS apps — component rendering, reactive-DOM mounting, route handler calls, and a full in-process app harness, plus a one-import re-export of bun:test.

Part of the WRNexusJS framework — an SSR-first, Bun-native full-stack web framework.

Overview

@wrnexus/test is the server-side test toolkit you reach for when writing tests for a WRNexusJS app. It runs under bun test (invoked via wrnexus test) and gives you a single import surface: the bun:test primitives (test, expect, mock, …) re-exported alongside WRNexusJS-aware helpers that compile .wrn components, hydrate server HTML in a DOM, invoke API route handlers, and boot the real app on an ephemeral port for integration tests.

@@ -220,7 +220,7 @@ test("health endpoint", async () => { });
- + } diff --git a/app/pages/packages/tracking.wrn b/app/pages/packages/tracking.wrn index 76b22186..0dec22e9 100644 --- a/app/pages/packages/tracking.wrn +++ b/app/pages/packages/tracking.wrn @@ -10,11 +10,11 @@ page wrnexustracking {
W WRNexusJS - +
-
Runtime · Package reference

@wrnexus/tracking

Error/event capture, middleware, filtering, and sinks.

v0.6.0Private registryRuntime

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/tracking@0.6.0

Request preview access. Never put registry tokens in source control.

Error tracking for WRNexusJS apps: capture exceptions manually or via middleware and fan them out to pluggable sinks.
+
Runtime · Package reference

@wrnexus/tracking

Error/event capture, middleware, filtering, and sinks.

v0.7.0Private registryRuntime

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/tracking@0.7.0

Request preview access. Never put registry tokens in source control.

Error tracking for WRNexusJS apps: capture exceptions manually or via middleware and fan them out to pluggable sinks.

Part of the WRNexusJS framework — an SSR-first, Bun-native full-stack web framework.

Overview

@wrnexus/tracking is a small, server-side error-capture layer. You create a tracker with one or more sinks, then feed it errors — either manually with tracker.capture(err, context) or automatically by mounting tracker.middleware() in your request pipeline. A consoleSink is included; forwarding to Sentry, Datadog, or any other backend is just a matter of writing a tiny sink. Reach for it when you want a single, sink-agnostic place to route application errors. Sinks run best-effort — a throwing sink never breaks the request.

@@ -199,7 +199,7 @@ const tracker = createTracker({ tracker.addSink(anotherSink); // add more sinks later
- + } diff --git a/app/pages/packages/ui.wrn b/app/pages/packages/ui.wrn index bf94c008..f96e657b 100644 --- a/app/pages/packages/ui.wrn +++ b/app/pages/packages/ui.wrn @@ -10,11 +10,11 @@ page wrnexusui {
W WRNexusJS - +
-
Frontend · Package reference

@wrnexus/ui

Themeable server-rendered UI components and CSS.

v0.6.0Private registryFrontend

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/ui@0.6.0

Request preview access. Never put registry tokens in source control.

First-party Wire UI component library — a set of themeable .wrn components plus a single tokenized stylesheet.
+
Frontend · Package reference

@wrnexus/ui

Themeable server-rendered UI components and CSS.

v0.7.0Private registryFrontend

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/ui@0.7.0

Request preview access. Never put registry tokens in source control.

First-party Wire UI component library — a set of themeable .wrn components plus a single tokenized stylesheet.

Part of the WRNexusJS framework — an SSR-first, Bun-native full-stack web framework.

Overview

@wrnexus/ui ships a library of server-rendered .wrn components (layout, form controls, and feedback UI) together with one themeable stylesheet, ui.css. The components are auto-discovered by the framework router — you don't import them in code. Once the package's component directory is on the router's scan path, you mount any component in a page with data-component="<name>". Every visual is driven by var(--wire-*) theme tokens, so components restyle instantly when the theme changes. The tiny JS surface (src/index.ts) exists only so the toolchain (CLI build + dev server) can locate the component directory and stylesheet.

@@ -155,7 +155,7 @@ const router = buildRouter(appDir, { componentDirs: [uiComponentsDir()]  </div>

Explore the component library

Browse interactive examples and complete component usage in the dedicated WRNexusJS component showcase.

Browse all 108 components →

- + } diff --git a/app/pages/packages/uploader.wrn b/app/pages/packages/uploader.wrn index 1bedc46a..f52e4718 100644 --- a/app/pages/packages/uploader.wrn +++ b/app/pages/packages/uploader.wrn @@ -10,11 +10,11 @@ page wrnexusuploader {
W WRNexusJS - +
-
Data · Package reference

@wrnexus/uploader

Validated local/S3 uploads and secure file serving.

v0.6.0Private registryData

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/uploader@0.6.0

Request preview access. Never put registry tokens in source control.

Config-driven file uploads + serving for WRNexusJS. Declare named storage stores (local disk or any S3-compatible backend) in wrnexus.config.ts, upload with one function call, drop a drag-and-drop widget on a page, and serve files back — public or private. Zero external dependencies (S3 is signed with a built-in AWS SigV4 implementation, like the rest of the framework).

+
Data · Package reference

@wrnexus/uploader

Validated local/S3 uploads and secure file serving.

v0.7.0Private registryData

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/uploader@0.7.0

Request preview access. Never put registry tokens in source control.

Config-driven file uploads + serving for WRNexusJS. Declare named storage stores (local disk or any S3-compatible backend) in wrnexus.config.ts, upload with one function call, drop a drag-and-drop widget on a page, and serve files back — public or private. Zero external dependencies (S3 is signed with a built-in AWS SigV4 implementation, like the rest of the framework).

Usage

Configure local and S3 stores

// wrnexus.config.ts
@@ -453,7 +453,7 @@ import { serveFromStore } from "@wrnexus/uploader";
 export const GET = serveFromStore("docs"); // your middleware decides who gets in
- + } diff --git a/app/pages/packages/validation.wrn b/app/pages/packages/validation.wrn index 9488b47c..0a431eee 100644 --- a/app/pages/packages/validation.wrn +++ b/app/pages/packages/validation.wrn @@ -10,11 +10,11 @@ page wrnexusvalidation {
W WRNexusJS - +
-
Security · Package reference

@wrnexus/validation

Typed schemas, coercion, validation, and browser descriptors.

v0.6.0Private registrySecurity

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/validation@0.6.0

Request preview access. Never put registry tokens in source control.

One fluent schema, validated on the server (API bodies, env vars) and mirrored to an eval-free browser validator for forms.
+
Security · Package reference

@wrnexus/validation

Typed schemas, coercion, validation, and browser descriptors.

v0.7.0Private registrySecurity

Install the package

After WorkRoot approves private registry access, install the release-aligned package:

bun add @wrnexus/validation@0.7.0

Request preview access. Never put registry tokens in source control.

One fluent schema, validated on the server (API bodies, env vars) and mirrored to an eval-free browser validator for forms.

Part of the WRNexusJS framework — an SSR-first, Bun-native full-stack web framework.

Overview

Define a schema once with the fluent v builder, then reuse it in three places: .parse() runs server-side and returns coerced values plus per-field errors; .describe() emits a plain-JSON SchemaDescriptor that the browser runtime interprets (no eval, no bundled validator); and helpers like parseBody and parseEnv wire schemas straight into API routes and startup config. The server rule logic (applyRule/checkField) and the client runtime (VALIDATE_RUNTIME) mirror each other exactly, so a form validates identically in both places. Schemas are conventionally kept in app/schemas/.

@@ -384,7 +384,7 @@ const head = `<script>${renderSchemasScript({ signup: signupSche // render a <form data-schema="signup"> with [data-error="email"] etc.
- + } diff --git a/app/pages/releases/0.7.0.wrn b/app/pages/releases/0.7.0.wrn new file mode 100644 index 00000000..c09ad8f2 --- /dev/null +++ b/app/pages/releases/0.7.0.wrn @@ -0,0 +1,17 @@ +page Release070 { + seo { + title = "Release 0.7.0" + description = "WRNexusJS 0.7.0 release notes." + canonical = "https://wrnexusjs.dev/releases/0.7.0" + } + view { + +
+
W WRNexusJS
+ +

WRNexusJS 0.7.0

Released 2026-07-13. All 38 installed packages are aligned to this version. Highlights include the new helpers package, reliable workspace app addition, and browser SSO redirects through forward authentication. See the changelog, upgrade guide, and package references.

+ + +
+ } +} \ No newline at end of file diff --git a/app/pages/roadmap.wrn b/app/pages/roadmap.wrn index 9a2f4d9e..074a4e8a 100644 --- a/app/pages/roadmap.wrn +++ b/app/pages/roadmap.wrn @@ -7,10 +7,10 @@ page Roadmap { view {
-
W WRNexusJS
+
W WRNexusJS

Roadmap

Roadmap items are direction, not delivery commitments. Dates require explicit owner approval.

Now

  • Private preview onboarding and accurate package references
  • Runnable documentation fixtures and link/accessibility checks
  • License, support, and disclosure owner decisions

Next

  • Durable queue driver guidance
  • Expanded database/auth/realtime examples
  • Versioned release notes and migration fixtures

Later / exploration

  • Historical documentation selector
  • Maintained reproducible benchmarks
  • Broader mobile/native coverage
- +
} diff --git a/app/pages/search.wrn b/app/pages/search.wrn index a5a10fca..34ea127b 100644 --- a/app/pages/search.wrn +++ b/app/pages/search.wrn @@ -7,10 +7,10 @@ page Search { view {
-
W WRNexusJS
+
W WRNexusJS
-

Search documentation

This build-time index is local and sends no query to a third party. Use your browser’s find command to filter this compact index.

Core documentation

Get started · Packages · Components · Language · Architecture

Guides

Project structure · Routing · Pages and components · Server data · API routes · Middleware · Forms and validation · Authentication · Authorization · Application security · Database · Uploads · Realtime · Pub/sub · Queues · Testing · Workspaces and gateway · Deployment · Configuration and profiles · Internationalization and themes · Mobile · Observability · Upgrading · Troubleshooting

Package APIs

@wrnexus/ai · @wrnexus/authz · @wrnexus/compiler · @wrnexus/core · @wrnexus/csr · @wrnexus/db · @wrnexus/dev-server · @wrnexus/encryption · @wrnexus/helpers · @wrnexus/i18n · @wrnexus/jwt · @wrnexus/mobile · @wrnexus/native · @wrnexus/oauth · @wrnexus/pubsub · @wrnexus/queue · @wrnexus/reactive · @wrnexus/router · @wrnexus/ssr · @wrnexus/styles · @wrnexus/test · @wrnexus/tracking · @wrnexus/ui · @wrnexus/uploader · @wrnexus/validation · @wrnexus/dev-toolbar · @wrnexus/syntax · @wrnexus/plugin · @wrnexus/captcha · @wrnexus/auth · @wrnexus/store · @wrnexus/typecheck · @wrnexus/cli

- +

Search documentation

This build-time index is local and sends no query to a third party. Use your browser’s find command to filter this compact index.

Core documentation

Get started · Packages · Components · Language · Architecture

Guides

Project structure · Routing · Pages and components · Server data · API routes · Middleware · Forms and validation · Authentication · Authorization · Application security · Database · Uploads · Realtime · Pub/sub · Queues · Testing · Workspaces and gateway · Deployment · Configuration and profiles · Internationalization and themes · Mobile · Observability · Upgrading · Troubleshooting

Package APIs

@wrnexus/ai · @wrnexus/authz · @wrnexus/compiler · @wrnexus/core · @wrnexus/csr · @wrnexus/db · @wrnexus/dev-server · @wrnexus/encryption · @wrnexus/helpers · @wrnexus/i18n · @wrnexus/jwt · @wrnexus/mobile · @wrnexus/native · @wrnexus/oauth · @wrnexus/pubsub · @wrnexus/queue · @wrnexus/reactive · @wrnexus/router · @wrnexus/ssr · @wrnexus/styles · @wrnexus/test · @wrnexus/tracking · @wrnexus/ui · @wrnexus/uploader · @wrnexus/validation · @wrnexus/dev-toolbar · @wrnexus/syntax · @wrnexus/plugin · @wrnexus/captcha · @wrnexus/auth · @wrnexus/store · @wrnexus/typecheck · @wrnexus/security · @wrnexus/cache · @wrnexus/image · @wrnexus/observability · @wrnexus/benchmark · @wrnexus/cli

+
} diff --git a/app/pages/security.wrn b/app/pages/security.wrn index 5bd19fc8..446db465 100644 --- a/app/pages/security.wrn +++ b/app/pages/security.wrn @@ -7,10 +7,10 @@ page Security { view {
-
W WRNexusJS
+
W WRNexusJS
-

Security

WRNexusJS provides primitives for CSP, CSRF, Trusted Types, sessions, validation, authorization, encryption, upload restrictions, request limits, and WebSocket-origin checks. Applications remain responsible for correct configuration, business authorization, secrets, dependencies, data protection, and operations.

Supported releases

Only the current private-preview release 0.6.0 is documented here. A formal old-release support window is not yet published.

Report a vulnerability

Use WorkRoot’s approved private contact path at workroot.in. Do not publish exploit details or secrets. Include affected version, impact, reproduction, and a safe contact method. Response targets, encryption key, bounty, audit, and certification are not currently claimed.

Deployment controls

Use restrictive CSP and permissions policies, HSTS only on HTTPS production origins, MIME sniffing protection, restrictive referrers, explicit CORS, secure cookies, CSRF validation, request limits, and origin checks. See application security.

- +

Security

WRNexusJS provides primitives for CSP, CSRF, Trusted Types, sessions, validation, authorization, encryption, upload restrictions, request limits, and WebSocket-origin checks. Applications remain responsible for correct configuration, business authorization, secrets, dependencies, data protection, and operations.

Supported releases

Only the current private-preview release 0.7.0 is documented here. A formal old-release support window is not yet published.

Report a vulnerability

Use WorkRoot’s approved private contact path at workroot.in. Do not publish exploit details or secrets. Include affected version, impact, reproduction, and a safe contact method. Response targets, encryption key, bounty, audit, and certification are not currently claimed.

Deployment controls

Use restrictive CSP and permissions policies, HSTS only on HTTPS production origins, MIME sniffing protection, restrictive referrers, explicit CORS, secure cookies, CSRF validation, request limits, and origin checks. See application security.

+
} diff --git a/app/pages/showcase.wrn b/app/pages/showcase.wrn index c0c186a2..6fb87782 100644 --- a/app/pages/showcase.wrn +++ b/app/pages/showcase.wrn @@ -7,10 +7,10 @@ page Showcase { view {
-
W WRNexusJS
+
W WRNexusJS
-

Showcase

Only confirmed public properties are listed; no customer or traffic claims are made.

WorkRoot

Creator/company site demonstrating a public WRNexusJS deployment. Exact deployed version and infrastructure notes await owner confirmation.

WRNexusJS docs

This documentation portal, built and verified against WRNexusJS 0.6.0 on Bun.

Screenshots are intentionally deferred until approved assets and alt text are available.

- +

Showcase

Only confirmed public properties are listed; no customer or traffic claims are made.

WorkRoot

Creator/company site demonstrating a public WRNexusJS deployment. Exact deployed version and infrastructure notes await owner confirmation.

WRNexusJS docs

This documentation portal, built and verified against WRNexusJS 0.7.0 on Bun.

Screenshots are intentionally deferred until approved assets and alt text are available.

+
} diff --git a/app/pages/support.wrn b/app/pages/support.wrn index 1f04e419..21ae3098 100644 --- a/app/pages/support.wrn +++ b/app/pages/support.wrn @@ -7,10 +7,10 @@ page Support { view {
-
W WRNexusJS
+
W WRNexusJS

Support

WRNexusJS has no public Discord, public issue tracker, or guaranteed community support channel listed by this repository. Preview access and support begin through WorkRoot’s public contact path.

Include WRNexusJS version, Bun version, OS, a minimal reproduction, expected and actual behavior, and sanitized logs. Never include registry tokens, credentials, session cookies, or private data.

Support scope, service levels, and commercial terms require owner confirmation.

- +
} diff --git a/app/pages/tutorial.wrn b/app/pages/tutorial.wrn index 3a4ad255..56f23bea 100644 --- a/app/pages/tutorial.wrn +++ b/app/pages/tutorial.wrn @@ -7,9 +7,9 @@ page Tutorial { view {
-
W WRNexusJS
+
W WRNexusJS
-
Preview · runnable-project extraction pending

Secure task board

This tutorial connects the installed 0.6.0 APIs into one design. Snippets are limited to declarations and README patterns verified in the installed packages; a CI-compiled standalone fixture remains on the roadmap.

Application shape

A .wrn page renders tasks from an SSR API binding. A shared validation schema protects mutations. Session middleware identifies users, authorization policies gate updates, and a realtime room broadcasts changes.

Schema and create route

import { v, parseBody } from "@wrnexus/validation";
+      
Preview · runnable-project extraction pending

Secure task board

This tutorial connects the installed 0.7.0 APIs into one design. Snippets are limited to declarations and README patterns verified in the installed packages; a CI-compiled standalone fixture remains on the roadmap.

Application shape

A .wrn page renders tasks from an SSR API binding. A shared validation schema protects mutations. Session middleware identifies users, authorization policies gate updates, and a realtime room broadcasts changes.

Schema and create route

import { v, parseBody } from "@wrnexus/validation";
 const task = v.object({ title: v.string().trim().min(3).max(120) });
 export const POST = async (ctx) => {
   const parsed = await parseBody(task, ctx.req);
@@ -23,7 +23,7 @@ export const POST = async (ctx) => {
     </ul></main>
   }
 }

Production checklist

  • Choose SQLite for local development or configure the supported PostgreSQL driver.
  • Run migrations before accepting traffic.
  • Enable session authentication and enforce authorization on every mutation.
  • Validate upload types and sizes; keep private objects behind authenticated routes.
  • Use Redis pub/sub when realtime rooms span processes.
  • Treat the default queue as non-durable until a production driver is selected.

Follow the focused database, authentication, authorization, realtime, and upload guides.

- +
} diff --git a/bun.lock b/bun.lock index 2bc73692..e0ae87b2 100644 --- a/bun.lock +++ b/bun.lock @@ -7,45 +7,50 @@ "dependencies": { "@iconify-json/lucide": "^1.2.118", "@iconify/tailwind4": "^1.2.3", - "@wrnexus/ai": "^0.6.0", - "@wrnexus/auth": "^0.6.0", - "@wrnexus/authz": "^0.6.0", - "@wrnexus/captcha": "^0.6.0", - "@wrnexus/compiler": "^0.6.0", - "@wrnexus/core": "^0.6.0", - "@wrnexus/csr": "^0.6.0", - "@wrnexus/db": "^0.6.0", - "@wrnexus/dev-server": "^0.6.0", - "@wrnexus/dev-toolbar": "^0.6.0", - "@wrnexus/encryption": "^0.6.0", - "@wrnexus/helpers": "^0.6.0", - "@wrnexus/i18n": "^0.6.0", - "@wrnexus/jwt": "^0.6.0", - "@wrnexus/mobile": "^0.6.0", - "@wrnexus/native": "^0.6.0", - "@wrnexus/oauth": "^0.6.0", - "@wrnexus/plugin": "^0.6.0", - "@wrnexus/pubsub": "^0.6.0", - "@wrnexus/queue": "^0.6.0", - "@wrnexus/reactive": "^0.6.0", - "@wrnexus/router": "^0.6.0", - "@wrnexus/ssr": "^0.6.0", - "@wrnexus/store": "^0.6.0", - "@wrnexus/styles": "^0.6.0", - "@wrnexus/syntax": "^0.6.0", - "@wrnexus/test": "^0.6.0", - "@wrnexus/tracking": "^0.6.0", - "@wrnexus/typecheck": "^0.6.0", - "@wrnexus/ui": "^0.6.0", - "@wrnexus/uploader": "^0.6.0", - "@wrnexus/validation": "^0.6.0", + "@wrnexus/ai": "^0.7.0", + "@wrnexus/auth": "^0.7.0", + "@wrnexus/authz": "^0.7.0", + "@wrnexus/benchmark": "^0.7.0", + "@wrnexus/cache": "^0.7.0", + "@wrnexus/captcha": "^0.7.0", + "@wrnexus/compiler": "^0.7.0", + "@wrnexus/core": "^0.7.0", + "@wrnexus/csr": "^0.7.0", + "@wrnexus/db": "^0.7.0", + "@wrnexus/dev-server": "^0.7.0", + "@wrnexus/dev-toolbar": "^0.7.0", + "@wrnexus/encryption": "^0.7.0", + "@wrnexus/helpers": "^0.7.0", + "@wrnexus/i18n": "^0.7.0", + "@wrnexus/image": "^0.7.0", + "@wrnexus/jwt": "^0.7.0", + "@wrnexus/mobile": "^0.7.0", + "@wrnexus/native": "^0.7.0", + "@wrnexus/oauth": "^0.7.0", + "@wrnexus/observability": "^0.7.0", + "@wrnexus/plugin": "^0.7.0", + "@wrnexus/pubsub": "^0.7.0", + "@wrnexus/queue": "^0.7.0", + "@wrnexus/reactive": "^0.7.0", + "@wrnexus/router": "^0.7.0", + "@wrnexus/security": "^0.7.0", + "@wrnexus/ssr": "^0.7.0", + "@wrnexus/store": "^0.7.0", + "@wrnexus/styles": "^0.7.0", + "@wrnexus/syntax": "^0.7.0", + "@wrnexus/test": "^0.7.0", + "@wrnexus/tracking": "^0.7.0", + "@wrnexus/typecheck": "^0.7.0", + "@wrnexus/ui": "^0.7.0", + "@wrnexus/uploader": "^0.7.0", + "@wrnexus/validation": "^0.7.0", }, "devDependencies": { "@eslint/js": "^9.0.0", "@tailwindcss/cli": "^4.0.0", "@types/bun": "latest", "@types/node": "^26.1.1", - "@wrnexus/cli": "^0.6.0", + "@wrnexus/cli": "^0.7.0", "eslint": "^9.0.0", "prettier": "latest", "tailwindcss": "^4.0.0", @@ -193,71 +198,81 @@ "@typescript-eslint/visitor-keys": ["@typescript-eslint/visitor-keys@8.63.0", "", { "dependencies": { "@typescript-eslint/types": "8.63.0", "eslint-visitor-keys": "^5.0.0" } }, "sha512-UexrHGnGTpbuQHct2ExOc2ZcFbGUS9FOesCxxqdBGcpI1BxYu/LZ6U8Aq6/72XtF/qRBk9nhuGHFJIXXMhPMdw=="], - "@wrnexus/ai": ["@wrnexus/ai@0.6.0", "", {}, "sha512-Hj76672ZHnG03MV58gcrulWii8hxbfAVlR7T/2INnGxKRIOKHJa+pVZoAl7TVOPXRFPqVwgrkATa+vK6/dhg8g=="], + "@wrnexus/ai": ["@wrnexus/ai@0.7.0", "", {}, "sha512-tJGbCrKsDUHrmAsboBdHZ2zkUGgdffQhyCaPN2BNL88vozuHAFKEl6fOdbADXzu9EZPH4cFMV5Ew54QAUQS1Xw=="], - "@wrnexus/auth": ["@wrnexus/auth@0.6.0", "", { "dependencies": { "@wrnexus/authz": "^0.6.0", "@wrnexus/captcha": "^0.6.0", "@wrnexus/core": "^0.6.0", "@wrnexus/db": "^0.6.0", "@wrnexus/encryption": "^0.6.0", "@wrnexus/jwt": "^0.6.0", "@wrnexus/oauth": "^0.6.0", "@wrnexus/plugin": "^0.6.0", "@wrnexus/queue": "^0.6.0", "@wrnexus/ui": "^0.6.0", "@wrnexus/validation": "^0.6.0" } }, "sha512-pqka4koIRZoy2Wn5CK4wETSI4nVuFCiAyI7nS4Qs4Wt2pPdJVGF8CDCKuTLOqwwufs4s5Bm5+L8QuB9txdAO0Q=="], + "@wrnexus/auth": ["@wrnexus/auth@0.7.0", "", { "dependencies": { "@wrnexus/authz": "^0.7.0", "@wrnexus/captcha": "^0.7.0", "@wrnexus/core": "^0.7.0", "@wrnexus/db": "^0.7.0", "@wrnexus/encryption": "^0.7.0", "@wrnexus/jwt": "^0.7.0", "@wrnexus/oauth": "^0.7.0", "@wrnexus/plugin": "^0.7.0", "@wrnexus/queue": "^0.7.0", "@wrnexus/ui": "^0.7.0", "@wrnexus/validation": "^0.7.0" } }, "sha512-GD6XEXMmu/H6XcK6a4hmF72ItB1/pdlmMPWe4RPU+w40blfZyiN3GaYhjdE3Cxb9C86uMo3Phrm65NKrMU6ptA=="], - "@wrnexus/authz": ["@wrnexus/authz@0.6.0", "", {}, "sha512-9y5CwL62mLwKzopt9Wl0z/yi895HDL1H7QadcYK4zVFymAo8qlaM/kpgnG+K+yE5qGLam6rC97d60KPhqDb4bA=="], + "@wrnexus/authz": ["@wrnexus/authz@0.7.0", "", {}, "sha512-l3hIHlE1suHJDt31e1+/WW1OHyomSdfzx89rNyvrZbfej4rYPpB2H7YQYtLa1uwJUehcWCdqy9gEnJZclhDbJg=="], - "@wrnexus/captcha": ["@wrnexus/captcha@0.6.0", "", { "dependencies": { "@wrnexus/core": "^0.6.0", "@wrnexus/plugin": "^0.6.0", "@wrnexus/validation": "^0.6.0" } }, "sha512-r0V2rhWXkK/3RtVl4toMUQFfYDdUDS49rSkrxWBOvnUCRMs2qsFvSYPt1odC1fZ9kQkVcmNYuUPBh8YapjGixg=="], + "@wrnexus/benchmark": ["@wrnexus/benchmark@0.7.0", "", {}, "sha512-0VFTdjKDPq815qHmUFDMaRxPe13Z5yuyXOTSFs2rRluwY+ujphYcofVX2AKcyXiu120hL/6Vf1gMS2C8YWcoAg=="], - "@wrnexus/cli": ["@wrnexus/cli@0.6.0", "", { "dependencies": { "@wrnexus/compiler": "^0.6.0", "@wrnexus/core": "^0.6.0", "@wrnexus/csr": "^0.6.0", "@wrnexus/db": "^0.6.0", "@wrnexus/dev-server": "^0.6.0", "@wrnexus/i18n": "^0.6.0", "@wrnexus/plugin": "^0.6.0", "@wrnexus/router": "^0.6.0", "@wrnexus/styles": "^0.6.0", "@wrnexus/syntax": "^0.6.0", "@wrnexus/ui": "^0.6.0", "@wrnexus/validation": "^0.6.0" }, "bin": { "wrnexus": "dist/index.js" } }, "sha512-i8MtPLLCQL0cACd907UL1ljeDCNU8U6HKcnUzz52P2eIAZ8k+LlI3M32TX7obivLv15i4MH8fXXldzL1f8eb8A=="], + "@wrnexus/cache": ["@wrnexus/cache@0.7.0", "", { "dependencies": { "@wrnexus/core": "^0.7.0" } }, "sha512-uRnwH45yM2Y93TI/fFEphZqKWi2B8dnJnAsxdB+lhgYb3PKDS3RHx3wgSjbolXFCIMjvhM5hEGFwSFy22DnFQw=="], - "@wrnexus/compiler": ["@wrnexus/compiler@0.6.0", "", { "dependencies": { "@wrnexus/store": "^0.6.0", "@wrnexus/syntax": "^0.6.0" } }, "sha512-AYKebrDqGcn3nqJWSpoOEio3EYppT3kLQTO6J6BRy+WyChxX1MuN16XjZAJaLFGybf22zw8WfCuaXLjpS/HpGg=="], + "@wrnexus/captcha": ["@wrnexus/captcha@0.7.0", "", { "dependencies": { "@wrnexus/core": "^0.7.0", "@wrnexus/plugin": "^0.7.0", "@wrnexus/validation": "^0.7.0" } }, "sha512-l5YtUklzUqQzilB3bGrsGewWHc0gd04RF1OuRbN9Uhys4s1ZUGgWeZHMdPDd6+fe8mqSgXnac0pliRgcQbeBKQ=="], - "@wrnexus/core": ["@wrnexus/core@0.6.0", "", {}, "sha512-X2UJhmAeXoyvpSGQ/2zPOzgFPwr+bMYeOjf/KV8f+ULf02pM8zvyQNV3Fft4GaUl7LwZG8gD5b1XwUIFWS500Q=="], + "@wrnexus/cli": ["@wrnexus/cli@0.7.0", "", { "dependencies": { "@wrnexus/compiler": "^0.7.0", "@wrnexus/core": "^0.7.0", "@wrnexus/csr": "^0.7.0", "@wrnexus/db": "^0.7.0", "@wrnexus/dev-server": "^0.7.0", "@wrnexus/i18n": "^0.7.0", "@wrnexus/plugin": "^0.7.0", "@wrnexus/router": "^0.7.0", "@wrnexus/styles": "^0.7.0", "@wrnexus/syntax": "^0.7.0", "@wrnexus/ui": "^0.7.0", "@wrnexus/validation": "^0.7.0" }, "bin": { "wrnexus": "dist/index.js" } }, "sha512-Fo8p4XI0Eocjn9CgaNNfk1o1iywvvnIaMaMZ2MDcj6H/eysG4uW/4WMwa5XXQY3GzAmaiOFdurl5tXPhcTuC9A=="], - "@wrnexus/csr": ["@wrnexus/csr@0.6.0", "", { "dependencies": { "@wrnexus/core": "^0.6.0" } }, "sha512-6ll6D4HmoCdNkWB+bpWgKmFkrFlaANDSWZAXv/g3oTOvq+FKUza47WqEXhR29NFKqJO9mTYW684KA3uZAOe6bg=="], + "@wrnexus/compiler": ["@wrnexus/compiler@0.7.0", "", { "dependencies": { "@wrnexus/store": "^0.7.0", "@wrnexus/syntax": "^0.7.0" } }, "sha512-iS3oaIiwTeffdriC2PlLS9MTOX4CU5lRDq6uO0ExbB/wvZ7qnBnT2mpliyZGPF5m7BKadPf77rr8dDtIg8C9iQ=="], - "@wrnexus/db": ["@wrnexus/db@0.6.0", "", {}, "sha512-Sgn9QJ8kIuoD0MktuqH89xlWAxlaV6qb+SDzaZ9MpOjMc4cAZpD5MWHMJKmWZgqyiLRCqJLHz4HKfEsstGdM4Q=="], + "@wrnexus/core": ["@wrnexus/core@0.7.0", "", {}, "sha512-HsQ1jHLMy+W+9H2BV7ilpAkbA2cCBJ3TEI8H6wTSC51j9C0HRZHtX1wlg0pDBsQEDwumpKFwvr3IxH9HVlpl5A=="], - "@wrnexus/dev-server": ["@wrnexus/dev-server@0.6.0", "", { "dependencies": { "@wrnexus/compiler": "^0.6.0", "@wrnexus/core": "^0.6.0", "@wrnexus/csr": "^0.6.0", "@wrnexus/db": "^0.6.0", "@wrnexus/dev-toolbar": "^0.6.0", "@wrnexus/i18n": "^0.6.0", "@wrnexus/plugin": "^0.6.0", "@wrnexus/pubsub": "^0.6.0", "@wrnexus/router": "^0.6.0", "@wrnexus/ssr": "^0.6.0", "@wrnexus/store": "^0.6.0", "@wrnexus/styles": "^0.6.0", "@wrnexus/ui": "^0.6.0", "@wrnexus/uploader": "^0.6.0", "@wrnexus/validation": "^0.6.0" } }, "sha512-2DuKrJjE8WfHlBiDwBCpCTJhBGSRTttebatLpmvYtO6LB560VoPJVdsNucJ/p6jGK6F8Kg1sbSyLlupaw9mx2w=="], + "@wrnexus/csr": ["@wrnexus/csr@0.7.0", "", { "dependencies": { "@wrnexus/core": "^0.7.0" } }, "sha512-7EofnItpvQRZSvRi4nFjxOQiPMlbyFKgkhRlDo0lpElqslm+Kr1pRj1ux5wzSQZnb/XUMcaA45l5CX7poZq+eQ=="], - "@wrnexus/dev-toolbar": ["@wrnexus/dev-toolbar@0.6.0", "", {}, "sha512-LY0Hq7liLXrspOM+GgHuwQY2pmEqG1EjMaz4u0iVUMNt7JjuJxzzz1b3DlotJbMdvsEy8GKDosPW92WbT96QNQ=="], + "@wrnexus/db": ["@wrnexus/db@0.7.0", "", {}, "sha512-Weh8V5SrJEHKXQwMWYVyTkPdtrF5HV59jn0Z6VuZsKsEh0hAIhKbqGT2nAKHqddWaUjwxNt+hRQltx2lX/9MMQ=="], - "@wrnexus/encryption": ["@wrnexus/encryption@0.6.0", "", {}, "sha512-kJHiwUVD1qCFGZos7yWGvIkvg9ayk3o6BP2K8z/8wa2WkWt+f59DA0M66fDWffa08pP6/rlghbpDSTjGl2zZ9Q=="], + "@wrnexus/dev-server": ["@wrnexus/dev-server@0.7.0", "", { "dependencies": { "@wrnexus/compiler": "^0.7.0", "@wrnexus/core": "^0.7.0", "@wrnexus/csr": "^0.7.0", "@wrnexus/db": "^0.7.0", "@wrnexus/dev-toolbar": "^0.7.0", "@wrnexus/i18n": "^0.7.0", "@wrnexus/observability": "^0.7.0", "@wrnexus/plugin": "^0.7.0", "@wrnexus/pubsub": "^0.7.0", "@wrnexus/router": "^0.7.0", "@wrnexus/security": "^0.7.0", "@wrnexus/ssr": "^0.7.0", "@wrnexus/store": "^0.7.0", "@wrnexus/styles": "^0.7.0", "@wrnexus/ui": "^0.7.0", "@wrnexus/uploader": "^0.7.0", "@wrnexus/validation": "^0.7.0" } }, "sha512-NE7sU68s2GMp3eWPPYLVLGIIZZVDJxfLXr98yFFQq2XniAaDuHz9NBO8CIzamWlWtFhKcLKbgwYMkyLfOukd3A=="], - "@wrnexus/helpers": ["@wrnexus/helpers@0.6.0", "", { "dependencies": { "@wrnexus/core": "^0.6.0" } }, "sha512-qQ1k2pd3TIr4Hb7YgN4On0YpmNjXAQ95YghvANmXcJLziqeSZYeOqJ6l6vLqTbVwyskyvbRd7FfhJkPWWfpb4A=="], + "@wrnexus/dev-toolbar": ["@wrnexus/dev-toolbar@0.7.0", "", {}, "sha512-iqI47nhtKmuSvu3cyju/Mg343+evqBnD4Ek2TQg+kvxhnEfVNmPKBZ6CRZGC3Qq+C8j0TuCUVD3Sb88hiV0+Qw=="], - "@wrnexus/i18n": ["@wrnexus/i18n@0.6.0", "", { "dependencies": { "@wrnexus/core": "^0.6.0" } }, "sha512-LkTI1XyPKB2Yzuo/lWtlyADihLH+gDJ/t/K3628vh7p2S6RHV7K6ng/uNRtmMch2cOGl+rqzA+mOT3xe8Mk7Xg=="], + "@wrnexus/encryption": ["@wrnexus/encryption@0.7.0", "", {}, "sha512-eLMVjHZbK0+2wJBdyPzCx3JQd8btgtvzcWQ+1XSMPmnxvsxVhVjxe2COgey8mRd2aUeltTvgJEqAIQ3AM9nlMw=="], - "@wrnexus/jwt": ["@wrnexus/jwt@0.6.0", "", {}, "sha512-Gy9cZufdeWfRaQLQ7JkPuQvKp4Qqn5vLM1NwU3fmPwUDo0hW0zGbPcu14aoZWlhvqC3B5iXI8kFayCQ4Y0C0nA=="], + "@wrnexus/helpers": ["@wrnexus/helpers@0.7.0", "", { "dependencies": { "@wrnexus/core": "^0.7.0" } }, "sha512-G9Fo5L23Xnp+cY0Q3fWcEtWpNNak5+/Wr2i+OZxxSjiHbKQtNi29kZ/HVROOGe978KAw8GTk6rycwUA4Ul568A=="], - "@wrnexus/mobile": ["@wrnexus/mobile@0.6.0", "", { "dependencies": { "@wrnexus/native": "^0.6.0" } }, "sha512-AihigbRXqRdWX/Yrzwc9NVjI2HuZkQa3XMUcMGfOKC0paWoeSvSDMksamHjARvYhTYgKpcJ0FCTDeiMvdcV35w=="], + "@wrnexus/i18n": ["@wrnexus/i18n@0.7.0", "", { "dependencies": { "@wrnexus/core": "^0.7.0" } }, "sha512-1vOxW/07E2HqlvQHn+sJOQDlapcX1KXcdbge5yMvIUtDd1eTxuQfeo99svfgYxmoPzKqt8cDc5fU7O18Wvdedw=="], - "@wrnexus/native": ["@wrnexus/native@0.6.0", "", {}, "sha512-HV8KCTC3ufLJqk+oafJ3+PdnEm5Uui2ncBeAyFfYOX4ysZnyi7vJzlfPgBTwJu9phJ7yn9yPXaTxIUVUjWcyMw=="], + "@wrnexus/image": ["@wrnexus/image@0.7.0", "", { "dependencies": { "@wrnexus/security": "^0.7.0" } }, "sha512-nxOHnhMHGOnW4dAYHH2hlpWCPhnDccqKPbrJZOWTk4ljxYI7PS4BHlH89FddeL1gdRqMu1dxrgyk/2N7SsF0Dg=="], - "@wrnexus/oauth": ["@wrnexus/oauth@0.6.0", "", {}, "sha512-Nd7ktLa0HX0wX+Q2W+gCQWcSC7eKuZjb2VwIb88cs+OfHm1Vl8vCkk683ZwRIp29DF1kQfCWvKwaYI7FAvJxeQ=="], + "@wrnexus/jwt": ["@wrnexus/jwt@0.7.0", "", {}, "sha512-2oA6dWUgz05QnmjpnfSV+j7nfJ+Cx0E2u74r7xrrFGnvqCSHxUofDaQq7LpOeQW7tkTBFHsinmsTpp3x7ie8vQ=="], - "@wrnexus/plugin": ["@wrnexus/plugin@0.6.0", "", { "dependencies": { "@wrnexus/syntax": "^0.6.0" } }, "sha512-rl+HmN9jXzDONRZDiZ/Ny4iMxDp0HpSXkvBXJNLC3H97FEO4vAfD5yso3FxShkvEjUwiUVIPgF5uaCdqOSAxZg=="], + "@wrnexus/mobile": ["@wrnexus/mobile@0.7.0", "", { "dependencies": { "@wrnexus/native": "^0.7.0" } }, "sha512-1Q1gJrwUtqJrS0B7aDdvor/CU88iTmFw7BinUY87bzqwMo1/ZJI0kdYFIZyFDFJeJr0TEtoepPA9n5TxnzRL/Q=="], - "@wrnexus/pubsub": ["@wrnexus/pubsub@0.6.0", "", {}, "sha512-wu2DyioqoIb2C8KJSiV59schm+dZRwYPT9atLYBIcSYnbp8tbNpU1ybtOWrBbAlmDsS0GY2NnR9NH0dgORMoXg=="], + "@wrnexus/native": ["@wrnexus/native@0.7.0", "", {}, "sha512-dkcrc6+ulkjt4p2/yL7jpY2iALWy+OkOUORAnF5AmUNQEHcDH7kDR3+k1QexI9h6FcB0T/DqTTUBLVqYN2y7Qw=="], - "@wrnexus/queue": ["@wrnexus/queue@0.6.0", "", {}, "sha512-vwSOnzT4Et6rMidd4AvPm1//Jfnq22ddWL/yhVe/ishhxEK3rNfQfIxHVehUDozHLT+hEua7NwO0wP3YTD2+jA=="], + "@wrnexus/oauth": ["@wrnexus/oauth@0.7.0", "", {}, "sha512-xgjUwHUdgNfk0s+AD9c+i0WcaGIOa2iv+uDJyFaNymSB1MCkYMxKx2NwLfIteb+uiyowCD335i4He5edzx579g=="], - "@wrnexus/reactive": ["@wrnexus/reactive@0.6.0", "", {}, "sha512-lw0TTu69xXxNcCr5KB7KXYf4gBrSmR0PICANj47+jxnn6rhaWmKWJBvYiXNmHHe+zVf9GSwjT+qIi2bbgv71Rw=="], + "@wrnexus/observability": ["@wrnexus/observability@0.7.0", "", { "dependencies": { "@wrnexus/core": "^0.7.0" } }, "sha512-EmMoVVsFl/IznDX4jR/xQAg/Nubgo47FROkglQhblakQ2T0bmkED8DOc433Ow1fDJwJsigF/GoDVmFzfIQlJJA=="], - "@wrnexus/router": ["@wrnexus/router@0.6.0", "", { "dependencies": { "@wrnexus/compiler": "^0.6.0", "@wrnexus/core": "^0.6.0" } }, "sha512-KzB4g0lHVT/WfmcIB0vhYDxRr5BDV4LIoMSzIzRlUWlFDSw6yVqoQEyUJ6DMhGGiah0ieoxsbjAsfnirlSlgfA=="], + "@wrnexus/plugin": ["@wrnexus/plugin@0.7.0", "", { "dependencies": { "@wrnexus/syntax": "^0.7.0" } }, "sha512-tD/D0LC2WBPR57dz0Ztd5JiGOaWGPnraBPjYtQ13nV3AEmzoRvJmgRqTj496rbIbpytbES7yfHbBsvwbUz6kmg=="], - "@wrnexus/ssr": ["@wrnexus/ssr@0.6.0", "", { "dependencies": { "@wrnexus/core": "^0.6.0", "@wrnexus/store": "^0.6.0" } }, "sha512-IQn1G9HkiB52A1BHlOFXJCtPDn3WmoQxUfqWdkTcE+FZ5CdyCfrYvBIS2YrtAnqixZ0liHxyH04OnAO/8hcmiQ=="], + "@wrnexus/pubsub": ["@wrnexus/pubsub@0.7.0", "", {}, "sha512-wYz4xiaFLDJnJMv8tPKHFGmQXbeAag/n9ITK+6S/QJXyWdkzlHjmviYE81slmauqcqr1p40hZ3j7qYtdKyZ5fA=="], - "@wrnexus/store": ["@wrnexus/store@0.6.0", "", {}, "sha512-q2u1mSYNwn8k1kFFLEgL8nm9mXljug28O+1aavGWSOME3uYTeiJUv3XgL+zUqhXK+XED12FwmzXG3SPATfjg9A=="], + "@wrnexus/queue": ["@wrnexus/queue@0.7.0", "", {}, "sha512-6ti38dKNCCeIvzjUkdPt3nKv5MCQtNF6AhMkeIAlX2l26Wgf4+iPGovz+yf+k3doN35+UFnQ1fg/zjZdC9K5Wg=="], - "@wrnexus/styles": ["@wrnexus/styles@0.6.0", "", { "dependencies": { "@wrnexus/core": "^0.6.0", "@wrnexus/plugin": "^0.6.0", "@wrnexus/uploader": "^0.6.0" } }, "sha512-mNHxCT+/SHOtvStSbiOzj3A2+EHbLGAzbAXQM81inAN0Vf6gIK8lNIMau+9ckXSXoiYBq2LpH5pzg9V87T9e1A=="], + "@wrnexus/reactive": ["@wrnexus/reactive@0.7.0", "", {}, "sha512-TVQmoXE8kiAdmUvVKiEFqWpW1WiklZ7BxW2A3z7esoQRzgBCrnSSsbjETm4GDNJUQJZaCg6NGV29QvuHZiGzDA=="], - "@wrnexus/syntax": ["@wrnexus/syntax@0.6.0", "", {}, "sha512-k+tZtXMD4c+roZCuYAOYYCRNGUV4Ki75oqUJ1JWhqg2huGprHrld7JKVM0KHou2RODTZ2c3GAry5n29F9T39lw=="], + "@wrnexus/router": ["@wrnexus/router@0.7.0", "", { "dependencies": { "@wrnexus/compiler": "^0.7.0", "@wrnexus/core": "^0.7.0" } }, "sha512-82VowxOouJjHj4O7sy3NDWmwdQb4BqZwK9a9mj03ULBrXuAFkbDeY/stHIPKE1K6K+ICH2E2qAF4o1eXgWVxeQ=="], - "@wrnexus/test": ["@wrnexus/test@0.6.0", "", {}, "sha512-mZWbU2Fqu4uFRI+5o+N7ZBCLMOvnc1XEUUqTRH2N+S8cEaMAka3M1dwZxw8p0tp8rfjtxlpJ4E0UQGyINhsutw=="], + "@wrnexus/security": ["@wrnexus/security@0.7.0", "", { "dependencies": { "@wrnexus/core": "^0.7.0" } }, "sha512-XfnjwhbrDcwdDQzTMNyCwM9ODWVtzgL7IjsTix3bWd3zmEigkiyNxpCNxMoX79m0ATzi7YzBOriJ5o5hg8RGJQ=="], - "@wrnexus/tracking": ["@wrnexus/tracking@0.6.0", "", {}, "sha512-kvi5QavFdd4Cmzck5npOl3nWTw+Vgc8odx0Fm8CBDZs6hJwvUPRrqfRmL1TxsNdzhn7mh6W8y9RTcEsKiRy8cg=="], + "@wrnexus/ssr": ["@wrnexus/ssr@0.7.0", "", { "dependencies": { "@wrnexus/core": "^0.7.0", "@wrnexus/security": "^0.7.0", "@wrnexus/store": "^0.7.0" } }, "sha512-1hRaXCDG16aBP7PlVGCRqXw9JHjMlxZUwqI9QiMgeJ+Z0lHU1zNjqepo4xN8Rmug3oUQ0rSpGYj7CxN1QWFgdw=="], - "@wrnexus/typecheck": ["@wrnexus/typecheck@0.6.0", "", { "dependencies": { "@wrnexus/syntax": "^0.6.0", "typescript": "^5.5.0" } }, "sha512-UObLm/YPR4QNw5Y9jp4YIg5c9GH3orl52iv4c1JXi9a/19RppZmbG0GoLk7AtRdKl3TsHVSuOgnRsw5pd3Zp8Q=="], + "@wrnexus/store": ["@wrnexus/store@0.7.0", "", {}, "sha512-yrlVX1q1NRDWvQ6tDj7BGxy/IGzjPjhESqnZtWN7KnR53TsFT+yxhVZdnyJxVSp/IipvJh0u2bgK4H/ZDYEozg=="], - "@wrnexus/ui": ["@wrnexus/ui@0.6.0", "", { "dependencies": { "@wrnexus/core": "^0.6.0" } }, "sha512-fSj6vo7u4TN2rnpEWaC+FIyIWEGLYcXNs4KT9vM4M/BeRlru/R9a1MYrvxQichDtGITEHCFbDjuBzGPByLZC7Q=="], + "@wrnexus/styles": ["@wrnexus/styles@0.7.0", "", { "dependencies": { "@wrnexus/core": "^0.7.0", "@wrnexus/plugin": "^0.7.0", "@wrnexus/uploader": "^0.7.0" } }, "sha512-PiSlWNlg+kJ2P4kpHD1q/yDteSzCdpsvyeUmC4uRS724orubAkmQe2yk4e+CRr3MoQnxvHzefo+NamJcdrJwGg=="], - "@wrnexus/uploader": ["@wrnexus/uploader@0.6.0", "", { "dependencies": { "@wrnexus/core": "^0.6.0" } }, "sha512-db+Q72SMh4uJYVcmVFbQP+vhtt27KVMGYqs1QLGAFdTkn7Db5RMyijVWssIixm1zVDl7jKwAPYpfhbHfz7MS5Q=="], + "@wrnexus/syntax": ["@wrnexus/syntax@0.7.0", "", {}, "sha512-pygjZXLoQtHiP5DcxRX++GbZInmNzuoNtXmGgYWVH0oVMzPPYXUtyCX5O7tzY7hEqLhs+TG7CCyWIoum1rbkJg=="], - "@wrnexus/validation": ["@wrnexus/validation@0.6.0", "", {}, "sha512-JY/wIrPhlyQHO/gbEL2Y9mucE7TqlTrNzJK3sMv8Ob0Yc/0Dy3rpqy8tXSvvBqpPQVp3/hjMdeR9x5B2H0LG5Q=="], + "@wrnexus/test": ["@wrnexus/test@0.7.0", "", {}, "sha512-3sYKNC6WUuwFoFAoDnZxVPCIwBU3CTkXbme9yd6c51eaksiNkPJJsQxANx83c/AM2k6z9BeH04ESUPgedm4GFg=="], + + "@wrnexus/tracking": ["@wrnexus/tracking@0.7.0", "", {}, "sha512-Q6cbKFD+0lW1PV8gPtXXZb1bS2w8wcKyCloOS2kRJR808LoIE6Y3XLWcL090w9HXmT2lBLVytriVl0LL19fe8g=="], + + "@wrnexus/typecheck": ["@wrnexus/typecheck@0.7.0", "", { "dependencies": { "@wrnexus/syntax": "^0.7.0", "typescript": "^5.5.0" } }, "sha512-49BcKK+5vNJ3JO3kHuGvFYRhjQli1n9GCSg6ppTUq7pg95AB4Amtn8VrYOIhMKxbu/bmRJAvUAjfW/aLnZwJ6A=="], + + "@wrnexus/ui": ["@wrnexus/ui@0.7.0", "", { "dependencies": { "@wrnexus/core": "^0.7.0" } }, "sha512-31/8YOOl9iGckZ37C6s7gIwm1Xkq+YTkClNNC3VgM6/kn2BvGKKURiS9qngy2QznMmZ7jmRnwHOQmbTjldcJfA=="], + + "@wrnexus/uploader": ["@wrnexus/uploader@0.7.0", "", { "dependencies": { "@wrnexus/core": "^0.7.0" } }, "sha512-YrT6KUWjR3ElO4DCTTSdXnZBEL+r3GDSpeXEZOpIZByd+6/vgsMPWbVSfqNZi9ZS2oYeUJtF9tKPAtQlOA8WGg=="], + + "@wrnexus/validation": ["@wrnexus/validation@0.7.0", "", {}, "sha512-nlIStY1coiCJDunGW1ilBuZqTAkiz7vlICAHe+h7sOhHJ2zd0FXVnwuN4yKR+RAn7pT9r3e/QG5NG8+/J5RsfQ=="], "acorn": ["acorn@8.17.0", "", { "bin": { "acorn": "bin/acorn" } }, "sha512-xRQbDb9BnwDafYNn6Vwl839DYVjqXYb1XVGtWAZ1kcDc6iwAL4hg3B1dZlRiuENFeO2H53gFG3in621AdERVAg=="], diff --git a/docs/documentation-coverage-matrix.md b/docs/documentation-coverage-matrix.md index 4e8e774d..46327ef3 100644 --- a/docs/documentation-coverage-matrix.md +++ b/docs/documentation-coverage-matrix.md @@ -1,37 +1,42 @@ # Documentation coverage matrix -| Area | Package reference | Concept guide | Runnable fixture | Tests | Stability | Limitation | -| -------------------- | --------------------- | ---------------------------- | ---------------- | ------------------ | ------------ | ------------------------ | -| @wrnexus/ai | /packages/ai | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/auth | /packages/auth | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/authz | /packages/authz | /guides/authorization | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/captcha | /packages/captcha | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/cli | /packages/cli | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/compiler | /packages/compiler | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/core | /packages/core | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/csr | /packages/csr | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/db | /packages/db | /guides/db | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/dev-server | /packages/dev-server | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/dev-toolbar | /packages/dev-toolbar | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/encryption | /packages/encryption | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/helpers | /packages/helpers | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/i18n | /packages/i18n | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/jwt | /packages/jwt | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/mobile | /packages/mobile | /guides/mobile | Planned | Generator coverage | Experimental | No standalone CI fixture | -| @wrnexus/native | /packages/native | Architecture/package guide | Planned | Generator coverage | Experimental | No standalone CI fixture | -| @wrnexus/oauth | /packages/oauth | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/plugin | /packages/plugin | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/pubsub | /packages/pubsub | /guides/pubsub | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/queue | /packages/queue | /guides/queues | Planned | Generator coverage | Experimental | No standalone CI fixture | -| @wrnexus/reactive | /packages/reactive | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/router | /packages/router | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/ssr | /packages/ssr | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/store | /packages/store | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/styles | /packages/styles | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/syntax | /packages/syntax | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/test | /packages/test | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/tracking | /packages/tracking | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/typecheck | /packages/typecheck | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/ui | /packages/ui | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/uploader | /packages/uploader | /guides/uploads | Planned | Generator coverage | Preview | No standalone CI fixture | -| @wrnexus/validation | /packages/validation | /guides/forms-and-validation | Planned | Generator coverage | Preview | No standalone CI fixture | +| Area | Package reference | Concept guide | Runnable fixture | Tests | Stability | Limitation | +| ---------------------- | ----------------------- | ---------------------------- | ---------------- | ------------------ | ------------ | ------------------------ | +| @wrnexus/ai | /packages/ai | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/auth | /packages/auth | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/authz | /packages/authz | /guides/authorization | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/benchmark | /packages/benchmark | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/cache | /packages/cache | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/captcha | /packages/captcha | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/cli | /packages/cli | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/compiler | /packages/compiler | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/core | /packages/core | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/csr | /packages/csr | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/db | /packages/db | /guides/db | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/dev-server | /packages/dev-server | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/dev-toolbar | /packages/dev-toolbar | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/encryption | /packages/encryption | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/helpers | /packages/helpers | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/i18n | /packages/i18n | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/image | /packages/image | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/jwt | /packages/jwt | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/mobile | /packages/mobile | /guides/mobile | Planned | Generator coverage | Experimental | No standalone CI fixture | +| @wrnexus/native | /packages/native | Architecture/package guide | Planned | Generator coverage | Experimental | No standalone CI fixture | +| @wrnexus/oauth | /packages/oauth | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/observability | /packages/observability | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/plugin | /packages/plugin | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/pubsub | /packages/pubsub | /guides/pubsub | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/queue | /packages/queue | /guides/queues | Planned | Generator coverage | Experimental | No standalone CI fixture | +| @wrnexus/reactive | /packages/reactive | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/router | /packages/router | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/security | /packages/security | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/ssr | /packages/ssr | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/store | /packages/store | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/styles | /packages/styles | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/syntax | /packages/syntax | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/test | /packages/test | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/tracking | /packages/tracking | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/typecheck | /packages/typecheck | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/ui | /packages/ui | Architecture/package guide | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/uploader | /packages/uploader | /guides/uploads | Planned | Generator coverage | Preview | No standalone CI fixture | +| @wrnexus/validation | /packages/validation | /guides/forms-and-validation | Planned | Generator coverage | Preview | No standalone CI fixture | diff --git a/docs/release-access-status.md b/docs/release-access-status.md index 41e39e50..332a7f0c 100644 --- a/docs/release-access-status.md +++ b/docs/release-access-status.md @@ -2,6 +2,6 @@ ## Decision: Mode B — Private Developer Preview -Active version: 0.6.0, derived from package.json#wrnexus.version. All 33 installed @wrnexus packages resolve to 0.6.0 and npm reports restricted access. The repository remote is a private WorkRoot Git service and no public license file exists. +Active version: 0.7.0, derived from package.json#wrnexus.version. All 38 installed @wrnexus packages resolve to 0.7.0 and npm reports restricted access. The repository remote is a private WorkRoot Git service and no public license file exists. -External users cannot execute an installation without approved private registry credentials. The truthful CTA is Request preview access. After approval, the canonical command is bunx @wrnexus/cli@0.6.0 create my-app. Tokens must never appear in documentation or source. +External users cannot execute an installation without approved private registry credentials. The truthful CTA is Request preview access. After approval, the canonical command is bunx @wrnexus/cli@0.7.0 create my-app. Tokens must never appear in documentation or source. diff --git a/docs/site-audit.md b/docs/site-audit.md index f4c07154..68f41196 100644 --- a/docs/site-audit.md +++ b/docs/site-audit.md @@ -1,18 +1,18 @@ # WRNexusJS site audit -Date: 2026-07-13. Baseline: Bun 1.3.14, framework 0.6.0. +Date: 2026-07-13. Baseline: Bun 1.3.14, framework 0.7.0. ## Baseline results - authenticated private-registry installation: pass. -- docs generation: pass (33 package pages plus portal and guide pages). +- docs generation: pass (38 package pages plus portal and guide pages). - tests, lint, formatting, and production build are required by the release check. - package access remains restricted/private. - repository: private WorkRoot Git remote; no public license file exists. ## Findings -Package documentation, discovery assets, and AI-readable references are generated from the installed release. The 0.6.0 portal includes the helpers package, workspace app addition, and safe forward-auth login redirect guidance. +Package documentation, discovery assets, and AI-readable references are generated from the installed release. The 0.7.0 portal includes the helpers package, workspace app addition, and safe forward-auth login redirect guidance. ## Audit limitations diff --git a/package-lock.json b/package-lock.json index 32888071..d74e93ba 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,45 +10,50 @@ "dependencies": { "@iconify-json/lucide": "^1.2.118", "@iconify/tailwind4": "^1.2.3", - "@wrnexus/ai": "^0.6.0", - "@wrnexus/auth": "^0.6.0", - "@wrnexus/authz": "^0.6.0", - "@wrnexus/captcha": "^0.6.0", - "@wrnexus/compiler": "^0.6.0", - "@wrnexus/core": "^0.6.0", - "@wrnexus/csr": "^0.6.0", - "@wrnexus/db": "^0.6.0", - "@wrnexus/dev-server": "^0.6.0", - "@wrnexus/dev-toolbar": "^0.6.0", - "@wrnexus/encryption": "^0.6.0", - "@wrnexus/helpers": "^0.6.0", - "@wrnexus/i18n": "^0.6.0", - "@wrnexus/jwt": "^0.6.0", - "@wrnexus/mobile": "^0.6.0", - "@wrnexus/native": "^0.6.0", - "@wrnexus/oauth": "^0.6.0", - "@wrnexus/plugin": "^0.6.0", - "@wrnexus/pubsub": "^0.6.0", - "@wrnexus/queue": "^0.6.0", - "@wrnexus/reactive": "^0.6.0", - "@wrnexus/router": "^0.6.0", - "@wrnexus/ssr": "^0.6.0", - "@wrnexus/store": "^0.6.0", - "@wrnexus/styles": "^0.6.0", - "@wrnexus/syntax": "^0.6.0", - "@wrnexus/test": "^0.6.0", - "@wrnexus/tracking": "^0.6.0", - "@wrnexus/typecheck": "^0.6.0", - "@wrnexus/ui": "^0.6.0", - "@wrnexus/uploader": "^0.6.0", - "@wrnexus/validation": "^0.6.0" + "@wrnexus/ai": "^0.7.0", + "@wrnexus/auth": "^0.7.0", + "@wrnexus/authz": "^0.7.0", + "@wrnexus/benchmark": "^0.7.0", + "@wrnexus/cache": "^0.7.0", + "@wrnexus/captcha": "^0.7.0", + "@wrnexus/compiler": "^0.7.0", + "@wrnexus/core": "^0.7.0", + "@wrnexus/csr": "^0.7.0", + "@wrnexus/db": "^0.7.0", + "@wrnexus/dev-server": "^0.7.0", + "@wrnexus/dev-toolbar": "^0.7.0", + "@wrnexus/encryption": "^0.7.0", + "@wrnexus/helpers": "^0.7.0", + "@wrnexus/i18n": "^0.7.0", + "@wrnexus/image": "^0.7.0", + "@wrnexus/jwt": "^0.7.0", + "@wrnexus/mobile": "^0.7.0", + "@wrnexus/native": "^0.7.0", + "@wrnexus/oauth": "^0.7.0", + "@wrnexus/observability": "^0.7.0", + "@wrnexus/plugin": "^0.7.0", + "@wrnexus/pubsub": "^0.7.0", + "@wrnexus/queue": "^0.7.0", + "@wrnexus/reactive": "^0.7.0", + "@wrnexus/router": "^0.7.0", + "@wrnexus/security": "^0.7.0", + "@wrnexus/ssr": "^0.7.0", + "@wrnexus/store": "^0.7.0", + "@wrnexus/styles": "^0.7.0", + "@wrnexus/syntax": "^0.7.0", + "@wrnexus/test": "^0.7.0", + "@wrnexus/tracking": "^0.7.0", + "@wrnexus/typecheck": "^0.7.0", + "@wrnexus/ui": "^0.7.0", + "@wrnexus/uploader": "^0.7.0", + "@wrnexus/validation": "^0.7.0" }, "devDependencies": { "@eslint/js": "^9.0.0", "@tailwindcss/cli": "^4.0.0", "@types/bun": "latest", "@types/node": "^26.1.1", - "@wrnexus/cli": "^0.6.0", + "@wrnexus/cli": "^0.7.0", "eslint": "^9.0.0", "prettier": "latest", "tailwindcss": "^4.0.0", @@ -1308,78 +1313,99 @@ } }, "node_modules/@wrnexus/ai": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/ai/-/ai-0.6.0.tgz", - "integrity": "sha512-Hj76672ZHnG03MV58gcrulWii8hxbfAVlR7T/2INnGxKRIOKHJa+pVZoAl7TVOPXRFPqVwgrkATa+vK6/dhg8g==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/ai/-/ai-0.7.0.tgz", + "integrity": "sha512-tJGbCrKsDUHrmAsboBdHZ2zkUGgdffQhyCaPN2BNL88vozuHAFKEl6fOdbADXzu9EZPH4cFMV5Ew54QAUQS1Xw==", "license": "MIT", "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/auth": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/auth/-/auth-0.6.0.tgz", - "integrity": "sha512-pqka4koIRZoy2Wn5CK4wETSI4nVuFCiAyI7nS4Qs4Wt2pPdJVGF8CDCKuTLOqwwufs4s5Bm5+L8QuB9txdAO0Q==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/auth/-/auth-0.7.0.tgz", + "integrity": "sha512-GD6XEXMmu/H6XcK6a4hmF72ItB1/pdlmMPWe4RPU+w40blfZyiN3GaYhjdE3Cxb9C86uMo3Phrm65NKrMU6ptA==", "license": "MIT", "dependencies": { - "@wrnexus/authz": "^0.6.0", - "@wrnexus/captcha": "^0.6.0", - "@wrnexus/core": "^0.6.0", - "@wrnexus/db": "^0.6.0", - "@wrnexus/encryption": "^0.6.0", - "@wrnexus/jwt": "^0.6.0", - "@wrnexus/oauth": "^0.6.0", - "@wrnexus/plugin": "^0.6.0", - "@wrnexus/queue": "^0.6.0", - "@wrnexus/ui": "^0.6.0", - "@wrnexus/validation": "^0.6.0" + "@wrnexus/authz": "^0.7.0", + "@wrnexus/captcha": "^0.7.0", + "@wrnexus/core": "^0.7.0", + "@wrnexus/db": "^0.7.0", + "@wrnexus/encryption": "^0.7.0", + "@wrnexus/jwt": "^0.7.0", + "@wrnexus/oauth": "^0.7.0", + "@wrnexus/plugin": "^0.7.0", + "@wrnexus/queue": "^0.7.0", + "@wrnexus/ui": "^0.7.0", + "@wrnexus/validation": "^0.7.0" }, "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/authz": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/authz/-/authz-0.6.0.tgz", - "integrity": "sha512-9y5CwL62mLwKzopt9Wl0z/yi895HDL1H7QadcYK4zVFymAo8qlaM/kpgnG+K+yE5qGLam6rC97d60KPhqDb4bA==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/authz/-/authz-0.7.0.tgz", + "integrity": "sha512-l3hIHlE1suHJDt31e1+/WW1OHyomSdfzx89rNyvrZbfej4rYPpB2H7YQYtLa1uwJUehcWCdqy9gEnJZclhDbJg==", "license": "MIT", "engines": { "bun": ">=1.3.0" } }, - "node_modules/@wrnexus/captcha": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/captcha/-/captcha-0.6.0.tgz", - "integrity": "sha512-r0V2rhWXkK/3RtVl4toMUQFfYDdUDS49rSkrxWBOvnUCRMs2qsFvSYPt1odC1fZ9kQkVcmNYuUPBh8YapjGixg==", + "node_modules/@wrnexus/benchmark": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/benchmark/-/benchmark-0.7.0.tgz", + "integrity": "sha512-0VFTdjKDPq815qHmUFDMaRxPe13Z5yuyXOTSFs2rRluwY+ujphYcofVX2AKcyXiu120hL/6Vf1gMS2C8YWcoAg==", + "license": "MIT", + "engines": { + "bun": ">=1.3.0" + } + }, + "node_modules/@wrnexus/cache": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/cache/-/cache-0.7.0.tgz", + "integrity": "sha512-uRnwH45yM2Y93TI/fFEphZqKWi2B8dnJnAsxdB+lhgYb3PKDS3RHx3wgSjbolXFCIMjvhM5hEGFwSFy22DnFQw==", "license": "MIT", "dependencies": { - "@wrnexus/core": "^0.6.0", - "@wrnexus/plugin": "^0.6.0", - "@wrnexus/validation": "^0.6.0" + "@wrnexus/core": "^0.7.0" + }, + "engines": { + "bun": ">=1.3.0" + } + }, + "node_modules/@wrnexus/captcha": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/captcha/-/captcha-0.7.0.tgz", + "integrity": "sha512-l5YtUklzUqQzilB3bGrsGewWHc0gd04RF1OuRbN9Uhys4s1ZUGgWeZHMdPDd6+fe8mqSgXnac0pliRgcQbeBKQ==", + "license": "MIT", + "dependencies": { + "@wrnexus/core": "^0.7.0", + "@wrnexus/plugin": "^0.7.0", + "@wrnexus/validation": "^0.7.0" }, "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/cli": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/cli/-/cli-0.6.0.tgz", - "integrity": "sha512-i8MtPLLCQL0cACd907UL1ljeDCNU8U6HKcnUzz52P2eIAZ8k+LlI3M32TX7obivLv15i4MH8fXXldzL1f8eb8A==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/cli/-/cli-0.7.0.tgz", + "integrity": "sha512-Fo8p4XI0Eocjn9CgaNNfk1o1iywvvnIaMaMZ2MDcj6H/eysG4uW/4WMwa5XXQY3GzAmaiOFdurl5tXPhcTuC9A==", "dev": true, "license": "MIT", "dependencies": { - "@wrnexus/compiler": "^0.6.0", - "@wrnexus/core": "^0.6.0", - "@wrnexus/csr": "^0.6.0", - "@wrnexus/db": "^0.6.0", - "@wrnexus/dev-server": "^0.6.0", - "@wrnexus/i18n": "^0.6.0", - "@wrnexus/plugin": "^0.6.0", - "@wrnexus/router": "^0.6.0", - "@wrnexus/styles": "^0.6.0", - "@wrnexus/syntax": "^0.6.0", - "@wrnexus/ui": "^0.6.0", - "@wrnexus/validation": "^0.6.0" + "@wrnexus/compiler": "^0.7.0", + "@wrnexus/core": "^0.7.0", + "@wrnexus/csr": "^0.7.0", + "@wrnexus/db": "^0.7.0", + "@wrnexus/dev-server": "^0.7.0", + "@wrnexus/i18n": "^0.7.0", + "@wrnexus/plugin": "^0.7.0", + "@wrnexus/router": "^0.7.0", + "@wrnexus/styles": "^0.7.0", + "@wrnexus/syntax": "^0.7.0", + "@wrnexus/ui": "^0.7.0", + "@wrnexus/validation": "^0.7.0" }, "bin": { "wrnexus": "dist/index.js" @@ -1389,277 +1415,316 @@ } }, "node_modules/@wrnexus/compiler": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/compiler/-/compiler-0.6.0.tgz", - "integrity": "sha512-AYKebrDqGcn3nqJWSpoOEio3EYppT3kLQTO6J6BRy+WyChxX1MuN16XjZAJaLFGybf22zw8WfCuaXLjpS/HpGg==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/compiler/-/compiler-0.7.0.tgz", + "integrity": "sha512-iS3oaIiwTeffdriC2PlLS9MTOX4CU5lRDq6uO0ExbB/wvZ7qnBnT2mpliyZGPF5m7BKadPf77rr8dDtIg8C9iQ==", "license": "MIT", "dependencies": { - "@wrnexus/store": "^0.6.0", - "@wrnexus/syntax": "^0.6.0" + "@wrnexus/store": "^0.7.0", + "@wrnexus/syntax": "^0.7.0" }, "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/core": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/core/-/core-0.6.0.tgz", - "integrity": "sha512-X2UJhmAeXoyvpSGQ/2zPOzgFPwr+bMYeOjf/KV8f+ULf02pM8zvyQNV3Fft4GaUl7LwZG8gD5b1XwUIFWS500Q==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/core/-/core-0.7.0.tgz", + "integrity": "sha512-HsQ1jHLMy+W+9H2BV7ilpAkbA2cCBJ3TEI8H6wTSC51j9C0HRZHtX1wlg0pDBsQEDwumpKFwvr3IxH9HVlpl5A==", "license": "MIT", "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/csr": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/csr/-/csr-0.6.0.tgz", - "integrity": "sha512-6ll6D4HmoCdNkWB+bpWgKmFkrFlaANDSWZAXv/g3oTOvq+FKUza47WqEXhR29NFKqJO9mTYW684KA3uZAOe6bg==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/csr/-/csr-0.7.0.tgz", + "integrity": "sha512-7EofnItpvQRZSvRi4nFjxOQiPMlbyFKgkhRlDo0lpElqslm+Kr1pRj1ux5wzSQZnb/XUMcaA45l5CX7poZq+eQ==", "license": "MIT", "dependencies": { - "@wrnexus/core": "^0.6.0" + "@wrnexus/core": "^0.7.0" }, "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/db": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/db/-/db-0.6.0.tgz", - "integrity": "sha512-Sgn9QJ8kIuoD0MktuqH89xlWAxlaV6qb+SDzaZ9MpOjMc4cAZpD5MWHMJKmWZgqyiLRCqJLHz4HKfEsstGdM4Q==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/db/-/db-0.7.0.tgz", + "integrity": "sha512-Weh8V5SrJEHKXQwMWYVyTkPdtrF5HV59jn0Z6VuZsKsEh0hAIhKbqGT2nAKHqddWaUjwxNt+hRQltx2lX/9MMQ==", "license": "MIT", "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/dev-server": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/dev-server/-/dev-server-0.6.0.tgz", - "integrity": "sha512-2DuKrJjE8WfHlBiDwBCpCTJhBGSRTttebatLpmvYtO6LB560VoPJVdsNucJ/p6jGK6F8Kg1sbSyLlupaw9mx2w==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/dev-server/-/dev-server-0.7.0.tgz", + "integrity": "sha512-NE7sU68s2GMp3eWPPYLVLGIIZZVDJxfLXr98yFFQq2XniAaDuHz9NBO8CIzamWlWtFhKcLKbgwYMkyLfOukd3A==", "license": "MIT", "dependencies": { - "@wrnexus/compiler": "^0.6.0", - "@wrnexus/core": "^0.6.0", - "@wrnexus/csr": "^0.6.0", - "@wrnexus/db": "^0.6.0", - "@wrnexus/dev-toolbar": "^0.6.0", - "@wrnexus/i18n": "^0.6.0", - "@wrnexus/plugin": "^0.6.0", - "@wrnexus/pubsub": "^0.6.0", - "@wrnexus/router": "^0.6.0", - "@wrnexus/ssr": "^0.6.0", - "@wrnexus/store": "^0.6.0", - "@wrnexus/styles": "^0.6.0", - "@wrnexus/ui": "^0.6.0", - "@wrnexus/uploader": "^0.6.0", - "@wrnexus/validation": "^0.6.0" + "@wrnexus/compiler": "^0.7.0", + "@wrnexus/core": "^0.7.0", + "@wrnexus/csr": "^0.7.0", + "@wrnexus/db": "^0.7.0", + "@wrnexus/dev-toolbar": "^0.7.0", + "@wrnexus/i18n": "^0.7.0", + "@wrnexus/observability": "^0.7.0", + "@wrnexus/plugin": "^0.7.0", + "@wrnexus/pubsub": "^0.7.0", + "@wrnexus/router": "^0.7.0", + "@wrnexus/security": "^0.7.0", + "@wrnexus/ssr": "^0.7.0", + "@wrnexus/store": "^0.7.0", + "@wrnexus/styles": "^0.7.0", + "@wrnexus/ui": "^0.7.0", + "@wrnexus/uploader": "^0.7.0", + "@wrnexus/validation": "^0.7.0" }, "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/dev-toolbar": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/dev-toolbar/-/dev-toolbar-0.6.0.tgz", - "integrity": "sha512-LY0Hq7liLXrspOM+GgHuwQY2pmEqG1EjMaz4u0iVUMNt7JjuJxzzz1b3DlotJbMdvsEy8GKDosPW92WbT96QNQ==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/dev-toolbar/-/dev-toolbar-0.7.0.tgz", + "integrity": "sha512-iqI47nhtKmuSvu3cyju/Mg343+evqBnD4Ek2TQg+kvxhnEfVNmPKBZ6CRZGC3Qq+C8j0TuCUVD3Sb88hiV0+Qw==", "license": "MIT", "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/encryption": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/encryption/-/encryption-0.6.0.tgz", - "integrity": "sha512-kJHiwUVD1qCFGZos7yWGvIkvg9ayk3o6BP2K8z/8wa2WkWt+f59DA0M66fDWffa08pP6/rlghbpDSTjGl2zZ9Q==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/encryption/-/encryption-0.7.0.tgz", + "integrity": "sha512-eLMVjHZbK0+2wJBdyPzCx3JQd8btgtvzcWQ+1XSMPmnxvsxVhVjxe2COgey8mRd2aUeltTvgJEqAIQ3AM9nlMw==", "license": "MIT", "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/helpers": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/helpers/-/helpers-0.6.0.tgz", - "integrity": "sha512-qQ1k2pd3TIr4Hb7YgN4On0YpmNjXAQ95YghvANmXcJLziqeSZYeOqJ6l6vLqTbVwyskyvbRd7FfhJkPWWfpb4A==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/helpers/-/helpers-0.7.0.tgz", + "integrity": "sha512-G9Fo5L23Xnp+cY0Q3fWcEtWpNNak5+/Wr2i+OZxxSjiHbKQtNi29kZ/HVROOGe978KAw8GTk6rycwUA4Ul568A==", "license": "MIT", "dependencies": { - "@wrnexus/core": "^0.6.0" + "@wrnexus/core": "^0.7.0" }, "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/i18n": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/i18n/-/i18n-0.6.0.tgz", - "integrity": "sha512-LkTI1XyPKB2Yzuo/lWtlyADihLH+gDJ/t/K3628vh7p2S6RHV7K6ng/uNRtmMch2cOGl+rqzA+mOT3xe8Mk7Xg==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/i18n/-/i18n-0.7.0.tgz", + "integrity": "sha512-1vOxW/07E2HqlvQHn+sJOQDlapcX1KXcdbge5yMvIUtDd1eTxuQfeo99svfgYxmoPzKqt8cDc5fU7O18Wvdedw==", "license": "MIT", "dependencies": { - "@wrnexus/core": "^0.6.0" + "@wrnexus/core": "^0.7.0" + }, + "engines": { + "bun": ">=1.3.0" + } + }, + "node_modules/@wrnexus/image": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/image/-/image-0.7.0.tgz", + "integrity": "sha512-nxOHnhMHGOnW4dAYHH2hlpWCPhnDccqKPbrJZOWTk4ljxYI7PS4BHlH89FddeL1gdRqMu1dxrgyk/2N7SsF0Dg==", + "license": "MIT", + "dependencies": { + "@wrnexus/security": "^0.7.0" }, "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/jwt": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/jwt/-/jwt-0.6.0.tgz", - "integrity": "sha512-Gy9cZufdeWfRaQLQ7JkPuQvKp4Qqn5vLM1NwU3fmPwUDo0hW0zGbPcu14aoZWlhvqC3B5iXI8kFayCQ4Y0C0nA==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/jwt/-/jwt-0.7.0.tgz", + "integrity": "sha512-2oA6dWUgz05QnmjpnfSV+j7nfJ+Cx0E2u74r7xrrFGnvqCSHxUofDaQq7LpOeQW7tkTBFHsinmsTpp3x7ie8vQ==", "license": "MIT", "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/mobile": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/mobile/-/mobile-0.6.0.tgz", - "integrity": "sha512-AihigbRXqRdWX/Yrzwc9NVjI2HuZkQa3XMUcMGfOKC0paWoeSvSDMksamHjARvYhTYgKpcJ0FCTDeiMvdcV35w==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/mobile/-/mobile-0.7.0.tgz", + "integrity": "sha512-1Q1gJrwUtqJrS0B7aDdvor/CU88iTmFw7BinUY87bzqwMo1/ZJI0kdYFIZyFDFJeJr0TEtoepPA9n5TxnzRL/Q==", "license": "MIT", "dependencies": { - "@wrnexus/native": "^0.6.0" + "@wrnexus/native": "^0.7.0" }, "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/native": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/native/-/native-0.6.0.tgz", - "integrity": "sha512-HV8KCTC3ufLJqk+oafJ3+PdnEm5Uui2ncBeAyFfYOX4ysZnyi7vJzlfPgBTwJu9phJ7yn9yPXaTxIUVUjWcyMw==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/native/-/native-0.7.0.tgz", + "integrity": "sha512-dkcrc6+ulkjt4p2/yL7jpY2iALWy+OkOUORAnF5AmUNQEHcDH7kDR3+k1QexI9h6FcB0T/DqTTUBLVqYN2y7Qw==", "license": "MIT", "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/oauth": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/oauth/-/oauth-0.6.0.tgz", - "integrity": "sha512-Nd7ktLa0HX0wX+Q2W+gCQWcSC7eKuZjb2VwIb88cs+OfHm1Vl8vCkk683ZwRIp29DF1kQfCWvKwaYI7FAvJxeQ==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/oauth/-/oauth-0.7.0.tgz", + "integrity": "sha512-xgjUwHUdgNfk0s+AD9c+i0WcaGIOa2iv+uDJyFaNymSB1MCkYMxKx2NwLfIteb+uiyowCD335i4He5edzx579g==", "license": "MIT", "engines": { "bun": ">=1.3.0" } }, - "node_modules/@wrnexus/plugin": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/plugin/-/plugin-0.6.0.tgz", - "integrity": "sha512-rl+HmN9jXzDONRZDiZ/Ny4iMxDp0HpSXkvBXJNLC3H97FEO4vAfD5yso3FxShkvEjUwiUVIPgF5uaCdqOSAxZg==", + "node_modules/@wrnexus/observability": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/observability/-/observability-0.7.0.tgz", + "integrity": "sha512-EmMoVVsFl/IznDX4jR/xQAg/Nubgo47FROkglQhblakQ2T0bmkED8DOc433Ow1fDJwJsigF/GoDVmFzfIQlJJA==", "license": "MIT", "dependencies": { - "@wrnexus/syntax": "^0.6.0" + "@wrnexus/core": "^0.7.0" + }, + "engines": { + "bun": ">=1.3.0" + } + }, + "node_modules/@wrnexus/plugin": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/plugin/-/plugin-0.7.0.tgz", + "integrity": "sha512-tD/D0LC2WBPR57dz0Ztd5JiGOaWGPnraBPjYtQ13nV3AEmzoRvJmgRqTj496rbIbpytbES7yfHbBsvwbUz6kmg==", + "license": "MIT", + "dependencies": { + "@wrnexus/syntax": "^0.7.0" }, "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/pubsub": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/pubsub/-/pubsub-0.6.0.tgz", - "integrity": "sha512-wu2DyioqoIb2C8KJSiV59schm+dZRwYPT9atLYBIcSYnbp8tbNpU1ybtOWrBbAlmDsS0GY2NnR9NH0dgORMoXg==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/pubsub/-/pubsub-0.7.0.tgz", + "integrity": "sha512-wYz4xiaFLDJnJMv8tPKHFGmQXbeAag/n9ITK+6S/QJXyWdkzlHjmviYE81slmauqcqr1p40hZ3j7qYtdKyZ5fA==", "license": "MIT", "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/queue": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/queue/-/queue-0.6.0.tgz", - "integrity": "sha512-vwSOnzT4Et6rMidd4AvPm1//Jfnq22ddWL/yhVe/ishhxEK3rNfQfIxHVehUDozHLT+hEua7NwO0wP3YTD2+jA==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/queue/-/queue-0.7.0.tgz", + "integrity": "sha512-6ti38dKNCCeIvzjUkdPt3nKv5MCQtNF6AhMkeIAlX2l26Wgf4+iPGovz+yf+k3doN35+UFnQ1fg/zjZdC9K5Wg==", "license": "MIT", "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/reactive": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/reactive/-/reactive-0.6.0.tgz", - "integrity": "sha512-lw0TTu69xXxNcCr5KB7KXYf4gBrSmR0PICANj47+jxnn6rhaWmKWJBvYiXNmHHe+zVf9GSwjT+qIi2bbgv71Rw==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/reactive/-/reactive-0.7.0.tgz", + "integrity": "sha512-TVQmoXE8kiAdmUvVKiEFqWpW1WiklZ7BxW2A3z7esoQRzgBCrnSSsbjETm4GDNJUQJZaCg6NGV29QvuHZiGzDA==", "license": "MIT", "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/router": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/router/-/router-0.6.0.tgz", - "integrity": "sha512-KzB4g0lHVT/WfmcIB0vhYDxRr5BDV4LIoMSzIzRlUWlFDSw6yVqoQEyUJ6DMhGGiah0ieoxsbjAsfnirlSlgfA==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/router/-/router-0.7.0.tgz", + "integrity": "sha512-82VowxOouJjHj4O7sy3NDWmwdQb4BqZwK9a9mj03ULBrXuAFkbDeY/stHIPKE1K6K+ICH2E2qAF4o1eXgWVxeQ==", "license": "MIT", "dependencies": { - "@wrnexus/compiler": "^0.6.0", - "@wrnexus/core": "^0.6.0" + "@wrnexus/compiler": "^0.7.0", + "@wrnexus/core": "^0.7.0" + }, + "engines": { + "bun": ">=1.3.0" + } + }, + "node_modules/@wrnexus/security": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/security/-/security-0.7.0.tgz", + "integrity": "sha512-XfnjwhbrDcwdDQzTMNyCwM9ODWVtzgL7IjsTix3bWd3zmEigkiyNxpCNxMoX79m0ATzi7YzBOriJ5o5hg8RGJQ==", + "license": "MIT", + "dependencies": { + "@wrnexus/core": "^0.7.0" }, "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/ssr": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/ssr/-/ssr-0.6.0.tgz", - "integrity": "sha512-IQn1G9HkiB52A1BHlOFXJCtPDn3WmoQxUfqWdkTcE+FZ5CdyCfrYvBIS2YrtAnqixZ0liHxyH04OnAO/8hcmiQ==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/ssr/-/ssr-0.7.0.tgz", + "integrity": "sha512-1hRaXCDG16aBP7PlVGCRqXw9JHjMlxZUwqI9QiMgeJ+Z0lHU1zNjqepo4xN8Rmug3oUQ0rSpGYj7CxN1QWFgdw==", "license": "MIT", "dependencies": { - "@wrnexus/core": "^0.6.0", - "@wrnexus/store": "^0.6.0" + "@wrnexus/core": "^0.7.0", + "@wrnexus/security": "^0.7.0", + "@wrnexus/store": "^0.7.0" }, "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/store": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/store/-/store-0.6.0.tgz", - "integrity": "sha512-q2u1mSYNwn8k1kFFLEgL8nm9mXljug28O+1aavGWSOME3uYTeiJUv3XgL+zUqhXK+XED12FwmzXG3SPATfjg9A==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/store/-/store-0.7.0.tgz", + "integrity": "sha512-yrlVX1q1NRDWvQ6tDj7BGxy/IGzjPjhESqnZtWN7KnR53TsFT+yxhVZdnyJxVSp/IipvJh0u2bgK4H/ZDYEozg==", "license": "MIT", "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/styles": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/styles/-/styles-0.6.0.tgz", - "integrity": "sha512-mNHxCT+/SHOtvStSbiOzj3A2+EHbLGAzbAXQM81inAN0Vf6gIK8lNIMau+9ckXSXoiYBq2LpH5pzg9V87T9e1A==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/styles/-/styles-0.7.0.tgz", + "integrity": "sha512-PiSlWNlg+kJ2P4kpHD1q/yDteSzCdpsvyeUmC4uRS724orubAkmQe2yk4e+CRr3MoQnxvHzefo+NamJcdrJwGg==", "license": "MIT", "dependencies": { - "@wrnexus/core": "^0.6.0", - "@wrnexus/plugin": "^0.6.0", - "@wrnexus/uploader": "^0.6.0" + "@wrnexus/core": "^0.7.0", + "@wrnexus/plugin": "^0.7.0", + "@wrnexus/uploader": "^0.7.0" }, "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/syntax": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/syntax/-/syntax-0.6.0.tgz", - "integrity": "sha512-k+tZtXMD4c+roZCuYAOYYCRNGUV4Ki75oqUJ1JWhqg2huGprHrld7JKVM0KHou2RODTZ2c3GAry5n29F9T39lw==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/syntax/-/syntax-0.7.0.tgz", + "integrity": "sha512-pygjZXLoQtHiP5DcxRX++GbZInmNzuoNtXmGgYWVH0oVMzPPYXUtyCX5O7tzY7hEqLhs+TG7CCyWIoum1rbkJg==", "license": "MIT", "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/test": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/test/-/test-0.6.0.tgz", - "integrity": "sha512-mZWbU2Fqu4uFRI+5o+N7ZBCLMOvnc1XEUUqTRH2N+S8cEaMAka3M1dwZxw8p0tp8rfjtxlpJ4E0UQGyINhsutw==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/test/-/test-0.7.0.tgz", + "integrity": "sha512-3sYKNC6WUuwFoFAoDnZxVPCIwBU3CTkXbme9yd6c51eaksiNkPJJsQxANx83c/AM2k6z9BeH04ESUPgedm4GFg==", "license": "MIT", "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/tracking": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/tracking/-/tracking-0.6.0.tgz", - "integrity": "sha512-kvi5QavFdd4Cmzck5npOl3nWTw+Vgc8odx0Fm8CBDZs6hJwvUPRrqfRmL1TxsNdzhn7mh6W8y9RTcEsKiRy8cg==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/tracking/-/tracking-0.7.0.tgz", + "integrity": "sha512-Q6cbKFD+0lW1PV8gPtXXZb1bS2w8wcKyCloOS2kRJR808LoIE6Y3XLWcL090w9HXmT2lBLVytriVl0LL19fe8g==", "license": "MIT", "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/typecheck": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/typecheck/-/typecheck-0.6.0.tgz", - "integrity": "sha512-UObLm/YPR4QNw5Y9jp4YIg5c9GH3orl52iv4c1JXi9a/19RppZmbG0GoLk7AtRdKl3TsHVSuOgnRsw5pd3Zp8Q==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/typecheck/-/typecheck-0.7.0.tgz", + "integrity": "sha512-49BcKK+5vNJ3JO3kHuGvFYRhjQli1n9GCSg6ppTUq7pg95AB4Amtn8VrYOIhMKxbu/bmRJAvUAjfW/aLnZwJ6A==", "license": "MIT", "dependencies": { - "@wrnexus/syntax": "^0.6.0", + "@wrnexus/syntax": "^0.7.0", "typescript": "^5.5.0" }, "engines": { @@ -1667,33 +1732,33 @@ } }, "node_modules/@wrnexus/ui": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/ui/-/ui-0.6.0.tgz", - "integrity": "sha512-fSj6vo7u4TN2rnpEWaC+FIyIWEGLYcXNs4KT9vM4M/BeRlru/R9a1MYrvxQichDtGITEHCFbDjuBzGPByLZC7Q==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/ui/-/ui-0.7.0.tgz", + "integrity": "sha512-31/8YOOl9iGckZ37C6s7gIwm1Xkq+YTkClNNC3VgM6/kn2BvGKKURiS9qngy2QznMmZ7jmRnwHOQmbTjldcJfA==", "license": "MIT", "dependencies": { - "@wrnexus/core": "^0.6.0" + "@wrnexus/core": "^0.7.0" }, "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/uploader": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/uploader/-/uploader-0.6.0.tgz", - "integrity": "sha512-db+Q72SMh4uJYVcmVFbQP+vhtt27KVMGYqs1QLGAFdTkn7Db5RMyijVWssIixm1zVDl7jKwAPYpfhbHfz7MS5Q==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/uploader/-/uploader-0.7.0.tgz", + "integrity": "sha512-YrT6KUWjR3ElO4DCTTSdXnZBEL+r3GDSpeXEZOpIZByd+6/vgsMPWbVSfqNZi9ZS2oYeUJtF9tKPAtQlOA8WGg==", "license": "MIT", "dependencies": { - "@wrnexus/core": "^0.6.0" + "@wrnexus/core": "^0.7.0" }, "engines": { "bun": ">=1.3.0" } }, "node_modules/@wrnexus/validation": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wrnexus/validation/-/validation-0.6.0.tgz", - "integrity": "sha512-JY/wIrPhlyQHO/gbEL2Y9mucE7TqlTrNzJK3sMv8Ob0Yc/0Dy3rpqy8tXSvvBqpPQVp3/hjMdeR9x5B2H0LG5Q==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@wrnexus/validation/-/validation-0.7.0.tgz", + "integrity": "sha512-nlIStY1coiCJDunGW1ilBuZqTAkiz7vlICAHe+h7sOhHJ2zd0FXVnwuN4yKR+RAn7pT9r3e/QG5NG8+/J5RsfQ==", "license": "MIT", "engines": { "bun": ">=1.3.0" diff --git a/package.json b/package.json index f7272f20..6f6d3a67 100644 --- a/package.json +++ b/package.json @@ -27,45 +27,50 @@ "dependencies": { "@iconify-json/lucide": "^1.2.118", "@iconify/tailwind4": "^1.2.3", - "@wrnexus/ai": "^0.6.0", - "@wrnexus/authz": "^0.6.0", - "@wrnexus/compiler": "^0.6.0", - "@wrnexus/core": "^0.6.0", - "@wrnexus/csr": "^0.6.0", - "@wrnexus/db": "^0.6.0", - "@wrnexus/dev-server": "^0.6.0", - "@wrnexus/encryption": "^0.6.0", - "@wrnexus/helpers": "^0.6.0", - "@wrnexus/i18n": "^0.6.0", - "@wrnexus/jwt": "^0.6.0", - "@wrnexus/mobile": "^0.6.0", - "@wrnexus/native": "^0.6.0", - "@wrnexus/oauth": "^0.6.0", - "@wrnexus/pubsub": "^0.6.0", - "@wrnexus/queue": "^0.6.0", - "@wrnexus/reactive": "^0.6.0", - "@wrnexus/router": "^0.6.0", - "@wrnexus/ssr": "^0.6.0", - "@wrnexus/styles": "^0.6.0", - "@wrnexus/test": "^0.6.0", - "@wrnexus/tracking": "^0.6.0", - "@wrnexus/ui": "^0.6.0", - "@wrnexus/uploader": "^0.6.0", - "@wrnexus/validation": "^0.6.0", - "@wrnexus/dev-toolbar": "^0.6.0", - "@wrnexus/syntax": "^0.6.0", - "@wrnexus/plugin": "^0.6.0", - "@wrnexus/captcha": "^0.6.0", - "@wrnexus/auth": "^0.6.0", - "@wrnexus/store": "^0.6.0", - "@wrnexus/typecheck": "^0.6.0" + "@wrnexus/ai": "^0.7.0", + "@wrnexus/authz": "^0.7.0", + "@wrnexus/compiler": "^0.7.0", + "@wrnexus/core": "^0.7.0", + "@wrnexus/csr": "^0.7.0", + "@wrnexus/db": "^0.7.0", + "@wrnexus/dev-server": "^0.7.0", + "@wrnexus/encryption": "^0.7.0", + "@wrnexus/helpers": "^0.7.0", + "@wrnexus/i18n": "^0.7.0", + "@wrnexus/jwt": "^0.7.0", + "@wrnexus/mobile": "^0.7.0", + "@wrnexus/native": "^0.7.0", + "@wrnexus/oauth": "^0.7.0", + "@wrnexus/pubsub": "^0.7.0", + "@wrnexus/queue": "^0.7.0", + "@wrnexus/reactive": "^0.7.0", + "@wrnexus/router": "^0.7.0", + "@wrnexus/ssr": "^0.7.0", + "@wrnexus/styles": "^0.7.0", + "@wrnexus/test": "^0.7.0", + "@wrnexus/tracking": "^0.7.0", + "@wrnexus/ui": "^0.7.0", + "@wrnexus/uploader": "^0.7.0", + "@wrnexus/validation": "^0.7.0", + "@wrnexus/dev-toolbar": "^0.7.0", + "@wrnexus/syntax": "^0.7.0", + "@wrnexus/plugin": "^0.7.0", + "@wrnexus/captcha": "^0.7.0", + "@wrnexus/auth": "^0.7.0", + "@wrnexus/store": "^0.7.0", + "@wrnexus/typecheck": "^0.7.0", + "@wrnexus/security": "^0.7.0", + "@wrnexus/cache": "^0.7.0", + "@wrnexus/image": "^0.7.0", + "@wrnexus/observability": "^0.7.0", + "@wrnexus/benchmark": "^0.7.0" }, "devDependencies": { "@eslint/js": "^9.0.0", "@tailwindcss/cli": "^4.0.0", "@types/bun": "latest", "@types/node": "^26.1.1", - "@wrnexus/cli": "^0.6.0", + "@wrnexus/cli": "^0.7.0", "eslint": "^9.0.0", "prettier": "latest", "tailwindcss": "^4.0.0", @@ -73,6 +78,6 @@ "typescript-eslint": "latest" }, "wrnexus": { - "version": "0.6.0" + "version": "0.7.0" } } diff --git a/public/docs-index.json b/public/docs-index.json index 3a4c9c38..0588c563 100644 --- a/public/docs-index.json +++ b/public/docs-index.json @@ -1,5 +1,5 @@ { - "version": "0.6.0", + "version": "0.7.0", "status": "private-developer-preview", "generatedAt": "2026-07-13", "documents": [ @@ -7,525 +7,560 @@ "url": "/", "title": "WRNexusJS", "section": "portal", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/access", "title": "access", "section": "portal", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/getting-started", "title": "getting started", "section": "portal", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/tutorial", "title": "tutorial", "section": "portal", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/architecture", "title": "architecture", "section": "portal", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/language", "title": "language", "section": "portal", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages", "title": "packages", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/guides/project-structure", "title": "project structure", "section": "guide", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/guides/routing", "title": "routing", "section": "guide", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/guides/pages-and-components", "title": "pages and components", "section": "guide", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/guides/server-data", "title": "server data", "section": "guide", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/guides/api-routes", "title": "api routes", "section": "guide", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/guides/middleware", "title": "middleware", "section": "guide", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/guides/forms-and-validation", "title": "forms and validation", "section": "guide", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/guides/authentication", "title": "authentication", "section": "guide", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/guides/authorization", "title": "authorization", "section": "guide", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/guides/security", "title": "security", "section": "guide", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/guides/database", "title": "database", "section": "guide", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/guides/uploads", "title": "uploads", "section": "guide", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/guides/realtime", "title": "realtime", "section": "guide", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/guides/pubsub", "title": "pubsub", "section": "guide", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/guides/queues", "title": "queues", "section": "guide", - "version": "0.6.0", + "version": "0.7.0", "stability": "experimental" }, { "url": "/guides/testing", "title": "testing", "section": "guide", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/guides/workspaces-and-gateway", "title": "workspaces and gateway", "section": "guide", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/guides/deployment", "title": "deployment", "section": "guide", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/guides/configuration-and-profiles", "title": "configuration and profiles", "section": "guide", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/guides/i18n-and-themes", "title": "i18n and themes", "section": "guide", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/guides/mobile", "title": "mobile", "section": "guide", - "version": "0.6.0", + "version": "0.7.0", "stability": "experimental" }, { "url": "/guides/observability", "title": "observability", "section": "guide", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/guides/upgrading", "title": "upgrading", "section": "guide", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/guides/troubleshooting", "title": "troubleshooting", "section": "guide", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/examples", "title": "examples", "section": "portal", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/showcase", "title": "showcase", "section": "portal", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/benchmarks", "title": "benchmarks", "section": "portal", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/roadmap", "title": "roadmap", "section": "portal", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/changelog", "title": "changelog", "section": "portal", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { - "url": "/releases/0.6.0", - "title": "0.6.0", + "url": "/releases/0.7.0", + "title": "0.7.0", "section": "portal", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/security", "title": "security", "section": "portal", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/support", "title": "support", "section": "portal", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/license", "title": "license", "section": "portal", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/search", "title": "search", "section": "portal", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/404", "title": "404", "section": "portal", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/ai", "title": "ai", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/auth", "title": "auth", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/authz", "title": "authz", "section": "package", - "version": "0.6.0", + "version": "0.7.0", + "stability": "preview" + }, + { + "url": "/packages/benchmark", + "title": "benchmark", + "section": "package", + "version": "0.7.0", + "stability": "preview" + }, + { + "url": "/packages/cache", + "title": "cache", + "section": "package", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/captcha", "title": "captcha", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/cli", "title": "cli", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/compiler", "title": "compiler", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/core", "title": "core", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/csr", "title": "csr", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/db", "title": "db", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/dev-server", "title": "dev server", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/dev-toolbar", "title": "dev toolbar", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/encryption", "title": "encryption", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/helpers", "title": "helpers", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/i18n", "title": "i18n", "section": "package", - "version": "0.6.0", + "version": "0.7.0", + "stability": "preview" + }, + { + "url": "/packages/image", + "title": "image", + "section": "package", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/jwt", "title": "jwt", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/mobile", "title": "mobile", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "experimental" }, { "url": "/packages/native", "title": "native", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/oauth", "title": "oauth", "section": "package", - "version": "0.6.0", + "version": "0.7.0", + "stability": "preview" + }, + { + "url": "/packages/observability", + "title": "observability", + "section": "package", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/plugin", "title": "plugin", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/pubsub", "title": "pubsub", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/queue", "title": "queue", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/reactive", "title": "reactive", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/router", "title": "router", "section": "package", - "version": "0.6.0", + "version": "0.7.0", + "stability": "preview" + }, + { + "url": "/packages/security", + "title": "security", + "section": "package", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/ssr", "title": "ssr", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/store", "title": "store", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/styles", "title": "styles", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/syntax", "title": "syntax", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/test", "title": "test", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/tracking", "title": "tracking", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/typecheck", "title": "typecheck", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/ui", "title": "ui", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/uploader", "title": "uploader", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" }, { "url": "/packages/validation", "title": "validation", "section": "package", - "version": "0.6.0", + "version": "0.7.0", "stability": "preview" } ] diff --git a/public/llms-full.txt b/public/llms-full.txt index 4ad3fb29..b4c460de 100644 --- a/public/llms-full.txt +++ b/public/llms-full.txt @@ -1,6 +1,6 @@ -# WRNexusJS documentation 0.6.0 +# WRNexusJS documentation 0.7.0 -Status: Private Developer Preview. This site documents 33 release-aligned packages. +Status: Private Developer Preview. This site documents 38 release-aligned packages. # WrNexus @@ -279,7 +279,7 @@ wrnexus eject # copy a Wire UI component's .wrn into app/compone 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. -Release: WRNexusJS 0.6.0 +Release: WRNexusJS 0.7.0 # Canonical documentation locations @@ -288,7 +288,7 @@ Release: WRNexusJS 0.6.0 # Installed package documentation -The following README files and declarations come from the installed private 0.6.0 release. +The following README files and declarations come from the installed private 0.7.0 release. ## @wrnexus/ai @@ -1206,6 +1206,156 @@ export { type AuthorizationDecision, type DecisionPolicy, type Policy, type Rbac --- +## @wrnexus/benchmark + +Documentation URL: https://wrnexusjs.dev/packages/benchmark + +# @wrnexus/benchmark + +Deterministic benchmark execution, percentiles, baseline comparisons, and regression budgets for builds, SSR, hydration, stores, and application hot paths. + +```ts +import { runBenchmark, assertBenchmarkBudget } from "@wrnexus/benchmark"; +const result = await runBenchmark("render", render, { iterations: 100 }); +assertBenchmarkBudget(result, baseline, { p95Percent: 5 }); +``` + +### Exported TypeScript declarations + +```ts +interface BenchmarkOptions { + iterations?: number; + warmup?: number; + clock?: () => number; + setup?: () => void | Promise; + teardown?: () => void | Promise; +} +interface BenchmarkResult { + name: string; + iterations: number; + totalMs: number; + meanMs: number; + minMs: number; + maxMs: number; + p50Ms: number; + p95Ms: number; + p99Ms: number; + operationsPerSecond: number; + samples: number[]; +} +interface RegressionBudget { + meanPercent?: number; + p95Percent?: number; + maxAbsoluteMs?: number; + minOperationsPerSecond?: number; +} +interface RegressionViolation { + metric: "meanMs" | "p95Ms" | "maxMs" | "operationsPerSecond"; + baseline?: number; + current: number; + limit: number; + message: string; +} +declare function percentile(values: readonly number[], quantile: number): number; +declare function runBenchmark(name: string, operation: () => void | Promise, options?: BenchmarkOptions): Promise; +declare function compareBenchmark(current: BenchmarkResult, baseline: BenchmarkResult | undefined, budget?: RegressionBudget): RegressionViolation[]; +declare function assertBenchmarkBudget(current: BenchmarkResult, baseline: BenchmarkResult | undefined, budget: RegressionBudget): void; + +export { type BenchmarkOptions, type BenchmarkResult, type RegressionBudget, type RegressionViolation, assertBenchmarkBudget, compareBenchmark, percentile, runBenchmark }; +``` + +--- + +## @wrnexus/cache + +Documentation URL: https://wrnexusjs.dev/packages/cache + +# @wrnexus/cache + +Bounded in-memory/tag caching and HTTP response caching for WRNexusJS. Supports request deduplication, tag invalidation, ETags, fresh/stale states, and optional detached stale revalidation. + +```ts +import { TagCache, responseCache } from "@wrnexus/cache"; +const cache = new TagCache({ ttlMs: 60_000, staleWhileRevalidateMs: 300_000 }); +export default responseCache({ cache, tags: ["products"] }); +``` + +### Exported TypeScript declarations + +```ts +import { Context, Middleware } from '@wrnexus/core'; + +interface CacheEntry { + value: V; + createdAt: number; + expiresAt: number; + staleUntil: number; + tags: string[]; +} +type CacheLookup = { + state: "miss"; +} | { + state: "fresh" | "stale"; + entry: CacheEntry; +}; +interface CacheSetOptions { + ttlMs?: number; + staleWhileRevalidateMs?: number; + tags?: string[]; +} +interface TagCacheOptions { + ttlMs?: number; + staleWhileRevalidateMs?: number; + maxEntries?: number; + clock?: () => number; +} +declare class TagCache { + private entries; + private tagIndex; + private pending; + private readonly ttlMs; + private readonly staleMs; + private readonly maxEntries; + private readonly clock; + constructor(options?: TagCacheOptions); + lookup(key: string): CacheLookup; + get(key: string): V | undefined; + set(key: string, value: V, options?: CacheSetOptions): void; + getOrLoad(key: string, loader: () => V | Promise, options?: CacheSetOptions): Promise; + delete(key: string): boolean; + invalidateTag(tag: string): number; + invalidateTags(tags: Iterable): number; + clear(): void; + get size(): number; +} + +interface CachedResponse { + status: number; + statusText: string; + headers: [string, string][]; + body: Uint8Array; + etag: string; +} +interface ResponseCacheOptions extends CacheSetOptions { + cache?: TagCache; + key?: (ctx: Context) => string; + vary?: string[]; + shouldCache?: (ctx: Context, response: Response) => boolean; + /** + * Optional detached revalidator used for stale-while-revalidate. Middleware + * `next()` is deliberately never called after a response has been returned, + * because many middleware pipelines are single-use. + */ + revalidate?: (ctx: Context) => Promise; + onRevalidateError?: (error: unknown, ctx: Context) => void; +} +declare function responseCache(options?: ResponseCacheOptions): Middleware; + +export { type CacheEntry, type CacheLookup, type CacheSetOptions, type CachedResponse, type ResponseCacheOptions, TagCache, type TagCacheOptions, responseCache }; +``` + +--- + ## @wrnexus/captcha Documentation URL: https://wrnexusjs.dev/packages/captcha @@ -2206,6 +2356,17 @@ interface WrnSourceMap { } declare function createWrnSourceMap(source: string, generated: string): WrnSourceMap; +type RouteExecutionKind = "static" | "static-interactive" | "request-ssr" | "authenticated-ssr" | "streaming-ssr" | "dynamic"; +interface RuntimeRequirements { + kind: RouteExecutionKind; + canPrerender: boolean; + needsClientRuntime: boolean; + needsServerRuntime: boolean; + hydrationStrategy: string | null; + reasons: string[]; +} +declare function analyzeRuntimeRequirements(ast: PageAst$1): RuntimeRequirements; + declare class NativeCompileError extends Error { constructor(message: string); } @@ -2270,7 +2431,7 @@ declare function compileWireFile(source: string, filePath?: string): string; /** Richer entry point returning the AST and structured diagnostics. */ declare function compile(source: string, filePath?: string): CompileResult; -export { type CompilationCache, type CompilationCacheEntry, type CompilationCacheOptions, type CompileResult, DependencyGraph, NativeCompileError, compilationKey, compile, compileNativeWireFile, compileWireFile, createCompilationCache, createComponentContract, createWrnSourceMap, generate, generateBrowserModule, generateDeclarations, generateNative, generateServerFunctionsModule, generateStoreBrowserModule, generateStoreModule, generateTargets, resolveWrnImport, resolveWrnImports, rpcManifest }; +export { type CompilationCache, type CompilationCacheEntry, type CompilationCacheOptions, type CompileResult, DependencyGraph, NativeCompileError, type RouteExecutionKind, type RuntimeRequirements, analyzeRuntimeRequirements, compilationKey, compile, compileNativeWireFile, compileWireFile, createCompilationCache, createComponentContract, createWrnSourceMap, generate, generateBrowserModule, generateDeclarations, generateNative, generateServerFunctionsModule, generateStoreBrowserModule, generateStoreModule, generateTargets, resolveWrnImport, resolveWrnImports, rpcManifest }; ``` --- @@ -2746,10 +2907,21 @@ interface LocalStorageSnapshot { getAll(): Record; has(key: string): boolean; } +interface SessionPolicy { + cookieName?: string; + idleTimeoutMs?: number; + absoluteTimeoutMs?: number; + sameSite?: NonNullable; + secure?: boolean; +} +declare function setSessionPolicy(policy: SessionPolicy): void; /** A stored session: its data plus an absolute expiry timestamp (ms). */ interface SessionEntry { data: Record; expiresAt: number; + /** Creation time used for the absolute session lifetime. Optional for old backends. */ + createdAt?: number; + lastAccessAt?: number; } /** * Pluggable session persistence. The default is process-local memory; swap in a @@ -2785,6 +2957,10 @@ interface AsyncSessionBackend { */ declare function loadSession(backend: AsyncSessionBackend, options?: { ttlMs?: number; + absoluteTtlMs?: number; + cookieName?: string; + sameSite?: NonNullable; + secure?: boolean; }): Middleware; /** @@ -2891,27 +3067,26 @@ declare function isSafeIslandName(name: string): boolean; declare function isSafeRequestPath(pathname: string): boolean; /** - * CSRF protection via the double-submit cookie pattern. - * - * The framework sets a readable `wire-csrf` cookie on page loads; the client - * echoes it in an `x-csrf-token` header on unsafe requests (the Wire UI form - * runtime does this automatically). The server checks header === cookie. A - * cross-site attacker can't read the cookie to forge the header, so the request - * is rejected — while same-origin requests pass. + * CSRF protection via the double-submit cookie pattern plus origin/fetch + * metadata validation for unsafe requests. */ declare const CSRF_COOKIE = "wire-csrf"; declare const CSRF_HEADER = "x-csrf-token"; +interface CsrfProtectionOptions { + /** Validate Origin when present. Defaults to true. */ + verifyOrigin?: boolean; + /** Additional exact origins permitted for trusted cross-origin clients. */ + trustedOrigins?: string[]; + /** Reject Sec-Fetch-Site: cross-site on unsafe requests. Defaults to true. */ + verifyFetchMetadata?: boolean; +} /** Ensure the CSRF cookie exists (readable by JS) and return its token. */ declare function csrfToken(ctx: Context): string; -/** - * Verify an unsafe request's CSRF token against the cookie. Safe methods - * (GET/HEAD/OPTIONS) always pass. The token may arrive in the `x-csrf-token` - * header or a `_csrf` field already parsed onto `ctx.locals`. - */ -declare function verifyCsrf(ctx: Context): boolean; -/** Middleware that 403s unsafe requests with a missing/mismatched CSRF token. */ -declare function csrfProtection(): Middleware; +/** Verify an unsafe request's token, origin, and browser fetch metadata. */ +declare function verifyCsrf(ctx: Context, options?: CsrfProtectionOptions): boolean; +/** Middleware that 403s unsafe requests with a missing/mismatched token. */ +declare function csrfProtection(options?: CsrfProtectionOptions): Middleware; /** * Authentication primitives. @@ -3069,6 +3244,8 @@ interface CacheControlOptions { noCache?: boolean; /** stale-while-revalidate window in seconds. */ staleWhileRevalidate?: number; + /** stale-if-error window in seconds. */ + staleIfError?: number; immutable?: boolean; } /** Build a Cache-Control header value from options. */ @@ -3081,16 +3258,37 @@ declare function etag(body: string | ArrayBuffer | Uint8Array, weak?: boolean): declare function notModified(req: Request, tag: string): boolean; /** - * File upload helpers. Bun parses `multipart/form-data` natively via - * `Request.formData()`, yielding web `File` objects; these helpers validate and - * persist them safely (size/type limits, filename sanitisation to prevent path - * traversal). + * File upload helpers. The legacy `saveUpload` keeps the original sanitized + * filename for compatibility. New applications should use `saveUploadSecure`, + * which stores a random name and supports content inspection/scanning hooks. */ declare class UploadError extends Error { - constructor(message: string); + readonly code: string; + constructor(message: string, code?: string); } +interface UploadInspectionResult { + allowed: boolean; + detectedType?: string; + reason?: string; +} +type UploadInspector = (input: { + file: File; + bytes: Uint8Array; + filename: string; +}) => UploadInspectionResult | Promise; +type UploadScanner = (input: { + file: File; + bytes: Uint8Array; + filename: string; +}) => boolean | { + clean: boolean; + reason?: string; +} | Promise; interface SaveUploadOptions { - /** Destination directory. */ + /** Destination directory. Keep this outside the public web root. */ dir: string; /** Reject files larger than this many bytes. */ maxBytes?: number; @@ -3098,22 +3296,48 @@ interface SaveUploadOptions { allowedTypes?: string[]; /** Choose the stored filename. Default: the sanitised original name. */ filename?: (file: File) => string; + /** Content/magic-byte inspection hook. */ + inspect?: UploadInspector; + /** Malware scanning hook. */ + scan?: UploadScanner; + /** Called after validation but before persistence. */ + beforeSave?: (input: { + file: File; + bytes: Uint8Array; + filename: string; + }) => void | Promise; +} +interface SecureUploadOptions extends Omit { + /** Preserve the original sanitized name instead of a random server name. */ + preserveOriginalName?: boolean; + /** Optional custom secure filename generator. */ + filename?: (file: File) => string; + /** Preserve a conservative extension on random filenames. Defaults to true. */ + preserveExtension?: boolean; } interface SavedUpload { path: string; filename: string; size: number; type: string; + detectedType?: string; } /** All `File` values in a parsed form, with their field names. */ -declare function collectUploads(form: FormData): { +declare function collectUploads(form: FormData, options?: { + maxFiles?: number; + maxTotalBytes?: number; +}): { field: string; file: File; }[]; -/** Validate and write one uploaded file to disk. Throws `UploadError` on reject. */ +/** Validate and write one uploaded file using a compatibility filename policy. */ declare function saveUpload(file: File, options: SaveUploadOptions): Promise; +/** Store an upload under a random server-generated name by default. */ +declare function saveUploadSecure(file: File, options: SecureUploadOptions): Promise; /** Strip directory separators, traversal, and control chars from a filename. */ declare function sanitizeFilename(name: string): string; +declare function randomUploadFilename(originalName?: string, preserveExtension?: boolean): string; +declare function secureDownloadHeaders(filename: string, type?: string): Headers; /** * Streaming response primitives. @@ -3235,7 +3459,27 @@ interface RoomAuthInfo { /** The upgrade request's headers (cookies, etc.). */ headers: Headers; } +interface RealtimeSecurityOptions { + /** Maximum inbound or outbound serialized message size. Defaults to 64 KiB. */ + maxMessageBytes?: number; + /** Maximum messages accepted per connection per rolling second. Defaults to 30. */ + maxMessagesPerSecond?: number; + /** Maximum live connections in one room. Defaults to 1,000. */ + maxConnectionsPerRoom?: number; + /** Maximum connections for one authenticated user in a room. Defaults to 10. */ + maxConnectionsPerUser?: number; + /** Reject anonymous connections before onConnect. */ + requireUser?: boolean; + /** Maximum nested JSON depth. Defaults to 32. */ + maxJsonDepth?: number; + /** Optional message schema/authorization predicate. */ + validateMessage?(message: unknown, client: RoomClient): boolean | Promise; + /** Called when a connection is rejected or closed for a policy violation. */ + onViolation?(reason: string, client?: RoomClient): void; +} interface RoomHandlers> { + /** Per-room abuse and payload controls. */ + security?: RealtimeSecurityOptions; /** * Gate the connection BEFORE it is accepted. Return false to reject the * upgrade with 403 (e.g. `authorize: (info) => !!info.user` to require auth). @@ -3277,6 +3521,9 @@ interface RealtimeEnvelope { interface RealtimeBridge { publish(envelope: RealtimeEnvelope): void; } +interface RealtimeRegistryOptions extends RealtimeSecurityOptions { + now?: () => number; +} interface RealtimeRegistry { open(socket: RawSocket, meta: RealtimeConnectMeta): void | Promise; message(socket: RawSocket, raw: string | Uint8Array): void | Promise; @@ -3289,7 +3536,7 @@ interface RealtimeRegistry { size(): number; } /** Create the registry that maps sockets ↔ rooms and drives room handlers. */ -declare function createRealtimeRegistry(): RealtimeRegistry; +declare function createRealtimeRegistry(options?: RealtimeRegistryOptions): RealtimeRegistry; /** * A minimal pub/sub bus (structurally satisfied by `@wrnexus/pubsub`). Used to * bridge realtime broadcasts across processes without a hard dependency. @@ -3386,9 +3633,22 @@ interface TrustedTypesConfig { allowDuplicates?: boolean; } type PermissionsPolicyConfig = Record; +interface RequestLimitsConfig { + maxUrlLength?: number; + maxHeaderCount?: number; + maxHeaderBytes?: number; + maxQueryParameters?: number; + maxBodyBytes?: number; + timeoutMs?: number; + maxConcurrent?: number; + trustedHosts?: string[]; + fetchMetadata?: boolean; +} interface SecurityConfig { /** Set false to skip all framework security headers except explicitly enabled CORS. */ headers?: boolean; + /** Built-in request size, timeout, concurrency, host, and Fetch Metadata limits. */ + requestLimits?: RequestLimitsConfig; /** * Trust `X-Forwarded-Proto` / `X-Forwarded-Host` when building `ctx.url` — set * this when the app runs behind a TLS-terminating reverse proxy (nginx, the @@ -3407,6 +3667,12 @@ interface SecurityConfig { frameOptions?: false | "DENY" | "SAMEORIGIN"; /** Defaults to "strict-origin-when-cross-origin". */ referrerPolicy?: false | string; + /** Defaults to "same-origin". */ + crossOriginResourcePolicy?: false | "same-origin" | "same-site" | "cross-origin"; + /** Isolate the origin in its own agent cluster. Defaults to true. */ + originAgentCluster?: boolean; + /** Disable speculative DNS prefetching. Defaults to true. */ + disableDnsPrefetch?: boolean; /** Defaults to a restrictive browser capability policy. */ permissionsPolicy?: false | PermissionsPolicyConfig; /** Extra static headers applied last. */ @@ -3510,6 +3776,20 @@ interface PerformanceBudgets { imageBytes?: number; hydrationMs?: number; serverRenderMs?: number; + /** Largest Contentful Paint in milliseconds. Recommended <= 2500. */ + lcpMs?: number; + /** Interaction to Next Paint in milliseconds. Recommended <= 200. */ + inpMs?: number; + /** Cumulative Layout Shift score. Recommended <= 0.1. */ + cls?: number; + /** Time to First Byte in milliseconds. */ + ttfbMs?: number; + /** Longest main-thread task in milliseconds. Recommended <= 50. */ + longTaskMs?: number; + /** Number of client hydration boundaries on the route. */ + hydratedComponents?: number; + /** Total request count for the initial navigation. */ + requests?: number; } interface PerformanceMeasurement { routeJsBytes?: number; @@ -3518,6 +3798,13 @@ interface PerformanceMeasurement { imageBytes?: number; hydrationMs?: number; serverRenderMs?: number; + lcpMs?: number; + inpMs?: number; + cls?: number; + ttfbMs?: number; + longTaskMs?: number; + hydratedComponents?: number; + requests?: number; } interface BudgetViolation { metric: keyof PerformanceBudgets; @@ -3525,6 +3812,7 @@ interface BudgetViolation { actual: number; overBy: number; } +declare const recommendedWebBudgets: Readonly; declare function checkPerformanceBudgets(budgets: PerformanceBudgets, measurement: PerformanceMeasurement): BudgetViolation[]; interface ProblemDetails { @@ -3601,7 +3889,7 @@ declare function withIdempotency(store: IdempotencyStore, key: string, exe replayed: boolean; }>; -export { type ActionDefinition, ApplicationLifecycle, type AsyncSessionBackend, type Bucket, type BudgetViolation, CSRF_COOKIE, CSRF_HEADER, type CacheControlOptions, type CachePolicy, type ContentSecurityPolicyConfig, type Context, type CookieOptions, type CookieStore, type CorsConfig, type CorsOrigin, type CspDirectiveValue, type DefinedAction, type DefinedEndpoint, type DefinedLoader, type EndpointDefinition, EndpointError, type EndpointErrorBody, type FeatureFlags, type FeatureRule, type FeatureValue, type HealthCheck, type HealthCheckResult, HealthRegistry, type HstsConfig, type IdempotencyRecord, type IdempotencyStore, type LifecycleHandler, type LifecyclePhase, type LoaderDefinition, type LocalStorageSnapshot, type Middleware, type Mode, type Next, type PageComponent, type PageMeta, type PerformanceBudgets, type PerformanceMeasurement, type PermissionsPolicyConfig, type ProblemDetails, type ProblemDetailsInput, type RateLimitOptions, type RateLimitStore, type RawSocket, type RealtimeBridge, type RealtimeBus, type RealtimeConnectMeta, type RealtimeEnvelope, type RealtimeHandler, type RealtimeRegistry, type RealtimeSocket, type RequestLoggerOptions, type RequestRecord, type RequireAuthOptions, type Room, type RoomAuthInfo, type RoomClient, type RoomDefinition, type RoomHandlers, type RpcClientOptions, SESSION_USER_KEY, type SaveUploadOptions, type SavedUpload, type SchemaLike, type SecurityConfig, type SeoConfig, type ServerSentEvent, ServiceContainer, type ServiceToken, type SessionBackend, type SessionEntry, type SessionStore, type Span, type SpanRecord, type StreamResponseInit, type TFunction, TTLCache, type Target, type Tenant, type TenantMiddlewareOptions, type TenantResolver, type Tracer, type TrustedTypesConfig, UploadError, bridgeRealtime, cacheControl, checkPerformanceBudgets, collectUploads, createContext, createCorsPreflightResponse, createRealtimeRegistry, createRpcClient, createTracer, csrfProtection, csrfToken, dedupe, defaultKey, defineAction, defineEndpoint, defineFeatureFlags, defineLoader, defineRoom, escapeHtml, etag, getUser, hashPassword, isRoomDefinition, isSafeIslandName, isSafeRequestPath, isWebSocketOriginAllowed, loadSession, logIn, logOut, memoryIdempotencyStore, notModified, peerKey, problem, proxyKey, rateLimit, renderDevError, renderError, renderNotFound, renderProdError, renderStatusPage, requestId, requestLogger, requireAuth, requireTenant, resolveRequestUrl, sanitizeFilename, saveUpload, serviceToken, sessionAuth, setSessionBackend, sse, streamResponse, tenantFromSubdomain, tenantMiddleware, tenantScope, tracingMiddleware, verifyCsrf, verifyPassword, withCacheControl, withContextHeaders, withIdempotency, withSecurityHeaders, withSpan }; +export { type ActionDefinition, ApplicationLifecycle, type AsyncSessionBackend, type Bucket, type BudgetViolation, CSRF_COOKIE, CSRF_HEADER, type CacheControlOptions, type CachePolicy, type ContentSecurityPolicyConfig, type Context, type CookieOptions, type CookieStore, type CorsConfig, type CorsOrigin, type CspDirectiveValue, type CsrfProtectionOptions, type DefinedAction, type DefinedEndpoint, type DefinedLoader, type EndpointDefinition, EndpointError, type EndpointErrorBody, type FeatureFlags, type FeatureRule, type FeatureValue, type HealthCheck, type HealthCheckResult, HealthRegistry, type HstsConfig, type IdempotencyRecord, type IdempotencyStore, type LifecycleHandler, type LifecyclePhase, type LoaderDefinition, type LocalStorageSnapshot, type Middleware, type Mode, type Next, type PageComponent, type PageMeta, type PerformanceBudgets, type PerformanceMeasurement, type PermissionsPolicyConfig, type ProblemDetails, type ProblemDetailsInput, type RateLimitOptions, type RateLimitStore, type RawSocket, type RealtimeBridge, type RealtimeBus, type RealtimeConnectMeta, type RealtimeEnvelope, type RealtimeHandler, type RealtimeRegistry, type RealtimeRegistryOptions, type RealtimeSecurityOptions, type RealtimeSocket, type RequestLimitsConfig, type RequestLoggerOptions, type RequestRecord, type RequireAuthOptions, type Room, type RoomAuthInfo, type RoomClient, type RoomDefinition, type RoomHandlers, type RpcClientOptions, SESSION_USER_KEY, type SaveUploadOptions, type SavedUpload, type SchemaLike, type SecureUploadOptions, type SecurityConfig, type SeoConfig, type ServerSentEvent, ServiceContainer, type ServiceToken, type SessionBackend, type SessionEntry, type SessionPolicy, type SessionStore, type Span, type SpanRecord, type StreamResponseInit, type TFunction, TTLCache, type Target, type Tenant, type TenantMiddlewareOptions, type TenantResolver, type Tracer, type TrustedTypesConfig, UploadError, type UploadInspectionResult, type UploadInspector, type UploadScanner, bridgeRealtime, cacheControl, checkPerformanceBudgets, collectUploads, createContext, createCorsPreflightResponse, createRealtimeRegistry, createRpcClient, createTracer, csrfProtection, csrfToken, dedupe, defaultKey, defineAction, defineEndpoint, defineFeatureFlags, defineLoader, defineRoom, escapeHtml, etag, getUser, hashPassword, isRoomDefinition, isSafeIslandName, isSafeRequestPath, isWebSocketOriginAllowed, loadSession, logIn, logOut, memoryIdempotencyStore, notModified, peerKey, problem, proxyKey, randomUploadFilename, rateLimit, recommendedWebBudgets, renderDevError, renderError, renderNotFound, renderProdError, renderStatusPage, requestId, requestLogger, requireAuth, requireTenant, resolveRequestUrl, sanitizeFilename, saveUpload, saveUploadSecure, secureDownloadHeaders, serviceToken, sessionAuth, setSessionBackend, setSessionPolicy, sse, streamResponse, tenantFromSubdomain, tenantMiddleware, tenantScope, tracingMiddleware, verifyCsrf, verifyPassword, withCacheControl, withContextHeaders, withIdempotency, withSecurityHeaders, withSpan }; ``` --- @@ -4359,7 +4647,34 @@ declare function tenantScope(sql: string, tenantId: unknown, dialect: Dialect, e }; declare function softDeleteClause(column?: string): string; -export { type CursorPage, type CursorPageOptions, Db, Dialect, type Migration, Model, type ModelRef, type PageOptions, type Paginated, type QueryDef, type QueryKind, type RelationOptions, Row, appliedMigrations, applyMigrations, closeDatabases, cursorPaginate, databaseNames, generateQueriesFile, getDb, hasDb, loadMigrations, loadRelated, migrate, optimisticUpdate, paginate, parseMigration, parseQueries, registerDb, registerLazyDb, rollback, scaffoldMigration, setDb, softDeleteClause, status, tenantScope }; +interface QueryRecord { + sql: string; + paramsCount: number; + durationMs: number; + rowCount?: number; + operation: "all" | "one" | "exec"; + duplicateCount: number; +} +interface QueryIssue { + code: string; + severity: "error" | "warning" | "info"; + message: string; + sql: string; +} +interface QueryPolicy { + slowQueryMs?: number; + timeoutMs?: number; + maxRows?: number; + duplicateWarningCount?: number; + warnSelectStar?: boolean; + warnUnboundedSelect?: boolean; + onQuery?: (record: QueryRecord) => void | Promise; + onIssue?: (issue: QueryIssue) => void | Promise; +} +declare function instrumentDb(db: Db, policy?: QueryPolicy): Db; +declare function queryOperation(sql: string): string; + +export { type CursorPage, type CursorPageOptions, Db, Dialect, type Migration, Model, type ModelRef, type PageOptions, type Paginated, type QueryDef, type QueryIssue, type QueryKind, type QueryPolicy, type QueryRecord, type RelationOptions, Row, appliedMigrations, applyMigrations, closeDatabases, cursorPaginate, databaseNames, generateQueriesFile, getDb, hasDb, instrumentDb, loadMigrations, loadRelated, migrate, optimisticUpdate, paginate, parseMigration, parseQueries, queryOperation, registerDb, registerLazyDb, rollback, scaffoldMigration, setDb, softDeleteClause, status, tenantScope }; ``` --- @@ -4786,7 +5101,7 @@ interface RuntimeDeps { clientRuntimes?: ClientRuntimeDefinition[]; /** Page navigation strategy. `document` disables same-origin link interception. */ navigation?: { - mode?: "client" | "document"; + mode?: "auto" | "client" | "document"; }; /** Raw HTML appended to every page head (e.g. CDN framework links). */ head?: string; @@ -4891,6 +5206,21 @@ interface GatewayApp { auth?: GatewayAuth; } /** Gateway-wide security controls, enforced for every app. */ +interface GatewayRequestLimits { + maxUrlLength?: number; + maxHeaderCount?: number; + maxHeaderBytes?: number; + maxQueryParameters?: number; + maxBodyBytes?: number; + timeoutMs?: number; + maxConcurrent?: number; + fetchMetadata?: boolean; +} +interface GatewayWebSocketSecurity { + maxMessageBytes?: number; + maxQueuedMessages?: number; + allowedOrigins?: string[]; +} interface GatewaySecurity { /** Reject requests whose Host matches no app (404) instead of routing to the first. */ trustedHostsOnly?: boolean; @@ -4905,6 +5235,10 @@ interface GatewaySecurity { forwardedHeaders?: boolean; /** Log each request (host → app, method, path, status). */ accessLog?: boolean; + /** URL, header, body, timeout, concurrency, and Fetch Metadata limits. */ + requestLimits?: GatewayRequestLimits; + /** WebSocket origin, payload, and pre-connect queue limits. */ + websocket?: GatewayWebSocketSecurity; } interface GatewayOptions { port?: number; @@ -5762,6 +6096,95 @@ export { I18N_JS_HREF, I18N_RUNTIME, type I18nConfig, LANG_COOKIE, type LocaleFo --- +## @wrnexus/image + +Documentation URL: https://wrnexusjs.dev/packages/image + +# @wrnexus/image + +Responsive image attribute generation with secure remote-host policies and audits for dimensions, LCP loading, source oversizing, transfer size, and modern formats. + +```ts +import { createResponsiveImage } from "@wrnexus/image"; +const attrs = createResponsiveImage({ + src: "/hero.jpg", + alt: "Hero", + width: 1600, + height: 900, + widths: [480, 960, 1600], + sizes: "100vw", + format: "avif", +}); +``` + +### Exported TypeScript declarations + +```ts +type ImageFormat = "avif" | "webp" | "jpeg" | "png" | "original"; +interface ImageLoaderInput { + src: string; + width: number; + quality?: number; + format?: ImageFormat; +} +type ImageLoader = (input: ImageLoaderInput) => string; +interface ImagePolicy { + remoteHosts?: string[]; + allowedProtocols?: string[]; + maxWidth?: number; + maxQuality?: number; +} +interface ResponsiveImageOptions extends ImagePolicy { + src: string; + alt: string; + width: number; + height: number; + widths?: number[]; + sizes?: string; + quality?: number; + format?: ImageFormat; + loading?: "eager" | "lazy"; + fetchPriority?: "high" | "low" | "auto"; + decoding?: "async" | "sync" | "auto"; + loader?: ImageLoader; + class?: string; +} +interface ResponsiveImageAttributes { + src: string; + srcset?: string; + sizes?: string; + alt: string; + width: string; + height: string; + loading: "eager" | "lazy"; + decoding: "async" | "sync" | "auto"; + fetchpriority?: "high" | "low" | "auto"; + class?: string; +} +interface ImageAuditInput { + src: string; + width?: number; + height?: number; + renderedWidth?: number; + bytes?: number; + loading?: string; + fetchPriority?: string; + isLcp?: boolean; +} +interface ImageAuditIssue { + code: string; + severity: "error" | "warning" | "info"; + message: string; +} +declare const defaultImageLoader: ImageLoader; +declare function createResponsiveImage(options: ResponsiveImageOptions): ResponsiveImageAttributes; +declare function auditImage(input: ImageAuditInput): ImageAuditIssue[]; + +export { type ImageAuditInput, type ImageAuditIssue, type ImageFormat, type ImageLoader, type ImageLoaderInput, type ImagePolicy, type ResponsiveImageAttributes, type ResponsiveImageOptions, auditImage, createResponsiveImage, defaultImageLoader }; +``` + +--- + ## @wrnexus/jwt Documentation URL: https://wrnexusjs.dev/packages/jwt @@ -6633,6 +7056,82 @@ export { type CompleteAuthOptions, type OAuthProfile, type OAuthProvider, type O --- +## @wrnexus/observability + +Documentation URL: https://wrnexusjs.dev/packages/observability + +# @wrnexus/observability + +Privacy-conscious counters, gauges, histograms, HTTP middleware, Web Vitals ingestion, browser collection, and exporter adapters. Request bodies and user identifiers are not collected by default. + +```ts +export default { + observability: { enabled: true, serverTiming: true, sampleRate: 0.1, webVitals: true }, +}; +``` + +### Exported TypeScript declarations + +```ts +import { Context, Middleware } from '@wrnexus/core'; +export { WebVitalsClientOptions, webVitalsClient } from './client.js'; + +type MetricLabels = Record; +interface MetricPoint { + name: string; + type: "counter" | "gauge" | "histogram"; + value: number; + count?: number; + sum?: number; + min?: number; + max?: number; + labels: MetricLabels; + timestamp: number; +} +declare class MetricsRegistry { + private readonly clock; + private points; + constructor(clock?: () => number); + increment(name: string, value?: number, labels?: MetricLabels): void; + gauge(name: string, value: number, labels?: MetricLabels): void; + observe(name: string, value: number, labels?: MetricLabels): void; + snapshot(): MetricPoint[]; + reset(): void; +} + +interface MetricsMiddlewareOptions { + registry?: MetricsRegistry; + routeLabel?: (ctx: Context) => string; + includePath?: boolean; +} +declare function metricsMiddleware(options?: MetricsMiddlewareOptions): Middleware; +interface WebVitalRecord { + name: "LCP" | "INP" | "CLS" | "FCP" | "TTFB"; + value: number; + rating?: "good" | "needs-improvement" | "poor"; + route?: string; + navigationType?: string; +} +interface WebVitalsHandlerOptions { + registry?: MetricsRegistry; + onRecord?: (record: WebVitalRecord, request: Request) => void | Promise; + maxBodyBytes?: number; +} +declare function createWebVitalsHandler(options?: WebVitalsHandlerOptions): (request: Request) => Promise; +interface MetricExporter { + export(points: readonly MetricPoint[]): Promise | void; +} +declare function createHttpMetricExporter(endpoint: string, options?: { + headers?: HeadersInit; + fetch?: typeof fetch; +}): MetricExporter; +declare const defaultMetrics: MetricsRegistry; + +export { type MetricExporter, type MetricLabels, type MetricPoint, type MetricsMiddlewareOptions, MetricsRegistry, type WebVitalRecord, type WebVitalsHandlerOptions, createHttpMetricExporter, createWebVitalsHandler, defaultMetrics, metricsMiddleware }; +``` + +--- + ## @wrnexus/plugin Documentation URL: https://wrnexusjs.dev/packages/plugin @@ -7655,6 +8154,62 @@ export { type ComponentRef, type ExternalRouteDefinition, type NamedRoute, type --- +## @wrnexus/security + +Documentation URL: https://wrnexusjs.dev/packages/security + +# @wrnexus/security + +Secure-by-default utilities for WRNexusJS: bounded HTML-safe serialization, prototype-pollution rejection, URL policy, secure cookies, request hardening, security presets, and SSRF-safe remote fetches. + +```ts +import { safeFetch, securityPreset, setSecureCookie } from "@wrnexus/security"; + +export default { security: securityPreset("strict") }; +const response = await safeFetch(remoteUrl, { allowedHosts: ["api.example.com"] }); +setSecureCookie(ctx, "__Host-session", sessionId); +``` + +### Exported TypeScript declarations + +```ts +export { S as SafeFetchOptions, a as SafeUrlPolicy, i as isPrivateAddress, b as isSafeUrl, s as safeFetch, c as sanitizeUrl, v as validateUrl } from './fetch-DNyX0J_D.js'; +export { SecureSerializeOptions, secureJsonStringify, serializeForHtml } from './serialization.js'; +import { CookieOptions, Context, RequestLimitsConfig, Middleware, SecurityConfig } from '@wrnexus/core'; +export { TrustedHtmlPolicy, TrustedHtmlValue, createTrustedHtml, isTrustedHtml, unwrapTrustedHtml } from './trusted-html.js'; + +declare class SecurityError extends Error { + readonly code: string; + readonly status: number; + constructor(code: string, message: string, status?: number, options?: ErrorOptions); +} + +interface SafeObjectOptions { + maxDepth?: number; + maxKeys?: number; + allowInstances?: boolean; +} +declare function isDangerousObjectKey(key: string): boolean; +declare function assertSafeObject(value: unknown, options?: SafeObjectOptions): void; +declare function safeMerge>(target: T, ...sources: Array | undefined | null>): T; + +interface SecureCookieOptions extends CookieOptions { + hostOnly?: boolean; +} +declare function secureCookieOptions(ctx: Pick, options?: SecureCookieOptions): CookieOptions; +declare function setSecureCookie(ctx: Pick, name: string, value: string, options?: SecureCookieOptions): void; + +type RequestHardeningOptions = RequestLimitsConfig; +declare function requestHardening(options?: RequestHardeningOptions): Middleware; + +type SecurityPreset = "balanced" | "strict" | "api"; +declare function securityPreset(preset?: SecurityPreset): SecurityConfig; + +export { type RequestHardeningOptions, type SafeObjectOptions, type SecureCookieOptions, SecurityError, type SecurityPreset, assertSafeObject, isDangerousObjectKey, requestHardening, safeMerge, secureCookieOptions, securityPreset, setSecureCookie }; +``` + +--- + ## @wrnexus/ssr Documentation URL: https://wrnexusjs.dev/packages/ssr @@ -8516,6 +9071,10 @@ interface ObservabilityConfig { sampleRate?: number; exporter?: "console" | "otlp" | "none"; endpoint?: string; + /** Collect privacy-preserving Core Web Vitals from real browsers. */ + webVitals?: boolean; + /** Same-origin endpoint receiving Web Vitals. */ + webVitalsEndpoint?: string; } interface TenancyConfig { mode?: "subdomain" | "domain" | "path" | "custom"; @@ -8532,11 +9091,13 @@ interface BuildConfig { } interface NavigationConfig { /** - * `client` progressively enhances same-origin links with in-place page swaps. + * `auto` (default) omits navigation JavaScript from fully static pages and + * progressively enhances routes that already need browser behavior. + * `client` always enhances same-origin links with in-place page swaps. * `document` keeps normal browser navigation so every route performs a fresh * server-rendered document request. */ - mode?: "client" | "document"; + mode?: "auto" | "client" | "document"; } interface ImportsConfig { mode?: "legacy" | "compatible" | "explicit"; @@ -8736,6 +9297,14 @@ interface ContrastResult { level: "fail" | "aa-large" | "aa" | "aaa"; } declare function contrast(foreground: string, background: string): ContrastResult | null; +interface CssPerformanceAuditIssue { + code: string; + severity: "error" | "warning" | "info"; + message: string; + line?: number; +} +/** Detect CSS patterns that commonly increase style, paint, or compositing cost. */ +declare function auditCssPerformance(source: string): CssPerformanceAuditIssue[]; /** * @wrnexus/styles — global stylesheet pipeline + app config. @@ -8755,7 +9324,7 @@ declare function contrast(foreground: string, background: string): ContrastResul */ declare function renderStyles(ctx: StyleProcessContext, styles?: StylesConfig): Promise; -export { ACCENT_COOKIE, type AppConfig, type BuildConfig, type ConfigIssue, type ContrastResult, type CssTokenAudit, type CustomThemePalette, DEFAULT_THEMES, type DevToolbarConfig, type ExperimentalConfig, type ExplainedConfig, type FontConfig, type FontDisplay, type GoogleFont, type LocalFontFace, type MobileConfig, type Mode, type NavigationConfig, type ObservabilityConfig, type PerformanceConfig, type PwaConfig, type ResolvedTheme, type StyleProcessContext, type StyleSource, type StylesConfig, type Mode as StylesMode, THEME_COOKIE, THEME_CSS_HREF, THEME_JS_HREF, THEME_PALETTES, THEME_PALETTE_NAMES, type TenancyConfig, type ThemeAccentConfig, type ThemeConfig, type ThemePaletteName, type ThemeTokens, auditWireTokens, bundleCss, contrast, defineConfig, explainAppConfig, findStyleEntry, fontCspSources, headToString, loadAppConfig, loadEnv, loadRawConfig, normalizeStyleSources, renderFontHead, renderProductionFontHead, renderStyles, renderThemeCss, renderThemeRuntime, resolveAccentName, resolveProfile, resolveThemeConfig, resolveThemeName, tailwindSourceDirectives, validateAppConfig }; +export { ACCENT_COOKIE, type AppConfig, type BuildConfig, type ConfigIssue, type ContrastResult, type CssPerformanceAuditIssue, type CssTokenAudit, type CustomThemePalette, DEFAULT_THEMES, type DevToolbarConfig, type ExperimentalConfig, type ExplainedConfig, type FontConfig, type FontDisplay, type GoogleFont, type LocalFontFace, type MobileConfig, type Mode, type NavigationConfig, type ObservabilityConfig, type PerformanceConfig, type PwaConfig, type ResolvedTheme, type StyleProcessContext, type StyleSource, type StylesConfig, type Mode as StylesMode, THEME_COOKIE, THEME_CSS_HREF, THEME_JS_HREF, THEME_PALETTES, THEME_PALETTE_NAMES, type TenancyConfig, type ThemeAccentConfig, type ThemeConfig, type ThemePaletteName, type ThemeTokens, auditCssPerformance, auditWireTokens, bundleCss, contrast, defineConfig, explainAppConfig, findStyleEntry, fontCspSources, headToString, loadAppConfig, loadEnv, loadRawConfig, normalizeStyleSources, renderFontHead, renderProductionFontHead, renderStyles, renderThemeCss, renderThemeRuntime, resolveAccentName, resolveProfile, resolveThemeConfig, resolveThemeName, tailwindSourceDirectives, validateAppConfig }; ``` --- diff --git a/public/llms.txt b/public/llms.txt index 3b1012de..7e54bd1c 100644 --- a/public/llms.txt +++ b/public/llms.txt @@ -1,6 +1,6 @@ -# WRNexusJS documentation 0.6.0 +# WRNexusJS documentation 0.7.0 -Status: Private Developer Preview. This site documents 33 release-aligned packages. +Status: Private Developer Preview. This site documents 38 release-aligned packages. # WrNexus @@ -289,205 +289,235 @@ wrnexus eject # copy a Wire UI component's .wrn into app/compone ## @wrnexus/ai -- @wrnexus/ai 0.6.0 +- @wrnexus/ai 0.7.0 - Documentation: https://wrnexusjs.dev/packages/ai - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/auth -- @wrnexus/auth 0.6.0 +- @wrnexus/auth 0.7.0 - Documentation: https://wrnexusjs.dev/packages/auth - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/authz -- @wrnexus/authz 0.6.0 +- @wrnexus/authz 0.7.0 - Documentation: https://wrnexusjs.dev/packages/authz - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt +## @wrnexus/benchmark + +- @wrnexus/benchmark 0.7.0 +- Documentation: https://wrnexusjs.dev/packages/benchmark +- README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt + +## @wrnexus/cache + +- @wrnexus/cache 0.7.0 +- Documentation: https://wrnexusjs.dev/packages/cache +- README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt + ## @wrnexus/captcha -- @wrnexus/captcha 0.6.0 +- @wrnexus/captcha 0.7.0 - Documentation: https://wrnexusjs.dev/packages/captcha - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/cli -- @wrnexus/cli 0.6.0 +- @wrnexus/cli 0.7.0 - Documentation: https://wrnexusjs.dev/packages/cli - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/compiler -- @wrnexus/compiler 0.6.0 +- @wrnexus/compiler 0.7.0 - Documentation: https://wrnexusjs.dev/packages/compiler - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/core -- @wrnexus/core 0.6.0 +- @wrnexus/core 0.7.0 - Documentation: https://wrnexusjs.dev/packages/core - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/csr -- @wrnexus/csr 0.6.0 +- @wrnexus/csr 0.7.0 - Documentation: https://wrnexusjs.dev/packages/csr - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/db -- @wrnexus/db 0.6.0 +- @wrnexus/db 0.7.0 - 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.6.0 +- @wrnexus/dev-server 0.7.0 - 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.6.0 +- @wrnexus/dev-toolbar 0.7.0 - Documentation: https://wrnexusjs.dev/packages/dev-toolbar - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/encryption -- @wrnexus/encryption 0.6.0 +- @wrnexus/encryption 0.7.0 - Documentation: https://wrnexusjs.dev/packages/encryption - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/helpers -- @wrnexus/helpers 0.6.0 +- @wrnexus/helpers 0.7.0 - Documentation: https://wrnexusjs.dev/packages/helpers - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/i18n -- @wrnexus/i18n 0.6.0 +- @wrnexus/i18n 0.7.0 - Documentation: https://wrnexusjs.dev/packages/i18n - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt +## @wrnexus/image + +- @wrnexus/image 0.7.0 +- Documentation: https://wrnexusjs.dev/packages/image +- README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt + ## @wrnexus/jwt -- @wrnexus/jwt 0.6.0 +- @wrnexus/jwt 0.7.0 - Documentation: https://wrnexusjs.dev/packages/jwt - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/mobile -- @wrnexus/mobile 0.6.0 +- @wrnexus/mobile 0.7.0 - Documentation: https://wrnexusjs.dev/packages/mobile - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/native -- @wrnexus/native 0.6.0 +- @wrnexus/native 0.7.0 - Documentation: https://wrnexusjs.dev/packages/native - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/oauth -- @wrnexus/oauth 0.6.0 +- @wrnexus/oauth 0.7.0 - Documentation: https://wrnexusjs.dev/packages/oauth - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt +## @wrnexus/observability + +- @wrnexus/observability 0.7.0 +- Documentation: https://wrnexusjs.dev/packages/observability +- README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt + ## @wrnexus/plugin -- @wrnexus/plugin 0.6.0 +- @wrnexus/plugin 0.7.0 - Documentation: https://wrnexusjs.dev/packages/plugin - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/pubsub -- @wrnexus/pubsub 0.6.0 +- @wrnexus/pubsub 0.7.0 - Documentation: https://wrnexusjs.dev/packages/pubsub - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/queue -- @wrnexus/queue 0.6.0 +- @wrnexus/queue 0.7.0 - Documentation: https://wrnexusjs.dev/packages/queue - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/reactive -- @wrnexus/reactive 0.6.0 +- @wrnexus/reactive 0.7.0 - Documentation: https://wrnexusjs.dev/packages/reactive - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/router -- @wrnexus/router 0.6.0 +- @wrnexus/router 0.7.0 - Documentation: https://wrnexusjs.dev/packages/router - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt +## @wrnexus/security + +- @wrnexus/security 0.7.0 +- Documentation: https://wrnexusjs.dev/packages/security +- README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt + ## @wrnexus/ssr -- @wrnexus/ssr 0.6.0 +- @wrnexus/ssr 0.7.0 - Documentation: https://wrnexusjs.dev/packages/ssr - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/store -- @wrnexus/store 0.6.0 +- @wrnexus/store 0.7.0 - Documentation: https://wrnexusjs.dev/packages/store - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/styles -- @wrnexus/styles 0.6.0 +- @wrnexus/styles 0.7.0 - Documentation: https://wrnexusjs.dev/packages/styles - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/syntax -- @wrnexus/syntax 0.6.0 +- @wrnexus/syntax 0.7.0 - Documentation: https://wrnexusjs.dev/packages/syntax - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/test -- @wrnexus/test 0.6.0 +- @wrnexus/test 0.7.0 - Documentation: https://wrnexusjs.dev/packages/test - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/tracking -- @wrnexus/tracking 0.6.0 +- @wrnexus/tracking 0.7.0 - Documentation: https://wrnexusjs.dev/packages/tracking - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/typecheck -- @wrnexus/typecheck 0.6.0 +- @wrnexus/typecheck 0.7.0 - Documentation: https://wrnexusjs.dev/packages/typecheck - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/ui -- @wrnexus/ui 0.6.0 +- @wrnexus/ui 0.7.0 - Documentation: https://wrnexusjs.dev/packages/ui - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/uploader -- @wrnexus/uploader 0.6.0 +- @wrnexus/uploader 0.7.0 - Documentation: https://wrnexusjs.dev/packages/uploader - README and complete exported TypeScript API: https://wrnexusjs.dev/llms-full.txt ## @wrnexus/validation -- @wrnexus/validation 0.6.0 +- @wrnexus/validation 0.7.0 - 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.6.0 release contains 108 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. +The installed @wrnexus/ui 0.7.0 release contains 108 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/ diff --git a/public/sitemap.xml b/public/sitemap.xml index eae5d14f..9af248ec 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -1,2 +1,2 @@ -https://wrnexusjs.dev/https://wrnexusjs.dev/accesshttps://wrnexusjs.dev/getting-startedhttps://wrnexusjs.dev/tutorialhttps://wrnexusjs.dev/architecturehttps://wrnexusjs.dev/languagehttps://wrnexusjs.dev/packageshttps://wrnexusjs.dev/guides/project-structurehttps://wrnexusjs.dev/guides/routinghttps://wrnexusjs.dev/guides/pages-and-componentshttps://wrnexusjs.dev/guides/server-datahttps://wrnexusjs.dev/guides/api-routeshttps://wrnexusjs.dev/guides/middlewarehttps://wrnexusjs.dev/guides/forms-and-validationhttps://wrnexusjs.dev/guides/authenticationhttps://wrnexusjs.dev/guides/authorizationhttps://wrnexusjs.dev/guides/securityhttps://wrnexusjs.dev/guides/databasehttps://wrnexusjs.dev/guides/uploadshttps://wrnexusjs.dev/guides/realtimehttps://wrnexusjs.dev/guides/pubsubhttps://wrnexusjs.dev/guides/queueshttps://wrnexusjs.dev/guides/testinghttps://wrnexusjs.dev/guides/workspaces-and-gatewayhttps://wrnexusjs.dev/guides/deploymenthttps://wrnexusjs.dev/guides/configuration-and-profileshttps://wrnexusjs.dev/guides/i18n-and-themeshttps://wrnexusjs.dev/guides/mobilehttps://wrnexusjs.dev/guides/observabilityhttps://wrnexusjs.dev/guides/upgradinghttps://wrnexusjs.dev/guides/troubleshootinghttps://wrnexusjs.dev/exampleshttps://wrnexusjs.dev/showcasehttps://wrnexusjs.dev/benchmarkshttps://wrnexusjs.dev/roadmaphttps://wrnexusjs.dev/changeloghttps://wrnexusjs.dev/releases/0.6.0https://wrnexusjs.dev/securityhttps://wrnexusjs.dev/supporthttps://wrnexusjs.dev/licensehttps://wrnexusjs.dev/searchhttps://wrnexusjs.dev/404https://wrnexusjs.dev/packages/aihttps://wrnexusjs.dev/packages/authhttps://wrnexusjs.dev/packages/authzhttps://wrnexusjs.dev/packages/captchahttps://wrnexusjs.dev/packages/clihttps://wrnexusjs.dev/packages/compilerhttps://wrnexusjs.dev/packages/corehttps://wrnexusjs.dev/packages/csrhttps://wrnexusjs.dev/packages/dbhttps://wrnexusjs.dev/packages/dev-serverhttps://wrnexusjs.dev/packages/dev-toolbarhttps://wrnexusjs.dev/packages/encryptionhttps://wrnexusjs.dev/packages/helpershttps://wrnexusjs.dev/packages/i18nhttps://wrnexusjs.dev/packages/jwthttps://wrnexusjs.dev/packages/mobilehttps://wrnexusjs.dev/packages/nativehttps://wrnexusjs.dev/packages/oauthhttps://wrnexusjs.dev/packages/pluginhttps://wrnexusjs.dev/packages/pubsubhttps://wrnexusjs.dev/packages/queuehttps://wrnexusjs.dev/packages/reactivehttps://wrnexusjs.dev/packages/routerhttps://wrnexusjs.dev/packages/ssrhttps://wrnexusjs.dev/packages/storehttps://wrnexusjs.dev/packages/styleshttps://wrnexusjs.dev/packages/syntaxhttps://wrnexusjs.dev/packages/testhttps://wrnexusjs.dev/packages/trackinghttps://wrnexusjs.dev/packages/typecheckhttps://wrnexusjs.dev/packages/uihttps://wrnexusjs.dev/packages/uploaderhttps://wrnexusjs.dev/packages/validation +https://wrnexusjs.dev/https://wrnexusjs.dev/accesshttps://wrnexusjs.dev/getting-startedhttps://wrnexusjs.dev/tutorialhttps://wrnexusjs.dev/architecturehttps://wrnexusjs.dev/languagehttps://wrnexusjs.dev/packageshttps://wrnexusjs.dev/guides/project-structurehttps://wrnexusjs.dev/guides/routinghttps://wrnexusjs.dev/guides/pages-and-componentshttps://wrnexusjs.dev/guides/server-datahttps://wrnexusjs.dev/guides/api-routeshttps://wrnexusjs.dev/guides/middlewarehttps://wrnexusjs.dev/guides/forms-and-validationhttps://wrnexusjs.dev/guides/authenticationhttps://wrnexusjs.dev/guides/authorizationhttps://wrnexusjs.dev/guides/securityhttps://wrnexusjs.dev/guides/databasehttps://wrnexusjs.dev/guides/uploadshttps://wrnexusjs.dev/guides/realtimehttps://wrnexusjs.dev/guides/pubsubhttps://wrnexusjs.dev/guides/queueshttps://wrnexusjs.dev/guides/testinghttps://wrnexusjs.dev/guides/workspaces-and-gatewayhttps://wrnexusjs.dev/guides/deploymenthttps://wrnexusjs.dev/guides/configuration-and-profileshttps://wrnexusjs.dev/guides/i18n-and-themeshttps://wrnexusjs.dev/guides/mobilehttps://wrnexusjs.dev/guides/observabilityhttps://wrnexusjs.dev/guides/upgradinghttps://wrnexusjs.dev/guides/troubleshootinghttps://wrnexusjs.dev/exampleshttps://wrnexusjs.dev/showcasehttps://wrnexusjs.dev/benchmarkshttps://wrnexusjs.dev/roadmaphttps://wrnexusjs.dev/changeloghttps://wrnexusjs.dev/releases/0.7.0https://wrnexusjs.dev/securityhttps://wrnexusjs.dev/supporthttps://wrnexusjs.dev/licensehttps://wrnexusjs.dev/searchhttps://wrnexusjs.dev/404https://wrnexusjs.dev/packages/aihttps://wrnexusjs.dev/packages/authhttps://wrnexusjs.dev/packages/authzhttps://wrnexusjs.dev/packages/benchmarkhttps://wrnexusjs.dev/packages/cachehttps://wrnexusjs.dev/packages/captchahttps://wrnexusjs.dev/packages/clihttps://wrnexusjs.dev/packages/compilerhttps://wrnexusjs.dev/packages/corehttps://wrnexusjs.dev/packages/csrhttps://wrnexusjs.dev/packages/dbhttps://wrnexusjs.dev/packages/dev-serverhttps://wrnexusjs.dev/packages/dev-toolbarhttps://wrnexusjs.dev/packages/encryptionhttps://wrnexusjs.dev/packages/helpershttps://wrnexusjs.dev/packages/i18nhttps://wrnexusjs.dev/packages/imagehttps://wrnexusjs.dev/packages/jwthttps://wrnexusjs.dev/packages/mobilehttps://wrnexusjs.dev/packages/nativehttps://wrnexusjs.dev/packages/oauthhttps://wrnexusjs.dev/packages/observabilityhttps://wrnexusjs.dev/packages/pluginhttps://wrnexusjs.dev/packages/pubsubhttps://wrnexusjs.dev/packages/queuehttps://wrnexusjs.dev/packages/reactivehttps://wrnexusjs.dev/packages/routerhttps://wrnexusjs.dev/packages/securityhttps://wrnexusjs.dev/packages/ssrhttps://wrnexusjs.dev/packages/storehttps://wrnexusjs.dev/packages/styleshttps://wrnexusjs.dev/packages/syntaxhttps://wrnexusjs.dev/packages/testhttps://wrnexusjs.dev/packages/trackinghttps://wrnexusjs.dev/packages/typecheckhttps://wrnexusjs.dev/packages/uihttps://wrnexusjs.dev/packages/uploaderhttps://wrnexusjs.dev/packages/validation diff --git a/wrnexus.config.ts b/wrnexus.config.ts index d3e1dc3f..28795aa2 100644 --- a/wrnexus.config.ts +++ b/wrnexus.config.ts @@ -101,6 +101,31 @@ const config: AppConfig = { legacyComponentDiscovery: true, stringLayouts: true, }, + navigation: { + mode: "auto", + }, + performance: { + enforcement: "warn", + analyze: true, + budgets: { + routeJsBytes: 51200, + routeCssBytes: 25600, + htmlBytes: 204800, + hydrationMs: 200, + serverRenderMs: 500, + lcpMs: 2500, + inpMs: 200, + cls: 0.1, + ttfbMs: 800, + }, + }, + observability: { + enabled: true, + serverTiming: true, + sampleRate: 0.1, + exporter: "none", + webVitals: true, + }, }; export default config;