Congrats Sagar and team - excited that someone is working on this! OpenAPI generator and swagger codegen has almost always produced unreadable and unusable SDKs for me, especially when my schema contains any model composition or polymorphism with allOf/anyOf/oneOf. Have you guys written this entirely from scratch or done your own mustache templating on top of openapi-generator?
Show HN: An opinionated and statically-typed TypeScript SDK generator
21–30 of 47 posts
Re: Show HN: An opinionated and statically-typed TypeScript SDK generator
#22This is fantastic!
Re: Show HN: An opinionated and statically-typed TypeScript SDK generator
#23Re: Show HN: An opinionated and statically-typed TypeScript SDK generator
#24Re: Show HN: An opinionated and statically-typed TypeScript SDK generator
#25Congrats on the launch, Sagar!
Re: Show HN: An opinionated and statically-typed TypeScript SDK generator
#26Reminds me of how visual studio used to produce .net client code in vb or c# when you gave it a wsdl URL. You could do the same thing with Delphi. It had a command line program to generate a client interface. And a Ruby gem could just generate calls on the fly with method_missing. Turns out that having a web service definition language and concrete types to generate it automatically is a really useful thing. A thing…
Re: Show HN: An opinionated and statically-typed TypeScript SDK generator
#27Re: Show HN: An opinionated and statically-typed TypeScript SDK generator
#28Wow, what a coincidence :D We are about to launch something similar: https://samen.io
Re: Show HN: An opinionated and statically-typed TypeScript SDK generator
#29Congrats on launching! For anyone looking for more (open-source) alternatives, here's one I just discovered today: https://microsoft.github.io/kiota/
I've had success with NSwag for generating both TypeScript and C# clients. Highly customisable - maybe too customisable with the config being quite complex - there's CLI & GUI tools to generate configs though. https://github.com/RicoSuter/NSwag We use the C# client generator in our public sector project and package the results up within Nuget, works a treat.
Re: Show HN: An opinionated and statically-typed TypeScript SDK generator
#30Wow, what a coincidence :D We are about to launch something similar: https://samen.io
very cool ! So Samen is a way to manage types across frontend and backends?