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 🙏

© 2026 – Pkg Stats / Ryan Hefner

springboot2postman

v1.1.3

Published

Generate Postman collections automatically from any Spring Boot project — with or without Swagger

Downloads

406

Readme

SpringBoot2Postman

Generate Postman collections automatically from any Spring Boot project — with or without OpenAPI/Swagger.

Features

  • Dual Strategy Support: Works with OpenAPI specs (JSON/YAML) or directly parses Java source code
  • Static Analysis: No compilation required — parses @RestController annotations directly
  • Spring Boot Aware: Understands @GetMapping, @PostMapping, @RequestParam, @PathVariable, etc.
  • Type Resolution: Automatically converts Java types to JSON Schema
  • Flexible Input: Accepts project paths, file paths, or OpenAPI URLs
  • Large Codebase Support: Parallel processing with configurable concurrency
  • Package Filtering: Include/exclude patterns for targeting specific packages

Installation

npm install -g @springtools/springboot2postman

Or use directly with npx:

npx @springtools/springboot2postman --project ./my-spring-app

Quick Start

# From a Spring Boot project directory
springboot2postman --project . --out api.postman_collection.json

# From an OpenAPI URL
springboot2postman --project https://api.example.com/v3/api-docs --out api.json

# With a custom base URL
springboot2postman --project ./my-app --base-url https://staging.example.com

# Large project with filtering
springboot2postman --project ./large-app --include "com.example.api.*" --exclude "*Test*" --concurrency 10

CLI Options

| Option | Description | Default | |--------|-------------|---------| | --project <path> | Project path or OpenAPI URL (required) | — | | --out <file> | Output file path | ./postman_collection.json | | --base-url <url> | Override the base URL in the collection | — | | --format <format> | Output format: postman or openapi | postman | | --include <patterns> | Include only matching packages (comma-separated globs) | — | | --exclude <patterns> | Exclude matching packages (comma-separated globs) | — | | --concurrency <n> | Max parallel file parsing | 5 | | --verbose | Enable verbose logging | false |

How It Works

Strategy Detection

The tool automatically detects the best approach:

  1. URL Input → Fetches and converts OpenAPI spec
  2. OpenAPI File Found → Uses OpenAPI strategy (looks for openapi.json, swagger.yaml, etc.)
  3. Java Controllers Found → Uses Parser strategy (static analysis)

Parser Strategy

When no OpenAPI spec is available, the tool:

  1. Scans for files with @RestController or @Controller annotations
  2. Applies include/exclude filters
  3. Parses controllers in parallel (configurable concurrency)
  4. Extracts endpoint mappings (@GetMapping, @PostMapping, etc.)
  5. Resolves parameter annotations (@PathVariable, @RequestParam, @RequestBody)
  6. Converts Java types to JSON Schema
  7. Builds an OpenAPI specification
  8. Converts to Postman collection format

Supported Annotations

| Controller | Method | Parameter | |------------|--------|-----------| | @RestController | @GetMapping | @PathVariable | | @Controller | @PostMapping | @RequestParam | | @RequestMapping | @PutMapping | @RequestBody | | | @DeleteMapping | @RequestHeader | | | @PatchMapping | |

Error Codes

| Code | Description | |------|-------------| | PROJECT_NOT_FOUND | The specified project path does not exist | | NO_CONTROLLERS_FOUND | No Spring Boot controllers found in the project | | OPENAPI_FETCH_FAILED | Failed to fetch OpenAPI specification from URL/file | | INVALID_OPENAPI | The OpenAPI specification is invalid or unsupported | | PARSE_ERROR | Failed to parse a Java file | | CONVERSION_FAILED | Failed to convert to Postman collection |

Requirements

  • Node.js 16.0.0 or higher
  • npm 7.0.0 or higher