Page container micro-architecture for YAGNI componentization
npm install multi-spaAn agnostic micro-lib for microfrontend with web standard approach.
* orchestration: routing and inclusion support
* prefetching: all content is preloaded
* isolation: shadow dom isolation
* fallback: fallback HTML content
* routing: static and dynamic route
``html`
etc...
Client-sider support with script loading and parser to server-side rendering.
`ts
'use server'
import { parser } from 'multi-spa'
await parser(html).build('/build')
`
HTML+ slot supports merged frontends inner content as fallback with optional declarative routing (static and dynamic routes).
`html`
Metatags are dynamically reallocated to html page. To work properly with SEO, it demands the usasge of server-side multi-spa parser.
Simple global router object facade to location and history.
`ts``
router.now
router.goto('/admin')
router.params('/admin/:id')
router.queries // URLSearchParams as object