Real pages
Each URL returns useful HTML for people, search crawlers and browsers without JavaScript.
MPA first. SPA when ready.
Turn the HTML you already ship into an SPA experience – with nested layouts and route lifecycle, but without rebuilding it as an app shell.
The upgrade path
On the first visit, the browser loads a complete page from your host. Aura then adopts the rendered content and enhances marked same-origin links.
Each URL returns useful HTML for people, search crawlers and browsers without JavaScript.
On flat routes, Aura adopts the #content already on screen and skips the pointless second fetch.
Later links fetch HTML, extract the next view, and update browser history.
Minimal setup
No framework adapter is required. Use plain HTML, vanilla Custom Elements or Lit.
<aura-outlet></aura-outlet>
<aura-router extract="#content">
<aura-route path="/" view="/"></aura-route>
<aura-route path="/about/" view="/about/"></aura-route>
</aura-router>
<a href="/about/" aura-router-link>About</a>
<script type="module">
import { AuraRouter } from '@auraui/router';
AuraRouter.install();
</script>
404
Aura caught it without reloading. Open this URL directly and the host still returns a real 404.
Return home