@innertia-solutions/innertia-nuxt

Innertia Solutions — Nuxt layer unificada: core, auth, multitenancy, theme y app contexts
10,387
Install
npm install @innertia-solutions/innertia-nuxt
Latest Version:0.1.59
Vue:3
License:MIT
Last Updated:Aug 4, 2026
Links: GitHub  ·  npm
Maintainer: gfariaspavez

@innertia-solutions/innertia-nuxt

Capa Nuxt unificada de Innertia Solutions. Provee en un solo paquete:

  • Utilities — composables base (useApi, useDate, useDevice, useDownload, useRealtime, etc.) + plugin pusher + SEO
  • Auth — JWT, contextos, permisos, vue-query, stores de notifications/auth, middlewares auth/guest
  • Multitenancy — multi-tenant por subdomain (X-Tenant header, validación de tenant, store de tenant)
  • Design system — components, layouts, theme Tailwind, Preline, Tabler icons, tema configurable
  • App contexts — apps multi-contexto (backoffice/teacher/technician...), mobile guard configurable

Uso

pnpm add @innertia-solutions/innertia-nuxt
// nuxt.config.ts
export default defineNuxtConfig({
  extends: ['@innertia-solutions/innertia-nuxt'],
  css: ['@innertia-solutions/innertia-nuxt/theme.css'],

  appConfig: {
    innertia: {
      mode: 'saas', // 'saas' (default) | 'app'

      branding: { name: 'MyApp', version: '1.0.0' },

      // Tema Preline — define el "feel" completo (paleta neutral, dark mode tone).
      // Ver https://preline.co/docs/themes.html
      theme: 'moon',  // 'default' | 'harvest' | 'retro' | 'ocean' | 'autumn' | 'moon' | 'bubblegum' | 'cashmere' | 'olive'

      // Override del brand color del tema (opcional)
      colors: { primary: 'violet', secondary: 'slate' },

      apps: {
        backoffice: {
          path: '/backoffice',
          context: 'backoffice',
          label: 'Backoffice',
          icon: 'IconBuildingSkyscraper',
          loginPath: '/backoffice/login',
          home: '/backoffice',
          mobile: { mode: 'block' },
        },
        // ...más contextos
      },

      mobile: { breakpoint: 1024, rememberChoice: true },
    },
  },
})

Modos

Modo Subdomain detection Tenant validation X-Tenant header Auth Apps
saas (default) ✅ ✅ ✅ ✅ ✅
app ❌ ❌ ❌ ✅ ✅

CI

  • Push a main → auto-publish.yml bumpea patch y publica automáticamente.
  • Workflow release.yml manual → permite elegir bump (patch/minor/major).

Requiere NPM_TOKEN configurado en environment NPM del repo.

Related Packages

@pinia/nuxt

Nuxt Module for pinia

34,268,649 14,743
@pinia-orm/nuxt

Nuxt module for pinia-orm

50,755 528
@tauri-store/pinia

Persistent Pinia stores for Tauri

21,382 137
@eaera-com/cms-sdk

EAERA CMS SDK — data access layer for Nuxt 3 apps (ofetch + Pinia + typed servic...

7,106
@pinia-orm/nuxt-edge

Nuxt module for pinia-orm

5,651 529

Version History

Version Released Vue License
0.1.59 >=3.5.0 MIT
0.1.58 >=3.5.0 MIT
0.1.57 >=3.5.0 MIT
0.1.56 >=3.5.0 MIT
0.1.55 >=3.5.0 MIT