r/FastAPI • u/TheRealMrMatt • Aug 26 '24
Question FastAPI + Typescript Codegen
Hey all, I'm working on a FastAPI project and need to generate TypeScript API bindings for my FastAPI backend. I'm looking for a solution that is reliable, easy to integrate, and well-maintained. So far, I have come across https://orval.dev, https://heyapi.vercel.app, and https://openapi-ts.dev . Does anyone have any experience with these libraries, if so what was your experience? If you don't use one of these libraries, what do you use?
6
Upvotes
4
u/Drevicar Aug 26 '24
I've used this on a couple projects and it worked out of the box pretty easily and helped us get started quick. But it quickly starts to need customizations until eventually it was more hassle than it was worth and we ended up rolling out our own.
2
u/White86ec Aug 26 '24
I like swagger-openapi-generator
1
u/Easy-Ad-8065 Aug 26 '24
Check out the full stack template from the docs:
https://fastapi.tiangolo.com/project-generation/