NestForge VS Code Extension
Technology Radar
- TypeScript
- VS Code Extension API
- Webviews (HTML/CSS/JS)
- Node.js
- GitHub Actions (Release-please)
The Challenge
While the NestForge CLI is powerful, managing complex Rust architectures, database migrations, and multiple transport layers exclusively via terminal can be daunting for developers used to the "NestJS way." There was a need for a visual bridge that reduces context switching between the editor and the terminal.
Fig 1. User Interaction Flow
The Solution
I developed a comprehensive VS Code extension that wraps the nestforge and nestforge-web CLIs. It transforms command-line arguments into guided UI wizards, adds real-time environment validation, and introduces a visual Module Graph to help developers identify circular dependencies in their Rust codebases.
Scaffolding & Generator Wizards: Guided UI for creating apps, modules, and resources.
Integrated Database Dashboard: Status bar polling and one-click migrations for Nestforge DB.
Visual Module Graph: An interactive directed graph of Rust modules to visualize the architecture.
Environment Validation: Diagnostics for .env files with Quick Fix actions for missing variables.
Multi-CLI Support: Seamlessly drives both the backend (Rust) and web (Frontend) CLIs.
Ecosystem Snippets: Custom Rust snippets for NestForge macros (e.g., #[controller], #[injectable]).