Hi all, I'm DK.

I've built a few products before and every time I hated writing fragile untyped fetch requests for the ever-changing backend REST apis. I tried to solve it by using tRPC but tRPC caused build pipelines to become unnecessarily heavy and complicated. Also, tRPC/gRPC might not be suitable for everyone and REST is widely used.

Rn we are building a react project and want to tear out tRPC but don't want to let go of type safety and validation. But we also found a lack of SDK generators that are simple, featured and free cough stainless cough.

So I build SDKing - a Typescript SDK generator to build type safe and zod validated SDKs from any OpenAPI spec, local or remote. Just run `npx sdking -i path/to/openapi.yaml -o path/to/sdk` and your SDK will be generated in your codebase making sure you have ultimate ownership and customisability.

I know not everyone has an OpenAPI spec ready. If you're running FastAPI SDKing can generate SDK from your FastAPI backend with just 1 line change (see README).

0 comments