I built a small Nuxt 4 template that demonstrates a feature-based project structure for scalable applications.
Repository
https://github.com/orazchollaev/nuxt4-feature-based-template
Why?
Many Nuxt projects start with the traditional structure:
components/
composables/
stores/
pages/
utils/
This works well at first, but as the project grows:
- related files become scattered
- features are harder to maintain
- navigating the codebase becomes slower
A feature-based architecture organizes code by feature instead of technical type.
Example Structure
app/
└── features/
└── todo/
├── components/
├── composables/
├── stores/
├── pages/
├── types/
└── locales/
Everything related to a feature lives in one place.
What This Template Includes
- feature-based folder architecture
- component auto-import with feature prefixes
- feature-scoped composables and stores
- modular routing
- modular i18n support
Full implementation and details are available in the repository.
Quick Start
pnpm install
pnpm dev
If you're building a large Nuxt application, this structure can make your codebase easier to scale and maintain.
Top comments (0)