
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@crbroughton/nuxt-auto-layers
Advanced tools
Automatically discover and extend Nuxt layers without manual configuration. Simplifies modular architecture by eliminating boilerplate configuration and enabling zero-config layer setup
🚀 Automatically discover and extend Nuxt layers with zero configuration
This module automatically detects all layers within your project and sets up the necessary configuration without you having to manually declare each layer.
nuxt-auto-layers
dependency to your projectnpm install @crbroughton/nuxt-auto-layers
nuxt-auto-layers
to the modules
section of nuxt.config.ts
export default defineNuxtConfig({
modules: [
'@crbroughton/nuxt-auto-layers'
],
future: {
compatibilityVersion: 4, // <- enable Nuxt 4 app folder
},
})
That's it! The module will automatically:
app/layers
and add them as Nuxt layersThis module scans your project for directories within the app/layers
folder (configurable) and automatically:
extends
configurationapp/layers/admin/index.vue
→ /admin
)components
directorycomposables
directoryplugins
directoryutils
directoryshared
directoryBy default, the module expects your layers to be in the app/layers
directory:
your-project/
├── app/
│ ├── layers/
│ │ ├── admin/
│ │ │ ├── components/ # Auto-registered
│ │ │ ├── composables/ # Auto-registered
│ │ │ ├── plugins/ # Auto-registered
│ │ │ ├── utils/ # Auto-registered
│ │ │ ├── shared/ # Auto-registered
│ │ │ ├── pages/ # Auto-registered
│ │ │ ├── index.vue # Auto-routed to /admin (required)
│ │ │ └── ... other Nuxt directories
│ │ ├── shop/
│ │ │ ├── components/ # Auto-registered
│ │ │ ├── composables/ # Auto-registered
│ │ │ ├── plugins/ # Auto-registered
│ │ │ ├── utils/ # Auto-registered
│ │ │ ├── shared/ # Auto-registered
│ │ │ ├── pages/ # Auto-registered
│ │ │ ├── index.vue # Auto-routed to /shop (required)
│ │ │ └── ... other Nuxt directories
Each directory under app/layers
becomes a Nuxt layer, allowing you to organize your application into modular, self-contained pieces.
You can customize the behavior of this module in your nuxt.config.ts
:
export default defineNuxtConfig({
modules: [
'@crbroughton/nuxt-auto-layers'
],
autoLayers: {
// Custom directory for layers (default: 'app/layers')
layersDir: 'custom/path/to/layers',
// Control auto-registration features
// Option 1: Enable/disable all features at once
autoRegister: true, // or false to disable all
// Option 2: Granular control over specific features
autoRegister: {
components: true, // Auto-register components
composables: true, // Auto-register composables
pages: true // Auto-register nested page folder
plugins: true, // Auto-register plugins
utils: true, // Auto-register utils
shared: true // Auto-register shared folders
}
}
})
FAQs
Automatically discover and extend Nuxt layers without manual configuration. Simplifies modular architecture by eliminating boilerplate configuration and enabling zero-config layer setup
We found that @crbroughton/nuxt-auto-layers demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.