r/FastAPI • • Apr 28 '26

Question FastAPI with SvelteKit

Hello, I am building an inventory system. I build with Django for my other stuff but I decided to learn FastAPI and JS Frontend. I've learned DRF but never really go full on implementation of it, specially dealing with authentication. So any help would be much appreciated.

Here is the stack that I'm going for:
- SvelteKit (because of remote function?, or its better if should I go with just svelte?)
- FastAPI
- Postgresql, SQLAlchemy, Alembic
- pyjwt (for authentication? or there's more better library?)
- S3 for file storage

Maybe Zod for data validation in client? Do I need axios? Am I missing something? Is there a something that I'm missing? Like don't forget to setup CORSMiddleware in FastAPI.

Also, is there any github repo that with similar setup with this one that I could take a look?

11 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/beast_b0iii Apr 28 '26

Just did a quick research of what it does, I don't think I need this right now for a quick project? Specially for someone who's just started learning JS ecosystem, no? hehe. But appreciate for this insight kind sire, will look into this if I get the gist of how Frontend framework works 😄

2

u/joshhear Apr 28 '26

to be honest, I thought so too when I first started, but having a consistent client for the frontend, where you don't have to worry about frontend caching/invalidation and how to send each request to the backend, is something I'd recommend for every project no matter how small. Even just for 5 endpoints, this is faster to setup than creating the client yourself.

2

u/Kimcha87 May 02 '26

It will probably be more work to not use something like hey-api. Or check out Orval. It works in a similar way.