Skip to content

@zoijs/router 0.1.0

Choose a tag to compare

@jay-m2 jay-m2 released this 25 Jun 00:37
· 8 commits to main since this release

A tiny client-side router for Zoijs SPAs. Routes are a plain object.

npm install @zoijs/core @zoijs/router

API: createRouter(routes, { base? })view, link, go, path, query. Static + :id routes, * not-found, back/forward, optional base path.

Solves: page routing without a heavy router — no nested outlets, guards, or loaders.

Known limitations: history-mode only (needs a server SPA fallback); no nested outlets/guards/loaders; no SSR.

· npm · README