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

insomnia-plugin-export-to-openapi

v1.0.6

Published

Exports an Insomnia collection to OpenAPI 3.0 YAML format, preserving the folder structure as tags.

Downloads

312

Readme


Key Features

  • One-Click Export: Adds a simple "Export to OpenAPI 3.0" option to your workspace menu.
  • Preserves Folder Structure: Automatically converts your Insomnia request folders and sub-folders into OpenAPI tags, keeping your documentation organized just like your collection.
  • OpenAPI 3.0 Compliant: Generates a valid OpenAPI 3.0 specification in YAML format.
  • Handles Various Request Types: Correctly processes path parameters, query parameters, and request bodies for application/x-www-form-urlencoded, multipart/form-data, and more.
  • User-Friendly: Prompts you to choose a save location for the exported file.

Installation

  1. Open Insomnia.
  2. Go to Application > Preferences > Plugins.
  3. Type insomnia-plugin-export-to-openapi and click Install Plugin.
  4. That's it! No configuration is needed.

Usage

  1. Click on your collection/workspace name in the top-left corner of Insomnia.
  2. From the dropdown menu, select Export to OpenAPI 3.0.
  3. A "Save As" dialog will appear. Choose a name and location for your openapi.yaml file.
  4. Click Save. A confirmation alert will appear upon successful export.

The resulting YAML file can be used with any tool that supports the OpenAPI specification, such as Swagger UI, Redoc, or Postman.

How It Works

This plugin hooks into Insomnia's workspace actions. When triggered, it:

  1. Reads the entire data model of the current workspace, including requests, request groups (folders), and environments.
  2. Recursively processes the folder structure, mapping each folder to an OpenAPI tag.
  3. Iterates through each request, converting its URL, method, parameters, and body into the corresponding OpenAPI path operation object.
  4. Bundles everything into a valid OpenAPI 3.0 specification.
  5. Uses js-yaml to serialize the final object into a clean YAML string.

Contributing

Contributions are welcome! If you have a suggestion or find a bug, please feel free to:

  • Open an issue on the GitHub repository.
  • Fork the repository and submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.