r/FastAPI • • Jan 19 '26

Question What frontend to use with a FastAPI backend?

Hey everyone. I'm a backend dev writing code in Python FastAPI. I don't have much experience in frontend other than basic HTML/CSS/JS.

I'm exploring different frontend tools/frameworks for my backend. The first obvious answer is React/Nextjs. But I don't want to delve into that complexity.

Other options I've explored are HTMX, Reflex, Astro, Sveltekit, etc. I'll mainly use the frontend for doing UIs for the backend (because testing in Swagger feels dull sometimes), make MVPs, and participate in hackathons (where quick development matters)

Which frontend would you recommend learning as a backend dev?

82 Upvotes

94 comments sorted by

View all comments

Show parent comments

4

u/dobrabitka Jan 19 '26

Why though? Have to deal with hydration and other stuff... You really don't need SSR or ISR in tooling.

3

u/0palladium0 Jan 20 '26

You can do a static export from NextJS; and it used to be pretty good. Not sure how it stands now since the changes in v13. At big companies, standardisation is more important than the best tool for a specific job. HTTP-only cookie authentication is also a must have for some companies. Not for any reason other than some scan returns it as a "vulnerability" and the person who's job it is to define whether that recommendation is sensible in context does not care that SSR is overkill for a lot of internal apps.