Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>LayerGen: Clean Architecture & DDD ScaffoldingNew to Visual Studio Code? Get it now.
LayerGen: Clean Architecture & DDD Scaffolding

LayerGen: Clean Architecture & DDD Scaffolding

Denis Rodriguez Mendoza

|
2 installs
| (0) | Free
Automate your workflow by generating Clean Architecture & DDD folder structures in seconds. Fully customizable for any language or framework.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

LayerGen - Clean Architecture Scaffolder

Instantly generate standardized directory structures and internal documentation based on Clean Architecture and DDD principles.


🚀 Overview

In professional software engineering, maintaining a consistent project structure is critical for scalability. Clean Architecture Scaffolder is a framework-agnostic VS Code extension that automates the creation of architectural layers and includes automatic internal documentation via README files.

Whether you work with Flutter, Node.js, Go, or Java, this tool ensures your codebase remains decoupled, testable, and maintainable.

Demo

✨ Key Features

  • Smart Scaffolding: Automatically creates the core architectural pillars (Domain, Infrastructure, and Presentation).
  • Auto-Documentation: Generates a README.md inside each created folder with a description of its responsibility.
  • Fully Customizable: Define your own architecture by creating an architecture.json file in your project root.
  • Zero Boilerplate: Eliminate manual folder creation and potential path errors with a single command.

🏗️ Default Architectural Structure

By default, the extension implements the following structure where dependencies flow inwards:

Layer Responsibility
domain/entities Enterprise Business Rules (Pure data models).
domain/repositories Contract definitions (Interfaces) for repositories.
domain/usecases Application logic and business-specific use cases.
infrastructure/repositories Concrete repository implementations.
infrastructure/datasources Data sources: API calls or local databases.
presentation/providers State management (Bloc, Riverpod, etc.) to connect UI and Logic.
presentation/screens Main views or pages of the application.
presentation/widgets Small, reusable visual components.

⚙️ Customization (Advanced)

If you prefer a different structure, the extension supports external configuration. Simply create a file named architecture.json in your workspace root.

Example architecture.json (Array format):

{
  "layers": ["core", "features/auth/data", "features/auth/domain"]
}


🚀 Quick Start

  1. Right-click on any folder in the VS Code Explorer.
  2. Select "LayerGen: Generate Clean Architecture".
  3. (Optional) Create an architecture.json in your root to customize layers.

⚙️ Customization

To use your own folder structure, create an architecture.json file in your project root:

{
  "layers": {
    "core/domain": "Business logic and entities.",
    "core/data": "Data sources and repositories.",
    "features/auth": "Authentication presentation layer."
  }
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft