A tiny URL router for Nano Stores state manager, framework-agnostic and TypeScript-friendly.
Nano Stores Router is a minimal URL router built for the Nano Stores state manager. It provides a store-based routing solution that handles route definitions, parameter parsing, and navigation events while remaining framework-agnostic. It solves the problem of integrating routing with state management in a lightweight, type-safe way.
Developers using Nano Stores for state management who need a simple, integrated routing solution across various frameworks like React, Vue, Svelte, or vanilla JavaScript.
Developers choose Nano Stores Router for its extreme size (712 bytes), zero dependencies, excellent TypeScript support, and seamless integration with Nano Stores' store-centric architecture, avoiding framework lock-in.
A tiny (673 bytes) router for Nano Stores state manager
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
At only 712 bytes with zero dependencies, it minimizes bundle size impact, making it ideal for performance-focused projects where every byte counts.
Works seamlessly with React, Vue, Svelte, and other frameworks, allowing consistent routing logic across diverse UI stacks without vendor lock-in.
Full TypeScript support with automatic inference for route parameters using TypeScript ≥5.x, reducing runtime errors and improving developer experience.
Integrates routing logic directly into Nano Stores, promoting a clean separation of concerns and aligning with the library's philosophy of keeping logic in stores.
As a minimal router, it lacks advanced capabilities like nested routes, lazy loading, or middleware, which are standard in more comprehensive solutions such as React Router.
Requires explicit route setting in Node environments for server-side rendering, making it less convenient and more error-prone compared to routers with built-in SSR automation.
Can only be used with Nano Stores, restricting adoption to projects already committed to this state manager and adding complexity for those using alternatives.