Show HN: TypeAPI – An OpenAPI alternative optimized for code generation
1–10 of 22 posts
Re: Show HN: TypeAPI – An OpenAPI alternative optimized for code generation
#2My current way of achieving codegen sdk w openapi is using the readme/api sdk framework maker, if you have good specs it works pretty great.
Add tests to the sdk, and you're both testing your openapi implementation, docs, and sdk in one test
Re: Show HN: TypeAPI – An OpenAPI alternative optimized for code generation
#3Re: Show HN: TypeAPI – An OpenAPI alternative optimized for code generation
#4So why would I chose this? How do I even implement it on the server? There's a lot of talk about client libraries, even with OpenAPI as an output format (nice!), but what about the server side?
Re: Show HN: TypeAPI – An OpenAPI alternative optimized for code generation
#5Re: Show HN: TypeAPI – An OpenAPI alternative optimized for code generation
#6Very disingenuous to compare this to an LLM, it has none of the advantages and fails to differentiate itself from many preceding peers.
Re: Show HN: TypeAPI – An OpenAPI alternative optimized for code generation
#7Aren't there enough tools already for OpenAPI to do this?
Re: Show HN: TypeAPI – An OpenAPI alternative optimized for code generation
#8Re: Show HN: TypeAPI – An OpenAPI alternative optimized for code generation
#9Looks interesting My current way of achieving codegen sdk w openapi is using the readme/api sdk framework maker, if you have good specs it works pretty great. Add tests to the sdk, and you're both testing your openapi implementation, docs, and sdk in one test
Would you mind expanding on what you're talking about here? It sounds intriguing, I'm just not following.
Re: Show HN: TypeAPI – An OpenAPI alternative optimized for code generation
#10Contrary to this approach, we (https://WunderGraph.com) ingest one or more OpenAPI and GraphQL apis and combine them into a backend for frontend. We have code generators for all major frontend frameworks, like react, svelte, Vue, solid, astro, etc... These don't just make calling APIs type-safe but also handle authentication, etc...
The BFF approach allows us to securely inject API keys or add a middleware using Typescript.
I'm curious what people think of this approach. Our users don't usually integrate one or two APIs but rather 20 or more. I guess it would be quite expensive if you had to write a custom specification for each service.