ui-router-server
v0.1.0
Published
Server-side UI-Router state matching for Connect, Vite, Hono, and fetch handlers
Downloads
474
Readme
ui-router-server
Server-side routing for ui-router state trees. Given per-mount routing config and a request URL, it resolves the path against the registered states and returns a plain routing verdict (render, redirect, or miss) — runtime-agnostic, with no fetch/Response or workers types in the core. Adapters turn verdicts into HTTP for Connect/Vite middleware and fetch/Hono handlers. Matcher-only mounts are dependency-free; simulate mounts lazily replay the path through a headless @uirouter/core router (an optional peer dependency).
Status: unreleased — this package has not been published to npm yet.
Attribution
URL-matching logic (src/url-matcher.ts) is derived from @uirouter/core (MIT) — see LICENSE.
