@zenithbuild/router
v0.7.10
Published
File-based SPA router for Zenith framework with deterministic, compile-time route resolution
Maintainers
Readme
@zenithbuild/router
Internal Zenith package. The generated router runtime is the authoritative surface here, not a general SPA framework API.
Canonical Docs
Phase 2 Runtime Summary
- Plain anchors hard navigate by default.
- Soft navigation is opt-in only through
a[data-zen-link]. ZenLinkis a thin anchor wrapper over the same marker contract.- Soft navigation fetches fresh same-origin HTML before committing history.
- Redirects, denies, unmatched routes, non-HTML responses, and runtime failures fall back to browser navigation.
- Client routing mirrors server route precedence and pathname-based identity.
- Phase 2 adds awaited lifecycle barriers at
navigation:before-leave,navigation:before-swap, andnavigation:before-enter. zenNavigationShell(...)is the narrow canonical Phase 3 utility for projecting visual shell phase on top of that lifecycle without changing route truth.
