Type-safe React + MobX router with simple navigation APIs, hooks, and extensible plugins.
- Router with a simple API and navigation hooks.
- React components
<Link/>and<Route/>that observe the router state and react accordingly. - A collection of plugins to make your life easier (history, window title, scroll).
In medieval Gaelic and British culture, a "bard" was a storyteller. They would talk about people's journeys in the world. A user interacting with an application is like a journey that the router allows you to take, tell, and remember.
npm install bard-router
import {Router, Link, Route, html5HistoryPlugin} from 'bard-router'Library ships as dual CJS + ESM plus TypeScript declarations (see package.json main / module / types / exports).
- Build:
npm run build→lib/(CJS +.d.ts) andesm/(ESM.mjs) - Inspect config:
npm run build:inspect
Development guide: DEVELOPMENT.md.