har-to-openapi
openapi-devtools
har-to-openapi | openapi-devtools | |
---|---|---|
1 | 9 | |
70 | 3,795 | |
- | - | |
5.5 | 7.6 | |
9 months ago | about 1 month ago | |
TypeScript | TypeScript | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
har-to-openapi
-
Show HN: OpenAPI DevTools – Chrome ext. that generates an API spec as you browse
Genson-js is used to merge JSON Schema objects. Essentially there are 5 schemas that we care about in each request, for request bodies, request headers, response bodies, response headers, and query parameters. Each endpoint (which may or may not be parameterised) has only one schema for each of these values.
The idea for a crawler is a good one. The core logic that handles spec generation is decoupled from everything else, so it can be extracted into its own library.
But there are approaches that exist for this already, such as har-to-openapi.
https://github.com/jonluca/har-to-openapi
openapi-devtools
- U.S. National Park Service API
-
Ask HN: Working with CPG Retail Data
Not specific to the CPG realm, but I've had some very good luck working with the OpenAPI-devtools Chrome Extension[1] (previous discussion here on hackernews[2]) to discover the underlying APIs of various sites that I want to scrape data from.
[1] https://github.com/AndrewWalsh/openapi-devtools
[2] https://news.ycombinator.com/item?id=38012032
- OpenAPI DevTools: Chrome extension that generates API specs for any app or website
- OpenAPI DevTools - Chrome extension that generates API specs for any app or website
- FLaNK Stack Weekly for 30 Oct 2023
-
Show HN: OpenAPI DevTools – Chrome ext. that generates an API spec as you browse
As a follow up, the algorithm that powers this makes use of the chrome.devtools.network API. Specifically it passes the Request object that is in the HAR 1.2 archive format.
So if you can pass the equivalent of that in Firefox/other browsers to the insert method and switch things up a bit, it should be relatively straightforward. I will think about pulling out the core logic into its own lib.
https://developer.chrome.com/docs/extensions/reference/devto...
https://developer.chrome.com/docs/extensions/reference/devto...
https://github.com/AndrewWalsh/openapi-devtools/blob/main/sr...
What are some alternatives?
gorilla - Gorilla: An API store for LLMs
mitmproxy
api2ai - Create API agents from OpenAPI Specs
mockoon - Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.
curlconverter - Transpile curl commands into Python, JavaScript and 27 other languages
elements - Build beautiful, interactive API Docs with embeddable React or Web Components, powered by OpenAPI and Markdown.
apiclient-pydantic-generator - This code generator creates APIClient app from an openapi file.
scalar - Beautiful API references from OpenAPI/Swagger files ✨
webextension-polyfill - A lightweight polyfill library for Promise-based WebExtension APIs in Chrome