Description
layerscope checks layer boundaries in Nuxt projects, auto-imports included. A component in one layer that calls an auto-imported composable from another layer has no import statement, so import-based boundary tools never see it. layerscope resolves auto-imports, components, Nitro server utils and regular imports the way Nuxt does, and fails CI when a layer uses something it isn't allowed to.
It checks the app, server/ and shared/, supports local, npm and remote layers, and comes with baselines for existing projects, SARIF output, a GitHub Action, why/graph/unused commands, an ESLint plugin and a DevTools tab.
Docs: https://hamedniroomand.github.io/nuxt-layerscope/
Repository
https://github.com/hamedniroomand/nuxt-layerscope
npm
https://www.npmjs.com/package/nuxt-layerscope
Nuxt Compatibility
Nuxt 3, Nuxt 4
Description
layerscope checks layer boundaries in Nuxt projects, auto-imports included. A component in one layer that calls an auto-imported composable from another layer has no
importstatement, so import-based boundary tools never see it. layerscope resolves auto-imports, components, Nitro server utils and regular imports the way Nuxt does, and fails CI when a layer uses something it isn't allowed to.It checks the app,
server/andshared/, supports local, npm and remote layers, and comes with baselines for existing projects, SARIF output, a GitHub Action,why/graph/unusedcommands, an ESLint plugin and a DevTools tab.Docs: https://hamedniroomand.github.io/nuxt-layerscope/
Repository
https://github.com/hamedniroomand/nuxt-layerscope
npm
https://www.npmjs.com/package/nuxt-layerscope
Nuxt Compatibility
Nuxt 3, Nuxt 4