docs: update portal for WRNexusJS 0.8.0
This commit is contained in:
@@ -42,31 +42,50 @@ const catalog = [
|
||||
["ai", "AI", "Server-side Anthropic client with generation and streaming."],
|
||||
["auth", "Security", "Authentication routes, sessions, forms, guards, and account flows."],
|
||||
["authz", "Security", "Role, permission, policy, and authorization guards."],
|
||||
[
|
||||
"benchmark",
|
||||
"Tooling",
|
||||
"Framework benchmark scenarios and repeatable performance measurements.",
|
||||
],
|
||||
["cache", "Data", "Memory and distributed caching with coordination and invalidation."],
|
||||
["captcha", "Security", "Managed CAPTCHA verification, middleware, and UI integration."],
|
||||
["cli", "Tooling", "Create, develop, build, generate, test, and maintain WrNexus apps."],
|
||||
["compiler", "Core", "Parser and code generators for the .wrn language."],
|
||||
["content", "Data", "Content collections, validation, querying, and publishing workflows."],
|
||||
["core", "Core", "Contexts, middleware, security, sessions, caching, JSX, and realtime."],
|
||||
["csr", "Frontend", "Reactive, navigation, and realtime browser runtimes."],
|
||||
["db", "Data", "Database adapters, typed queries, models, migrations, and sessions."],
|
||||
["dev-server", "Runtime", "Development and production servers, HMR, assets, and gateways."],
|
||||
["dev-toolbar", "Tooling", "Development toolbar diagnostics, inspection, and runtime status."],
|
||||
["encryption", "Security", "Hashing, HMAC, authenticated encryption, and key derivation."],
|
||||
["graphql", "Data", "GraphQL schemas, routes, and framework plugin integration."],
|
||||
["helpers", "Tooling", "Safe Context URL helpers and forward-auth login redirects."],
|
||||
["i18n", "Frontend", "Translation loading, locale resolution, and Intl formatting."],
|
||||
["identity", "Security", "Portable identity records, claims, and account linking."],
|
||||
["image", "Frontend", "Responsive image optimization, loaders, placeholders, and components."],
|
||||
["jwt", "Security", "HS256 JWT signing, verification, and bearer authentication."],
|
||||
["language-server", "Tooling", "Editor-neutral language intelligence for WRN files."],
|
||||
["mcp", "Tooling", "Model Context Protocol tools for WRNexus projects."],
|
||||
["mobile", "Native", "SSR-safe compatibility access to Capacitor plugins."],
|
||||
["native", "Native", "Cross-platform browser and Capacitor capability registry."],
|
||||
["oauth", "Security", "OAuth 2.0, PKCE, provider presets, and profile mapping."],
|
||||
["observability", "Runtime", "Structured logging, tracing, health, and integration adapters."],
|
||||
["playground", "Tooling", "Interactive framework examples and executable playground utilities."],
|
||||
["plugin", "Core", "Plugin contracts, lifecycle hooks, composition, and framework integration."],
|
||||
["pubsub", "Realtime", "In-process and Redis-backed publish/subscribe."],
|
||||
["pwa", "Frontend", "Progressive Web App manifests, service workers, and offline strategies."],
|
||||
["queue", "Data", "Background jobs with delay, concurrency, retry, and repetition."],
|
||||
["reactive", "Frontend", "Small type-safe reactive signal primitives."],
|
||||
["realtime", "Realtime", "Rooms, presence, messaging, history, streams, and UI components."],
|
||||
["router", "Core", "Filesystem discovery, route matching, and typed route generation."],
|
||||
["security", "Security", "Security headers, CSRF protection, rate limits, and safe rendering."],
|
||||
["ssr", "Runtime", "Secure HTML document rendering and SEO metadata."],
|
||||
["store", "Data", "Application state stores shared across server and browser runtimes."],
|
||||
["styles", "Frontend", "CSS pipeline, themes, fonts, profiles, and application config."],
|
||||
["syntax", "Frontend", "Editor syntax definitions and language tooling for .wrn files."],
|
||||
["test", "Tooling", "WrNexus-aware component, route, and browser testing utilities."],
|
||||
["tracking", "Runtime", "Error/event capture, middleware, filtering, and sinks."],
|
||||
["typecheck", "Tooling", "WRN-aware TypeScript diagnostics and virtual documents."],
|
||||
["ui", "Frontend", "Themeable server-rendered UI components and CSS."],
|
||||
["uploader", "Data", "Validated local/S3 uploads and secure file serving."],
|
||||
["validation", "Security", "Typed schemas, coercion, validation, and browser descriptors."],
|
||||
@@ -307,6 +326,20 @@ const registry = createDevToolbarRegistry();`,
|
||||
if (examples.length >= 2) break;
|
||||
examples.push(fallback);
|
||||
}
|
||||
if (examples.length < 2) {
|
||||
examples.push({
|
||||
title: `Install @wrnexus/${name}`,
|
||||
language: "sh",
|
||||
code: `bun add @wrnexus/${name}`,
|
||||
});
|
||||
}
|
||||
if (examples.length < 2) {
|
||||
examples.push({
|
||||
title: `Import @wrnexus/${name}`,
|
||||
language: "ts",
|
||||
code: `import * as ${name.replace(/-([a-z])/g, (_, letter: string) => letter.toUpperCase()).replace(/[^A-Za-z0-9_$]/g, "_")} from "@wrnexus/${name}";`,
|
||||
});
|
||||
}
|
||||
if (examples.length < 2) {
|
||||
throw new Error(`@wrnexus/${name} README needs at least two documented code examples`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user