veda-frontend-patterns

Standardize Veda Next.js frontend architecture with auth guards and BFF proxy routes.

Updated Feb 17, 2026
One-click install
npx skills add https://github.com/VedaAstro/veda-skills --skill veda-frontend-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: veda-frontend-patterns
Source: https://github.com/VedaAstro/veda-skills/tree/main/veda-frontend-patterns
Command: npx skills add https://github.com/VedaAstro/veda-skills --skill veda-frontend-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill gives frontend engineers a canonical playbook for building Veda’s Next.js App Router UI without duplicated constants, broken auth flows, or inconsistent component patterns.

Core Features & Use Cases

  • Architecture rules: Defines SSOT constants, shared components, token-based colors, and when to use Context versus Zustand.
  • Auth and BFF patterns: Shows how to protect pages, proxy requests through App Router routes, forward auth headers, and handle permissions correctly.
  • Realtime and performance guidance: Covers Socket.IO sync, diagnostic sessions, presentation updates, lazy loading, memoization, and list virtualization.
  • Use case: Use it when you are creating a protected admin page, adding a new BFF route, or debugging state and WebSocket behavior in a Veda frontend.

Quick Start

Ask for the Veda frontend pattern to be applied to your Next.js page, BFF route, or component so the result follows the canonical auth, state, and performance rules.

Frequently Asked Questions about veda-frontend-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I protect Next.js App Router pages with authentication guards?

Protect Next.js App Router pages by implementing authentication guards that forward tokens, verify permissions, and route requests through a BFF proxy to secure access before rendering protected content.

What is the best way to manage frontend state in Next.js using Zustand and Context?

Manage frontend state in Next.js by following canonical conventions that dictate when to use Context for local shared state versus Zustand for complex, performance-sensitive WebSocket-driven sessions and global UI flows.

How do I create a BFF proxy route in Next.js App Router for secure API requests?

Create a BFF proxy route in Next.js App Router by defining server-side endpoints that forward authentication headers, enforce permission checks, and apply cache control to securely bridge frontend requests to backend services.

Does this frontend architecture pattern support WebSocket and Socket.IO sessions?

Yes, this frontend architecture pattern supports WebSocket and Socket.IO sessions by standardizing realtime data sync, diagnostic session handling, and presentation updates while maintaining performance-sensitive UI flows.

How do I optimize Next.js frontend performance with lazy loading and list virtualization?

Optimize Next.js frontend performance by applying canonical rules for lazy loading components, memoizing expensive renders, and implementing list virtualization to handle large datasets without UI lag.

Why do I need standardized constants and shared components for Next.js admin dashboards?

You need standardized constants and shared components for Next.js admin dashboards to establish a Single Source of Truth, prevent duplicated constants, enforce token-based colors, and eliminate broken auth flows or inconsistent UI patterns.