
Company News
Meet the Socket Team at RSAC and BSidesSF 2026
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.
auto-scaffold
Advanced tools
[](https://www.npmjs.com/package/auto-scaffold)
Create empty file → get boilerplate. That's it.
npm i -D auto-scaffold
Add to your Vite config:
import AutoScaffold from 'auto-scaffold/vite'
export default defineConfig({
plugins: [AutoScaffold()],
})
export default defineNuxtConfig({
modules: ['auto-scaffold/nuxt'],
})
Drop templates in .scaffold/ mirroring your project structure:
.scaffold/
├── src/components/[...path].vue # any depth
├── src/composables/[name].ts # direct children only
└── src/stores/[name].store.ts # with suffix
Create src/components/Button.vue (empty) → filled with template content.
Place .scaffold/ folders anywhere. Deeper ones win:
project/
├── .scaffold/src/components/[...path].vue # default
└── src/modules/admin/
├── .scaffold/components/[...path].vue # wins for admin/*
└── components/Button.vue # uses admin template
| Pattern | Matches |
|---|---|
[name] | Single segment (direct children) |
[...path] | Any depth (0+ nested) |
[name].store.ts | With static suffix |
Skip .scaffold/ setup with built-in templates:
AutoScaffold({ presets: ['vue', 'pinia'] })
Available: vue, vue-router, pinia, pinia-colada
User templates always override presets.
| Option | Default | Description |
|---|---|---|
scaffoldDir | '.scaffold' | Template folder name |
presets | [] | Built-in presets |
enabled | true | Toggle plugin |
MIT
FAQs
[](https://www.npmjs.com/package/auto-scaffold)
The npm package auto-scaffold receives a total of 24 weekly downloads. As such, auto-scaffold popularity was classified as not popular.
We found that auto-scaffold demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Company News
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.

Research
/Security News
Malicious Packagist packages disguised as Laravel utilities install an encrypted PHP RAT via Composer dependencies, enabling remote access and C2 callbacks.

Research
/Security News
OpenVSX releases of Aqua Trivy 1.8.12 and 1.8.13 contained injected natural-language prompts that abuse local AI coding agents for system inspection and potential data exfiltration.