Skip to content

[Module Listing Request]: layerscope #1633

Description

@hamedniroomand

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions