npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

pigeon-nest-mapper

v1.1.1

Published

A CLI tool to scan NestJS projects and import them into API clients like Insomnia and Postman

Readme

🐦 Pigeon - NestJS Route Mapper CLI

Pigeon is a CLI tool that scans a NestJS project and automatically maps all API routes into an Insomnia or Postman-compatible import file. 🚀

🔍 It recursively searches for controllers, extracts all endpoints, and organizes them neatly into Insomnia or Postman collections.

📦 Available on NPM: Pigeon Nest Mapper on NPM 🔍 GitHub Repository: Pigeon on GitHub


✨ Features

  • 🔍 Scans NestJS projects to detect all @Controller() routes.
  • 📁 Groups routes by controller inside Insomnia or Postman.
  • 📂 Recursively finds controllers in the entire project.
  • 📝 Exports to insomnia.json or postman.json for easy import.
  • 💡 Simple CLI usage with just one command.
  • 🕊️ New: Now you can choose between Insomnia (default) and Postman, or exit the CLI with "Quit Pigeon".

📥 Installation

From NPM (Recommended)

npm install -g pigeon-nest-mapper

From Source

  1. Clone the repo:
    git clone https://github.com/claquettes/pigeon.git
    cd pigeon
  2. Install dependencies:
    npm install
  3. Build & link:
    npm run build
    npm link

🚀 Usage

Once installed globally, run:

pigeon /path/to/nestjs-project

Example:

pigeon /home/user/my-nest-app

This will prompt:

🪹 Scanning NestJS project at: /home/user/my-nest-app 🐦
Choose the export format:
  ❯ Insomnia
    Postman
    ──────────
    Quit Pigeon
  • If you choose Insomnia, the output file will be insomnia.json.
  • If you choose Postman, the output file will be postman.json.
  • If you choose Quit Pigeon, the CLI will exit.

After selecting a format:

🎉 Scan Completed! Routes Found:
📁 Controller: AuthController
➡️  POST /auth/register
➡️  POST /auth/login

📁 Controller: UserController
➡️  GET /user/profile
➡️  POST /user/money

📁 Insomnia import file generated at: /home/user/my-nest-app/insomnia.json

Then, import the generated file (insomnia.json or postman.json) into your API tool to test all routes instantly! 🚀


📦 Dependencies

Pigeon relies on:

  • 📜 commander - CLI command parsing.
  • 🏗 ts-morph - TypeScript AST parsing.
  • 🗂 fs-extra - File system utilities.
  • 🎨 chalk - Colored terminal output.
  • 🎛️ inquirer - CLI user input handling.

🌟 Contributing

  • Fork this repository
  • Create a feature branch (git checkout -b feature-name)
  • Make your changes and commit (git commit -m "Added cool feature")
  • Push the branch (git push origin feature-name)
  • Open a Pull Request 🚀

📝 License

MIT © Claquettes