Backend dans Nitro
Mode embedded : Feathers tourne dans le même runtime que ton Nuxt 4 (Nitro).
Deux modes : backend Feathers embarqué (embedded) OU client Feathers vers un serveur distant (remote). Génération Zod-first, client Pinia, Swagger (legacy) et option Keycloak SSO.

bunx nuxt-feathers-zod init embedded --force
bun devbunx nuxt-feathers-zod init remote --url https://api.example --force
bun devfeathers.servicesDirs = ['services'].bunx nuxt-feathers-zod add service ....bunx nuxt-feathers-zod init remote --url http://... (Socket.IO par défaut, REST via --transport rest).feathers.templates.dirs est optionnel (utile uniquement si tu veux surcharger des templates client).auth.provider = 'keycloak' et protège tes routes avec un middleware.Le module supporte l’auth Feathers v5 (Dove) dans les deux modes :
strategy: 'jwt') via @feathersjs/authenticationstrategy: 'local') via @feathersjs/authentication-localstrategy: 'oauth') via @feathersjs/authentication-oauthEn mode remote, le module n’exige pas de schémas locaux (services/**) pour démarrer : l’entityImport est optionnel.
En mode embedded, le serveur REST (Express) peut activer un preset “secure defaults” :
json + urlencodedserveStatic (optionnel)Configuration :
export default defineNuxtConfig({
feathers: {
server: {
secureDefaults: true,
secure: {
cors: true,
helmet: true,
compression: true,
serveStatic: { path: '/', dir: 'public' } // ou false
}
}
}
})