Automatically serve Swagger ui for Api Gateway documentation

Search for a command to run...

No comments yet. Be the first to comment.
When developing a serverless function over AWS lambda and APIGateway, it is very useful to export the documentation as a swagger file, and create API documentation to your API. to make the process smooth I created an npm module apigateway-export-tool...
Your team has 14 versions of the same code review skill across 5 repos, with no way to sync them. when one improves, the others don't. drop a folder in .claude/skills/ and pray nothing drifts. source

AI agents are unreasonably good at writing SQL. They get specific error messages, fix their own mistakes in one retry, and can introspect query performance with EXPLAIN ANALYZE before you even ask. No

n8n has over 400 integrations. Zapier claims 7,000+. Every single one was hand-built, tested against a moving API, and will eventually break when that API ships a v2. The entire workflow automation in

Part of the "Your Next Startup" series, where I break down startup ideas I think are worth building. Auth0 sold for \(6.5B. Okta is worth \)15B+. CyberArk, Delinea, BeyondTrust, all printing money fro

For as long as software has existed, we've been building two doors into our systems. Door one: the UI, a carefully designed surface where humans point, click, and occasionally rage-quit. Door two: the

When developing serverless functions and an API on AWS cloud platform, you also create an open API definition (swagger documentation), to download the file easily from the command line you can use tools like aws-cli or npm package.
OK! so now what? we have the swagger file an ugly JSON or YAML that doesn't really help us by itself, so now we need to use swagger UI, or swagger editor, to see and interact with our API documentation.
Again why not automate the process, micro-swagger was born, and what we doing with micro-swagger is connecting these two steps into one elegant process, micro-swagger will download and serve the file locally for you to use and interact with.
npm i -g micro-swagger
micro-swagger start
This is it, the browser will pop up with the UI, fetching the API docs from AWS API Gateway (the first load is slow if you have many APIs), in the list you can pick a stage, like prod, and you will get a list of all the APIs in this stage, you can use the swagger UI by clicking the name to the editor by clicking the pencil icon.
