Menu

I built a 60+ tool Security & OSINT dashboard in Vue 3 β€” here's how the router handles it
πŸ“°

I built a 60+ tool Security & OSINT dashboard in Vue 3 β€” here's how the router handles it

DEV Community: vueΒ·dixit patelΒ·3 days ago
#oODrtNdS
#devtovue#devto#dev#auth#router
Reading 0:00
15s threshold

Hey dev.to πŸ‘‹ β€” I'm dixitcoder, and I just shipped DixitCoder, a full security & OSINT dashboard built entirely in Vue 3 + TypeScript + Vite.

60+ tools in one workspace: IP intel, port scanner, ping sweep, service detector, WHOIS, DNS records, SSL/TLS checker, HTTP security headers, firewall tester, DNS leak test, traceroute, GeoIP, packet sniffer, network mapper, vuln scanner, image OSINT analyzer, Base64/hash/JSON/regex utilities, system monitors, and more.

But the part I actually want feedback on is the router architecture:

πŸ” Session-aware guards β€” every protected route hits /api/auth/me with credentials: 'same-origin' before navigation

πŸ‘‘ Role-based access β€” a meta.admin flag locks user management to admins only

🌐 Public routes β€” sign-in, sign-up and 404 skip the auth check cleanly

πŸ“Š Recent route tracking β€” router.afterEach records the last 5 visits into a reactive ref for a "recently launched" widget

🎯 Dynamic titles β€” document.title updates per route via meta.title

♻️ Scroll restoration —…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.