Pigeon: generate Insomnia and Postman collections from NestJS
Npm package
Node.js NestJS API Brief
Pigeon is a Node.js CLI that scans NestJS projects and generates route exports ready to import in Insomnia or Postman.
Table of contents
In modern web development, efficient API management is crucial. Integrating APIs into client tools like Insomnia or Postman can be tedious, especially for large NestJS projects.
Main Technologies Used
- Node.js: Pigeon is built on Node.js, ensuring cross-platform compatibility and performance.
- NestJS: Tailored specifically for NestJS applications, leveraging its decorators and structure.
- TypeScript: Developed in TypeScript for type safety and enhanced developer experience.
Key Features ✅
- Automatic Route Detection: Scans the entire NestJS project to detect all @Controller() routes.
- Organized Grouping: Groups routes by controller for clarity in API clients.
- Recursive Search: Recursively finds controllers throughout the project structure.
- Export Options: Exports mappings to insomnia.json or postman.json for easy import.
- Simple CLI Usage: Execute with a single command for quick results.
- Client Selection: Choose between Insomnia (default) and Postman, or exit the CLI with “Quit Pigeon”.
Development & Challenges
Developing Pigeon involved parsing NestJS project structures to accurately identify and map routes. Ensuring compatibility with both Insomnia and Postman formats required meticulous attention to their respective import schemas.
Project Access & Screenshots 📸
🔗 GitHub Repository https://github.com/Claquettes/pigeon
📦 NPM Package https://www.npmjs.com/package/pigeon-nest-mapper