TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Do you write a lot of SDKs for your APIs?

1 pointsby apraoover 2 years ago
At work, I find myself writing a Python&#x2F;Go&#x2F;JS SDK for every single internal API that I implement. This might even be more prevalent for public facing APIs since creating&#x2F;maintaining public API SDKs for popular languages are table stakes for usage.<p>- Has this generally been true in your experience as well?<p>- If so, are there any hacks to create these SDKs with support for best practices like pagination, retry, etc + update them them when the API changes?

2 comments

ndimaresover 2 years ago
There is a lot of activity in the space of SDK generators. If you have an OpenAPI schema, you should be able to find tooling that can get you 80% of the way there. Here&#x27;s a small app our team put together a couple weeks ago that you might like: <a href="https:&#x2F;&#x2F;easysdk.xyz&#x2F;" rel="nofollow">https:&#x2F;&#x2F;easysdk.xyz&#x2F;</a><p>We&#x27;ve expanded support for Python and Go since we made this. If you&#x27;re interested in testing out the multi-language version, let me know!<p>Some other solutions: -OpenAPI: <a href="http:&#x2F;&#x2F;github.com&#x2F;openapitools&#x2F;openapi-generator" rel="nofollow">http:&#x2F;&#x2F;github.com&#x2F;openapitools&#x2F;openapi-generator</a> -(language specific) Go SDK: <a href="https:&#x2F;&#x2F;github.com&#x2F;deepmap&#x2F;oapi-codegen" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;deepmap&#x2F;oapi-codegen</a><p>Best of luck with finding a solution that works for your use case!
wing328hkover 2 years ago
One way is to auto-generate SDKs using OpenAPI Generator (<a href="http:&#x2F;&#x2F;github.com&#x2F;openapitools&#x2F;openapi-generator" rel="nofollow">http:&#x2F;&#x2F;github.com&#x2F;openapitools&#x2F;openapi-generator</a>) given an OpenAPI spec.