A small and effective routing solution for Web Components.
Get started using Simplr Router with one of the guides from the documentation site
import { SimplrRouter } from "@simplr-wc/router";
const routes = [
{ path: "", component: "minimal-setup" },
{ path: "example", component: "example-view" },
{ path: "dynamic/:id", component: "dynamic-view" },
];
new SimplrRouter({ routes }).init();
Simple to get up and running. Basic setup in just a few lines of code.
No dependencies and a small codebase means less breaking parts. 0 dependencies means that what you see is what you get.
Works by utilizing the native API's used for navigation and therefore doesn't require any extra steps compared to your every day MPA.
Built with web components, for web components. Simplr Router was designed from the get go to be used in web component applications.
Even though there's no configuration necessary to get started, the router ships with a lot of customizability to fit your needs.
Allowing for lazy loading and creating dynamic routes, Simplr Router is a great library for projects of all sizes. Discover