Live data from Hacker News

Show HN: An opinionated and statically-typed TypeScript SDK generator

easysdk.xyz

31–40 of 47 posts

Re: Show HN: An opinionated and statically-typed TypeScript SDK generator

#31

Earlier quoted context omitted.

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.

Yeah Nswag is great, but pretty specific to the .NET ecosystem if i understand correctly ? Ideally we'd like this to become a universal generator where any dev/team/company publishing an API gets typed and idiomatic clients, including the long tail of languages.

It can work with any Swagger/OpenAPI spec AFAIK, does run on .NET though. Other than running it if you're just generating a TS client you don't need to be part of the .NET ecosystem at all.

But I like your idea of the universal generator. NSwag isn't the most friendly of things to configure & regenerate so something like your lovely site will make it easier for people. Best of luck with the project!

Re: Show HN: An opinionated and statically-typed TypeScript SDK generator

#32

Interesing product, congrats! Would you mind to share, how the animation was made? I would imagine sth. like blender + after effects + lottie..

Thanks! Spot on. For embedding in the site, we used a lottie animation with the lottie-web NPM library. As for the lottie animation, I worked with a contractor on fiverr (this is him: https://www.fiverr.com/meerazzum?source=order_page_summary_s...). Would absolutely recommend him. I gave him a sloppy figma mockup and he brought it to life.

Let me know if you have more questions.

Re: Show HN: An opinionated and statically-typed TypeScript SDK generator

#33

Earlier quoted context omitted.

very cool ! So Samen is a way to manage types across frontend and backends?

Thanks! Yes, it will do that automatically by generating an SDK for your client (which will include all types you expose on your backend).

i see you went the way of having a basic IDL ? looks nice and succint like protobuff

Re: Show HN: An opinionated and statically-typed TypeScript SDK generator

#35

Interesing product, congrats! Would you mind to share, how the animation was made? I would imagine sth. like blender + after effects + lottie..

Thanks! Spot on. For embedding in the site, we used a lottie animation with the lottie-web NPM library. As for the lottie animation, I worked with a contractor on fiverr (this is him: https://www.fiverr.com/meerazzum?source=order_page_summary_s... ). Would absolutely recommend him. I gave him a sloppy figma mockup and he brought it to life. Let me know if you have more questions.

Thank you for the comprehensive answer, yeah he is good!

Re: Show HN: An opinionated and statically-typed TypeScript SDK generator

#36
post #34

If anyone finds it useful, I have a Maven plugin that does something similar for Java (Java -> TypeScript) For anybody that still uses Java. :D https://github.com/BlueCircleSoftware/bluecircle-json-interf...

very cool - reminds me we should build a vscode plugin :D

Re: Show HN: An opinionated and statically-typed TypeScript SDK generator

#37

Earlier quoted context omitted.

Thanks! Yes, it will do that automatically by generating an SDK for your client (which will include all types you expose on your backend).

i see you went the way of having a basic IDL ? looks nice and succint like protobuff

the web world is missing a nice IDL - OpenAPI is honestly way too much !

Re: Show HN: An opinionated and statically-typed TypeScript SDK generator

#39
post #7

Looks pretty cool. Any eta on golang support?

No firm ETA right now, but it's something we're currently working on :) Will send you a private message when it's ready.

You're working on golang support but don't even have C# listed on your roadmap?

Looking at the TIOBE index, the market for C# language products is more than 5x bigger than the market for golang products.

Golang might be more popular here on hacker news, but if you're running a business, C# is a disproportionately important language compared to what you'd think if you only read posts on HN.

Post reply on HN