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

apigee-to-openapi-webtool

v0.1.0

Published

A web tool to upload an Apigee proxy bundle (.zip) and generate an OpenAPI specification (YAML) client-side.

Downloads

7

Readme

Apigee Proxy to OpenAPI Web Tool

This tool allows you to upload an Apigee proxy bundle (.zip file) and generate an OpenAPI (Swagger) specification in YAML format. All processing is done client-side in your browser.

Installation

You can install this tool using npm. It's recommended to install it globally if you want to run it as a command, or locally if you want to integrate it into a project.

npm install -g apigee-to-openapi-webtool

(Replace apigee-to-openapi-webtool with the actual unique package name if it's different on npm).

If you install it locally:

npm install apigee-to-openapi-webtool

Usage

If installed globally:

After global installation, you might need to manually locate the package files if a direct command-line interface isn't the primary way it's set up (this package provides a web interface).

A simple way to run it is to use the npx command (for packages that offer a binary or a start script meant for serving):

npx apigee-to-openapi-webtool

This command will attempt to execute the start script defined in the package, which typically serves the index.html file on a local port (e.g., http://localhost:3000).

Alternatively, navigate to the global node_modules folder, find the package directory, and open index.html in your browser. The location of global node_modules can be found by npm root -g.

If installed locally:

  1. Navigate to your project where you installed the package:
    cd your-project/node_modules/apigee-to-openapi-webtool
    (Adjust the path if your local node_modules structure is different or if it's a scoped package).
  2. Serve the index.html file using a simple HTTP server. If you have serve installed (which is a dev dependency of this package), you can run:
    npx serve .
    This will serve the contents of the current directory.
  3. Open your browser and go to the local URL provided by the server (usually http://localhost:3000 or similar).

You should now see the "Apigee Proxy to OpenAPI Generator" web page.

How it Works

  1. Click the "Click to select a .zip file" area to choose your Apigee proxy bundle.
  2. The selected file name will appear.
  3. Click the "Generate OpenAPI Spec" button.
  4. The tool will:
    • Check if an existing OpenAPI (.json or .yaml) specification is present in apiproxy/resources/oas/ within the bundle. If so, it uses that directly.
    • Otherwise, it parses the XML files in apiproxy/proxies/ to infer API paths, methods, and base paths.
  5. The generated OpenAPI specification will be displayed in YAML format in the text area.
  6. You can then "Copy YAML" to your clipboard or "Download YAML" as an openapi-spec.yaml file.

Features

  • Client-side processing: No data is uploaded to any server.
  • Supports .zip Apigee proxy bundles.
  • Prioritizes existing OpenAPI specs within the bundle (apiproxy/resources/oas/).
  • Generates a basic OpenAPI 3.0.0 spec from proxy endpoint definitions if no existing spec is found.
  • Output in YAML format.

Contributing

If you'd like to contribute, please fork the repository and submit a pull request.

License

ISC