Introduction
A Vite plugin that adds file-based routing to React apps by wrapping React Router.
Navilo is a Vite plugin that adds file-based routing to your React applications, inspired by the simplicity and power of Next.js's App Router. It automatically generates a route tree from your directory structure, making it easier to manage and scale your projects.
Features
- Automatic File-Based Routing — No manual route configuration needed.
- Nested Routes & Layouts — Easily create complex UI structures with nested layouts.
- Dynamic Segments — Support for
[id], catch-all[...slug], and optional catch-all[[...slug]]routes. - Index Pages —
page.tsxfiles serve as the index for a directory. - Grouped Folders — Organize your code without affecting the URL structure (e.g.,
(group)). - Special Pages — Built-in support for
loading.tsx,error.tsx, andnot-found.tsxpages.
Quick Start
Get up and running in under a minute with the CLI:
npx navilo initThis will automatically configure your Vite project, install dependencies, and set up the necessary files.
Next Steps
- Read the Getting Started guide to set up Navilo manually.
- Explore Core Concepts to understand how Navilo works.