| name | route-visualizer |
|---|---|
| description | Use this skill when inspecting all registered ColdBox routes using the route-visualizer module. Covers installation as a development dependency, accessing the route-visualizer UI, understanding the route table output, and restricting access to development environments. |
| applyTo | **/*.{bx,cfc,cfm,bxm} |
Load this skill when:
- Debugging route registration and handler mapping in a ColdBox application
- Verifying that REST API routes are correctly defined and ordered
- Checking which HTTP methods, patterns, and actions are registered
- Onboarding new developers to understand the application's URL structure
Install as a development-only dependency:
box install route-visualizer --saveDevOnce installed, navigate to:
http://localhost:8500/route-visualizer
The visualizer displays all registered routes including:
- HTTP method(s) allowed
- URL pattern
- Handler and action target
- Route name
- Module (if applicable)
- Middleware assigned
To view routes for a specific module:
http://localhost:8500/route-visualizer?module=api
The UI supports text-based filtering. Use the search box to filter by path, handler, or name.
- Install with
--saveDev— should never be present in production environments - Restrict to development only — confirm the module is listed under
devDependenciesinbox.json, notdependencies - Verify route ordering — ColdBox routes are first-match-wins; use the visualizer to catch shadowing
- Use before deploying to confirm all expected API routes are registered after router changes
- Do not commit
--savedevinstalls to shared production boxes — use box.json environment scoping
{
"devDependencies": {
"route-visualizer": "^1.0.0"
}
}- route-visualizer: https://github.com/coldbox-modules/route-visualizer