Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
File system based routing for React using Vite
Vite Router Next is an open-source, file-system-based routing library for React applications using Vite, providing Next.js-style route conventions without requiring the Next.js framework.
Vite Router Next is a routing library that lets React developers define routes as files and directories in their project instead of writing a central route configuration. It is built specifically for Vite-based React applications and is distributed under the MIT license, with official documentation available at https://chillgroup.github.io/vite-router-next/. The project integrates with the React Router ecosystem, as shown by its references to error boundaries, loaders, and deferred data loading.
Vite Router Next includes a set of routing features that follow familiar file-system conventions:
useLoaderData — Load data before a route renders, with the loader's result exposed to the component through useLoaderData.defer — Defer slow data with React Router's defer, letting the page stream in early and update when data arrives.These features cover the routing patterns most React applications need without hand-writing route resolver logic for each path.
Vite Router Next is for React developers who want the ergonomics of file-based routing without adopting a full framework like Next.js. Teams running Vite as their build tool can use this library to replace manual route arrays with a simple folder structure. It is also suitable for developers already familiar with React Router APIs, since it builds on the same ecosystem of error boundaries, loaders, and deferred data.
Yes, the project is open source and distributed under the MIT license, so you can use it in both personal and commercial projects without cost.
The feature list includes error boundary, loader, useLoaderData, and defer, all of which are React Router concepts. The README links to React Router documentation, indicating the library is built on or integrates with React Router's data APIs.
Documentation is hosted on GitHub Pages at https://chillgroup.github.io/vite-router-next/.
