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

@jackchim/medusa-oas-cli

v2.11.0

Published

OAS CLI

Readme

medusa-oas-cli - 0.1.0 - experimental

A command-line tool for all OpenAPI Specifications (OAS) related tooling.

Install

yarn add --dev @jackchim/medusa-oas-cli

Install in the global namespace is not yet supported. ~~npm install -g @jackchim/medusa-oas-cli~~

Configuration / First time setup

N/A

How to use

yarn medusa-oas <command>

Command - oas

This command will scan the @jackchim/medusa package in order to extract JSDoc OAS into a json file.

The command will output one of three the files admin.oas.json, store.oas.json or combined.oas.json in the same directory that the command was run.

Invalid OAS with throw an error and will prevent the files from being outputted.

--type <string>

Specify which API OAS to create. Accepts admin, store, combined.

The combined option will merge both the admin and the store APIs into a single OAS file.

yarn medusa-oas oas --type admin

--out-dir <path>

Specify in which directory should the files be outputted. It accepts a relative or absolute path. If the directory doesn't exist, it will be created. Defaults to ./.

yarm medusa-oas oas --out-dir

--paths <paths...>

Allows passing additional directory paths to crawl for JSDoc OAS and include in the generated OAS. It accepts multiple entries.

yarn medusa-oas oas --paths ~/medusa-server/src

--base <path>

Allows overwriting the content the API's base.yaml OAS that is fed to swagger-inline. Paths, tags, and components will be merged together. Other OAS properties will be overwritten.

yarn medusa-oas oas --base ~/medusa-server/oas/custom.oas.base.yaml

--dry-run

Will package the OAS but will not output file. Useful for validating OAS.

yarn medusa-oas oas --dry-run

--force

Ignore OAS errors and attempt to output generated OAS files.

yarn medusa-oas oas --force

Command - docs

Will sanitize OAS for use with Redocly's API documentation viewer.

--src-file <path>

Specify the path to the OAS JSON file.

yarm medusa-oas docs --src-file ./store.oas.json

--out-dir <path>

Specify in which directory should the files be outputted. Accepts relative and absolute path. If the directory doesn't exist, it will be created. Defaults to ./.

yarn medusa-oas docs --src-file ./store.oas.json --out-dir ./docs`

--config <path>

Specify the path to a Redocly config file.

yarn medusa-oas --src-file ./store.oas.json --config ./redocly-config.yaml

--dry-run

Will sanitize the OAS but will not output file. Useful for troubleshooting circular reference issues.

yarn medusa-oas docs --src-file ./store.oas.json --dry-run

--clean

Delete destination directory content before generating the docs.

yarn medusa-oas docs --src-file ./store.oas.json --clean

--split

Creates a multi-file structure output. Uses redocly split internally.

yarn medusa-oas docs --src-file ./store.oas.json --split

--preview

Generate a preview of the API documentation in a browser. Does not output files. Uses redocly preview-docs internally.

yarn medusa-oas docs --src-file ../../../www/apps/api-reference/specs/store.oas.json --preview

--html

Generate a zero-dependency static HTML file. Uses redocly build-docs internally.

yarn medusa-oas docs --src-file ./store.oas.json --html