Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This Github Repository serves as a VS Code extension to visualize Next.js routes from pages/ and app/ directories with dynamic segment support like [slug], [...slug], and [[...slug]].

License

Notifications You must be signed in to change notification settings

AliaSadiq/nextjs-routing-visualizer

Repository files navigation

🧭 Next.js Smart Routing Visualizer

A powerful and elegant VS Code extension that visualizes your Next.js routes in a sidebar β€” supporting both pages/ and app/ directories. Easily detect and explore dynamic segments like [slug], [...params], and [[...optional]] in a tree structure.

Next.js Route Tree Preview


πŸš€ Features

  • πŸ“‚ Displays all routes from pages/ and app/ directories
  • 🧩 Highlights dynamic route segments:
    • [slug] β†’ dynamic
    • [...slug] β†’ catch-all
    • [[...slug]] β†’ optional catch-all
  • 🎯 Inline file navigation (click to open route file)
  • πŸ–ΌοΈ Custom icons for:
    • App routes
    • Page routes
    • Dynamic / Catch-all routes
  • ♻️ Auto-refresh on file changes
  • πŸ”Ž Highlights route parameters

πŸ› οΈ How It Works

  • Parses all *.js, *.ts, *.jsx, *.tsx files inside pages/ and app/ directories
  • Ignores node_modules
  • Replaces dynamic segments ([slug]) with symbolic labels (e.g., :slug)
  • Maps route files into a collapsible VS Code TreeView

πŸ§‘β€πŸ’» Usage

  1. Open a Next.js project in VS Code.
  2. Open the sidebar panel called Next.js Routes.
  3. Explore your route structure interactively.
  4. Click any route to open the corresponding file.

πŸ“¦ Installation

You can install from the Visual Studio Marketplace

πŸ‘ Open Source

This project is open source and licensed under the MIT License.
You're welcome to explore, contribute, report issues, or fork it for your own needs.

🀝 Contributing

Contributions are welcome! Feel free to:

  • Open issues for bugs or feature requests
  • Submit pull requests
  • Share feedback or ideas

Please see the CONTRIBUTING.md for guidelines.

About

This Github Repository serves as a VS Code extension to visualize Next.js routes from pages/ and app/ directories with dynamic segment support like [slug], [...slug], and [[...slug]].

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /