medyll
Profile
← all projects

idae-router

Framework-agnostic SPA router with SWR cache and typed HTTP fetching

idae-router is a framework-agnostic SPA router used across Idae projects: path parameters, lifecycle hooks, declarative HTTP data fetching into route context, and an in-memory stale-while-revalidate cache with hover-triggered prefetching.

Where it sits


flowchart TD
  P["Idae monorepo"] --> S["idae-router"]
  S --> A["path params, query parsing, nested outlets"]
  S --> B["declarative http/http_source fetching"]
  S --> C["in-memory SWR cache + hover prefetch"]

Overview


Lightweight, framework-agnostic client-side router: path parameters, query parsing, lifecycle hooks, declarative HTTP data fetching, an in-memory SWR cache, and full TypeScript generics. Supports nested routes and outlets.

Highlights


  • · Declarative http/http_source fetching into ctx.data
  • · In-memory SWR cache with hover prefetching
  • · Nested routes with data-idae-outlet mounting
TypeScriptSvelteVitestPlaywright
View source →