Skip to content

⚙️ Architecture

Deep dive into how Vue Router Citadel works internally.

🗄️ Registry Structure

The citadel maintains a registry with separate maps for global and route outposts. Sorted arrays are pre-computed on every deployOutpost / abandonOutpost for efficient navigation processing.

Optimization: Sorting happens at deploy/abandon time, not during navigation. This ensures navigation remains fast regardless of the number of outposts.

🔄 Outpost Processing

How a single outpost is processed during patrol:

🔄 Complete Navigation Example

Full sequence diagram showing a navigation with global and route outposts:

Diagram Legend
ColorMeaning
🟢Success, ALLOW, continue
🟡Warning, redirect, deduplicate
🔴Error, BLOCK, cancel
🔵Logging (when logger is enabled)
🟣Named debug breakpoint (debug: true)

Released under the MIT License.