DevKit Gen
Generate clean React and Express project architecture in seconds — without overwriting your existing files.
What is DevKit Gen?DevKit Gen is a VS Code extension for developers who want a consistent project structure without manually creating dozens of folders and files. Instead of repeatedly creating:
or an Express backend such as:
you choose a generator, enter a name, preview the plan, and DevKit Gen creates the missing files for you. The core promise
If a generated file already exists, DevKit Gen skips it instead of replacing it. Why DevKit Gen?Starting a project is easy. Keeping its architecture consistent as the project grows is harder. DevKit Gen helps with the repetitive part:
It is designed to be fast enough for everyday development and safe enough to run inside an existing project. Features
1. Project Structure GenerationGenerate complete architecture presets instead of creating folders manually. React
Express
2. Single File GenerationNeed only one file? Use Generate File and choose a generator. Examples:
3. Complete CRUD ResourceCreate a backend resource in one operation. For example:
can generate:
The exact file extension depends on the detected/configured language. 4. Smart Project DetectionDevKit Gen checks the project before generating files. It can detect:
It also reads project information from 5. TypeScript and JavaScriptDevKit Gen supports both:
With:
the extension can detect the project's language. 6. Naming ConventionsChoose a consistent naming style for generated folders and files. Supported conventions:
Automatic naming is also available for generated files. For example, a React component named:
can become:
while a hook can follow its idiomatic naming:
7. Preview Before GenerationBefore writing anything, DevKit Gen can show you the generation plan. You can see what will be:
Only after confirmation does the extension apply the plan. ScreenshotsGenerate a React Structure
Choose a React preset and generate the architecture inside your workspace. Generate a Single File
Select a generator, enter the name, preview the plan, and generate the file. Generate an Express CRUD Resource
Generate a complete backend resource without manually creating every layer. Safe Merge Report
Existing files are skipped and reported instead of being modified. Quick Start1. Install DevKit GenInstall the extension from the VS Code Marketplace. Or install the packaged VSIX manually:
2. Open a ProjectOpen the React, Express, Node.js, or empty workspace where you want to generate files. 3. Open the Command PalettePress:
Search for:
You will see the available commands. 4. GenerateChoose one:
Follow the prompts. CommandsAll commands are available from the VS Code Command Palette.
Command IDs:
Generated StructuresReact BasicA simple structure for smaller projects.
React ScalableA more organized structure for larger applications.
Express BasicA lightweight backend structure.
Express MVCA conventional MVC backend layout.
Express REST APIA scalable REST API structure.
The generated output follows the configured language and naming conventions. SafetyThis is the most important part of DevKit Gen. DevKit Gen does not overwrite existing filesSuppose your project already contains:
and DevKit Gen tries to generate the same file. It does not replace it. Instead:
Your existing code stays untouched. What DevKit Gen will never doDevKit Gen will not:
Safe merge behaviourEvery generation request becomes a plan:
The merge engine can create missing files, but it cannot replace existing files. The filesystem write also uses exclusive file creation so a race between checking and writing cannot silently overwrite a file. ConfigurationDevKit Gen provides settings through VS Code Settings.
Recommended defaultsFor most projects:
Supported LanguagesDevKit Gen currently supports:
When language detection is set to ExamplesExample 1 — New React ProjectStart with:
Run:
Choose:
Result:
Example 2 — Existing React ProjectSuppose you already have:
Generate the React structure again. DevKit Gen creates missing files/folders but keeps:
untouched. Example 3 — Express User ResourceRun:
Enter:
DevKit Gen can create:
ArchitectureDevKit Gen is organized into four major layers.
V1 — Safe Generation CoreResponsible for:
The key idea:
Commands do not directly write files. V2 — Project DetectionDetects:
This lets generation adapt to an existing project. V3 — Generator RegistryGenerators are registered using metadata. A generator describes:
The UI reads from the registry, so adding a generator does not require a large switch statement. V4 — Presets, UX & Error HandlingHandles:
This keeps command implementations small and predictable. TestingDevKit Gen includes an automated test suite that runs inside a real VS Code Extension Development Host. Run:
The test pipeline performs:
The test suite covers:
A successful run should report all tests passing. PackagingTo create a VSIX package:
This produces a file similar to:
Install it locally with:
RoadmapDevKit Gen is intentionally designed so more generators and frameworks can be added without rewriting the core. Planned ideas
The architecture is built around registries and adapters, making these additions incremental rather than a rewrite. RequirementsFor users
For development
DevelopmentClone the repository and install dependencies:
Compile:
Run tests:
Create a VSIX:
For local extension development, open the project in VS Code and press:
This launches the Extension Development Host. Project PrinciplesDevKit Gen follows a few simple principles: 1. Safety firstExisting code belongs to the developer. 2. Generate, don't replaceThe extension creates missing architecture instead of taking control of the project. 3. Detect before generatingThe project should influence the generated output. 4. Keep generators composableSmall generators should be reusable inside larger generators. 5. Keep the core framework-agnosticThe merge engine should not care whether the project is React, Express, or something else. LicenseMIT License. See DevKit Gen — Build your architecture. Keep your code. |