⚠️ BETA VERSION — Under active development. Bugs are expected. Use at your own risk.
Currently supports TypeScript and JavaScript only. PHP, C#, and Python support coming in future versions.
Automatically generates complete documentation for your backend project with a single command.
Scans src/, reads package.json, analyzes routes, environment variables, security, commits and more — everything becomes organized markdown files inside a docs/ folder.
What is generated
| File |
Content |
README.md |
Project overview, technologies, scripts and installation |
LIBS.md |
All dependencies with version and description |
ROUTES.md |
API routes grouped by HTTP method |
ENV.md |
Environment variables detected automatically |
SECURITY.md |
Security mechanisms based on installed dependencies |
CHANGELOG.md |
Commit history with semantic emojis |
CONTROLLERS.md |
Methods, parameters and return type of each controller |
SERVICES.md |
Methods of each service |
MODELS.md |
Fields, getters, setters and source code |
REPOSITORIES.md |
Methods of each repository |
MIDDLEWARES.md |
Detected middlewares and their type |
SCHEMAS.md |
Zod schemas with fields and validations |
MISC.md |
Files outside the MVC pattern (utils, config, errors) |
How to use
- Open your project in VSCode
Ctrl+Shift+P → DocGen: Generate All Documentation
- The
docs/ folder is created at the root with all files
Output example
CONTROLLERS.md
## 🎯 UserController
| Method | Parameters | Return |
|------------|-----------------------------------|---------------------|
| `getAll` | `req: Request, res: Response` | `Promise<Response>` |
| `register` | `req: Request, res: Response` | `Promise<Response>` |
ENV.md
| Variable | Description | Required |
|-------------|--------------------------------------|----------|
| `DB_HOST` | Database host | ✅ |
| `JWT_SECRET`| Secret key for token generation | ✅ |
LIBS.md
| Lib | Version | Description |
|-------------|-----------|----------------------------------|
| `express` | `^4.18.2` | HTTP framework for Node.js |
| `typeorm` | `^0.3.20` | ORM for TypeScript and JavaScript|
| `zod` | `^3.22.4` | Schema validation |
Automatic detection
Technologies — detects from package.json and documents in README and SECURITY what is being used: JWT, bcrypt, Helmet, CORS, rate limiting, 2FA, Zod, cookies and more.
Environment variables — reads .env, .env.example and scans process.env.X across all files. Normalizes everything to uppercase automatically.
Routes — captures Express pattern (router.get, app.post) and TypeScript decorators (@Get, @Post). Groups by HTTP method with handler and source file.
Commits — reads git log and adds semantic emojis automatically:
| Keyword in commit |
Emoji |
feat, add |
✨ |
fix, bug |
🐛 |
refactor |
♻️ |
doc |
📚 |
test |
✅ |
perf |
⚡ |
security |
🔐 |
remove, delete |
🗑️ |
Expected project structure
The extension works best with projects following the MVC pattern:
src/
├── controllers/
├── services/
├── models/
├── repositories/
├── middlewares/
├── schemas/
├── routes/
├── config/
└── errors/
Files outside these folders are automatically documented in MISC.md.
⚠️ Known limitations (Beta)
- TypeScript and JavaScript only — PHP, C# and Python are not supported yet
- Projects with non-standard folder structures may generate incomplete docs
- Zod schemas must follow the
z.object({}) pattern to be detected
- Git changelog requires an initialized repository with at least one commit
Philosophy
Built by devs, for devs. You write the code, the extension documents it.
License
MIT