{"id":48581600,"url":"https://github.com/devalade/route-list","last_synced_at":"2026-04-08T17:03:09.692Z","repository":{"id":273780219,"uuid":"920843726","full_name":"devalade/route-list","owner":"devalade","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-22T22:34:24.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-15T09:24:19.399Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devalade.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-22T21:37:29.000Z","updated_at":"2025-01-23T08:48:00.000Z","dependencies_parsed_at":"2025-01-22T23:23:40.758Z","dependency_job_id":"9153fc29-d2b7-40a3-91b5-778625b5b194","html_url":"https://github.com/devalade/route-list","commit_stats":null,"previous_names":["devalade/route-list"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/devalade/route-list","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devalade%2Froute-list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devalade%2Froute-list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devalade%2Froute-list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devalade%2Froute-list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devalade","download_url":"https://codeload.github.com/devalade/route-list/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devalade%2Froute-list/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31564915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-08T17:02:55.374Z","updated_at":"2026-04-08T17:03:09.681Z","avatar_url":"https://github.com/devalade.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js Route List\n\nA command-line tool to scan and list all routes in your Next.js application, supporting both the App Router and Pages Router patterns.\n\n## Features\n\n- ✅ Supports Next.js App Router (`app` directory)\n- ✅ Supports Next.js Pages Router (`pages` directory)\n- ✅ Handles projects with `src` directory structure\n- ✅ Supports TypeScript (`.tsx`) and JavaScript (`.js`) files\n- ✅ Handles route groups `(...)` in App Router\n- ✅ Clean and formatted output\n\n## Installation\n\nInstall globally using your preferred package manager:\n\n```bash\nnpm install -g @devalade/route-list\n# or\nyarn global add @devalade/route-list\n# or\npnpm add -g @devalade/route-list\n```\n\n## Usage\n\nNavigate to your Next.js project directory and run:\n\n```bash\nroute-list\n```\n\nThat's it! The tool will automatically scan your project and list all available routes.\n\n## Example Output\n\n```bash\nScanning Next.js routes...\n\nFound App Router directory...\nFound Pages Router directory...\n\nFound routes:\n- /\n- /about\n- /blog\n- /blog/[slug]\n- /contact\n- /products/[category]/[id]\n\nTotal routes found: 6\n```\n\n## Supported Project Structures\n\nThe tool works with various Next.js project structures:\n\n### Standard Structure\n```\nmy-next-app/\n├── app/                  # App Router\n│   ├── page.tsx\n│   └── about/\n│       └── page.tsx\n└── pages/               # Pages Router\n    ├── index.tsx\n    └── blog/\n        └── index.tsx\n```\n\n### Src Directory Structure\n```\nmy-next-app/\n└── src/\n    ├── app/            # App Router\n    │   ├── page.tsx\n    │   └── about/\n    │       └── page.tsx\n    └── pages/         # Pages Router\n        ├── index.tsx\n        └── blog/\n            └── index.tsx\n```\n\n## Route Detection Rules\n\n### App Router (`app` directory)\n- Detects routes from files named `page.js` or `page.tsx`\n- Handles route groups (folders starting with parentheses)\n- Ignores files that aren't pages (like layout.tsx, loading.tsx)\n\n### Pages Router (`pages` directory)\n- Detects routes from `.js` and `.tsx` files\n- Converts `index` files to root routes\n- Maintains folder structure in route paths\n\n## Troubleshooting\n\nIf you encounter any issues:\n\n1. Ensure you're in a Next.js project directory\n2. Verify that you have either an `app` or `pages` directory (or both)\n3. Check if your project uses a `src` directory structure\n4. Make sure you have read permissions for the project directory\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Author\n\n[Devalade](https://github.com/devalade)\n\n## Notes\n\n- The tool ignores `node_modules` and hidden folders (starting with '.')\n- Route paths are normalized to ensure consistent formatting\n- Both App Router and Pages Router can coexist in the same project\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevalade%2Froute-list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevalade%2Froute-list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevalade%2Froute-list/lists"}