openapi-devtools
curlconverter
openapi-devtools | curlconverter | |
---|---|---|
9 | 6 | |
3,795 | 7,156 | |
- | 0.9% | |
7.6 | 7.6 | |
29 days ago | about 1 month ago | |
TypeScript | TypeScript | |
MIT License | 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.
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...
curlconverter
-
Convert Curl Commands to Code
Simple way would be to add a “curl” options, looks like you’d just need to write up a method that matches this Request interface [0] to some curl command substrings you mash together.
Problem is of course: the headers and options are all going to be included. You could make it so it organizes them better though, maybe indenting and grouping like-options together so it’s easier to remove stuff.
[0] https://github.com/curlconverter/curlconverter/blob/e4b6fb74...
-
Show HN: OpenAPI DevTools – Chrome ext. that generates an API spec as you browse
I made a fork of the Chrome DevTools that adds exactly this. You can tell Chrome to use a different version of the DevTools if you start it from the command line
https://github.com/curlconverter/curlconverter/issues/64#iss...
- Program that converts a curl call into python code?
-
Ask HN: What companies are embracing “HTML over the wire”?
Someone added a ColdFusion Markup Language generator to https://curlconverter.com/cfml/ last year and after a few months I decided to remove it since I've never heard of it so nobody could possibly be using it, and the next day the guy who added support for it and 3 other people complained about it, so it seems like they're out there.
https://github.com/curlconverter/curlconverter.github.io/pul...
-
I absolutely love web scraping.
Relevant tools: - Browser dev tools and front-end tooling to debug JS and reconstruct requests in your code - grep.app and SourceGraph to check open-source parsers for some URLs (often, there are such repositories) - curlconverter to quickly draft a script from the cURL command - Regex and regex playgrounds to extract data from inline JavaScript - GraphQL introspection tools - Optionally, Fiddler or Wireshark to intercept and debug network requests (I don't use but my teammate does)
-
Convert curl commands to code in several languages
Original author here. Many smart people have contributed code over the years, but one warrants special mention.
About a year ago, verhovsky showed up out of nowhere. He rewrote the core of the application and increased the professionalism across the board. (dedicated domain, github page hosting, UI refresh, privacy improvements, and much more)
The tree-sitter PR is a monster achievement: https://github.com/curlconverter/curlconverter/pull/278
Search for parseAnsiCString in there. I don't think that had ever been implemented in JavaScript before.
For you, verhovsky, 10x engineer might be an understatement. Thank you!
What are some alternatives?
mitmproxy
curl-to-php - Convert curl commands to PHP code in your browser
mockoon - Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.
NSwag - The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
elements - Build beautiful, interactive API Docs with embeddable React or Web Components, powered by OpenAPI and Markdown.
curl-to-go - Convert curl commands to Go code in your browser
scalar - Beautiful API references from OpenAPI/Swagger files ✨
blog
apiclient-pydantic-generator - This code generator creates APIClient app from an openapi file.
rosso - Data parsers and formatters
api2ai - Create API agents from OpenAPI Specs
playwright_stealth - playwright stealth