Nuxt Directus

Directus SDK for Nuxt

Production-ready Nuxt 4 module that integrates Directus SDK with authentication, configurable global auth middleware, and automatic TypeScript type generation.

    🔌 Directus SDK Integration
    Seamless integration with @directus/sdk for all CRUD operations and custom requests
    🔐 Authentication Built-in
    Login, logout, register, password reset, email verification, and 2FA support out of the box
    🛡️ Global Auth Middleware
    Configurable route protection with flexible page meta options for public and protected routes
    📘 TypeScript Type Generation
    Auto-generate types from Directus OpenAPI schema for full type safety
    👥 Role-Based Permissions
    Optional role-based access control with custom field mapping and transform functions
    ⚡ Realtime WebSocket
    Subscribe to live updates with automatic connection management and duplicate prevention
    ⚙️ Flexible Configuration
    Extensive configuration options for auth paths, middleware behavior, and more
    🚀 Nuxt 4 Ready
    Built for Nuxt 4 with full compatibility for Nuxt 3 projects