Devnest Extension — UI-First Project Generator
A VS Code and Google Antigravity compatible extension providing a streamlined, UI-first wizard for generating production-ready full-stack web applications and reusable architecture modules.
🚀 Features
1. Dedicated Activity Bar Integration
- Devnest icon integrated directly into the Activity Bar.
- Dedicated primary sidebar webview view.
- Zero manual Command Palette invocations required.
2. Guided Project Creation Wizard
- Default Stack: Predefined battle-tested MERN stack (React + Vite, Node + Express, MongoDB + Mongoose, Basic CSS, ES Modules).
- Custom Stack: Choose your preferred database (MongoDB, PostgreSQL, MySQL, Supabase, No Database) and ORM (Prisma, Mongoose, Sequelize, None) with real-time compatibility filtering.
3. Reusable Module Ecosystem
Support for all 6 Devnest production modules with automatic transitive dependency resolution:
- Authentication: JWT, bcrypt password hashing, token versioning, session invalidation, protected routes.
- Google OAuth: Google Identity Services, OAuth2 flow, account linking (auto-selects Authentication).
- Email Service: Nodemailer, SMTP configuration, rate limiting, header-injection protection.
- OTP Verification: Keyed HMAC passcodes, attempt limiting, expiry, single-use enforcement (auto-selects Email Service).
- Password Reset: Cryptographic tokens, email links, secure password updates (auto-selects Authentication + Email Service).
- Image Upload: Cloudinary integration, Multer buffer streaming, format/size validation.
4. Interactive Project Preview
- Summary: Project name, target folder, stack components, creation type.
- Module Graph: Active modules and auto-included prerequisites.
- Dependencies: Exact npm dependencies parsed directly from generated
package.json descriptors.
- Collapsible File Tree: Hierarchical directory and file tree computed directly from the generator's actual output.
- Safety Checks: Overwrite protection and non-empty directory detection.
5. Extension Host Filesystem Writer
- Multi-stage real progress reporting (validating, generating, creating directories, writing files).
- Path traversal protection and absolute path validation.
- One-click actions to open generated projects in current/new windows or reveal in system explorer.
🛠️ Architecture
Webview UI (Sidebar)
│ Project Configuration (messages)
▼
Extension Host (src/views/devnestSidebarProvider.js)
│
▼
Project Generator Service (src/services/projectGenerator.js)
│
▼
Existing Devnest Generator (generator/stackGenerator.js & moduleGenerator/)
│
▼
Generated File Descriptors [{ path, content }]
│
▼
Filesystem Writer (src/services/fileWriter.js)
│
▼
User's Local Project Directory
📦 Building & Installing
1. Run Verification Suite
npm test
2. Package into VSIX
npm run package
This generates devnest-extension-1.0.0.vsix in the project root.
3. Install in VS Code or Google Antigravity
code --install-extension devnest-extension-1.0.0.vsix
or via the Extensions view: ... (Views and More Actions) → Install from VSIX...
📄 License
MIT
| |