{"repo":"elcharitas/react-router-jam","free":true,"listed":false,"github":"https://github.com/elcharitas/react-router-jam","clone":"git clone https://github.com/elcharitas/react-router-jam.git","description":"A file-system/folder-based routing library for React Router v7 / Remix","language":"TypeScript","stars":14,"topics":["file","react-router","remix","router"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"react-router-jam A file-system/folder-based routing library for React Router v7 / Remix. Supports TypeScript ( .tsx , .ts ) and JavaScript ( .jsx , .js ). Installation Usage In your app/routes.ts : Configuration jamRoutes accepts an options object: - rootDirectory (string): The root directory of your application. Defaults to \"./app\" . - ignoredFilePatterns (string[]): Patterns to ignore (e.g., [\" / tests / \", \" / .test.tsx\"] ). Uses minimatch for glob pattern matching. Routing Conventions react-router-jam defines routes based on your file system structure in the routes directory. Core Concepts Feature Convention Example URL :--- :--- :--- :--- Index Route page.tsx routes/page.tsx / Nested Route Folder + page.tsx routes/about/page.tsx /about Dynamic Segment [param] routes/users/[id]/page.tsx /users/123 Splat Route [...param] routes/files/[...path]/page.tsx /files/a/b/c Layout Route layout.tsx routes/layout.tsx (wraps child routes) Route Group folder routes/ auth/login/page.tsx /login Not Found not-found.tsx routes/settings/not-found.tsx (matches unknown paths) Detailed Examples Nested Routes & Layouts Layouts wrap all nested pages and child layouts within their directory. [!NOTE] You don't need to create a layout.tsx just to nest routes. If a directory has no layout, react-router-jam automatically creates a \"pass-through\" layout for you. Dynamic Routes Use square brackets [] for dynamic path segments. Route Groups (Groups without Path) Folders starting with are treated as \"Rou","default_branch":null,"files":null,"tree":[],"storefront":"/r/elcharitas","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/elcharitas/react-router-jam/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}