Show HN: SDKing - Generate type safe Frontend SDK of any FastAPI/OpenAPI Backend https://ift.tt/X0ALZfh
Show HN: SDKing - Generate type safe Frontend SDK of any FastAPI/OpenAPI Backend 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). https://ift.tt/vMFoReC March 30, 2025 at 05:51AM
Show HN: SDKing - Generate type safe Frontend SDK of any FastAPI/OpenAPI Backend https://ift.tt/X0ALZfh
Reviewed by Technology World News
on
March 30, 2025
Rating:
No comments: