{"repo":"httptoolkit/openapi-directory-js","free":true,"listed":false,"github":"https://github.com/httptoolkit/openapi-directory-js","clone":"git clone https://github.com/httptoolkit/openapi-directory-js.git","description":"Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS","language":"TypeScript","stars":28,"topics":["openapi3","openapi","collection","swagger","searchable"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"An OpenAPI Directory for JS Part of HTTP Toolkit: powerful tools for building, testing & debugging HTTP(S) This repo builds & bundles the OpenAPI Directory, so you can easily find, require and use any OpenAPI spec from the directory in your JS projects. It provides files that can be individually required or remotely downloaded (via https://unpkg.com/openapi-directory/) for every API in the collection, and an index to quickly find the relevant OpenAPI spec for a given URL. All specs are: Pre-parsed and exposed as JavaScript objects (not YAML strings). Converted to OpenAPI v3. Pre-bundled with all external $refs. That means you can import them, and immediately & consistently start using them. How to use it First up, install it with: All OpenAPI specs can be now required with: (or read from https://unpkg.com/openapi-directory/api/ .json ) The easiest way to obtain a spec id is to use the index. You can look up a URL in the index with: findApi takes a URL (host and path, without the protocol) within any API, and will return either: Undefined, if there is no matching APIs. A string spec id, if there is exactly one API that's relevant to that URL. A list of spec ids, in rare cases where multiple specs may cover the same URL. Alternatively if you know in advance which spec you want you can require it directly. The id for every spec in the directory is made up of the provider name, followed by a slash and the service name if a service name exists. Some example ids: xkcd.com (provider","default_branch":null,"files":null,"tree":[],"storefront":"/r/httptoolkit","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/httptoolkit/openapi-directory-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}