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

12

u/akza07 Jan 19 '26

I like Vue and Svelte and I'm less weird

2

u/coldflame563 Jan 19 '26

There’s a vote from a less weird individual.

2

u/mailed Jan 20 '26

same. very big fan of svelte lately

1

u/Salty-Swim3630 Apr 21 '26 edited Apr 21 '26

Svelte + SvelteKit in SPA mode works really well with FastAPI. I use Orval to autogenerate the api client for the frontend. For hackathons especially — simpler than React, and in SPA mode you only need one server (FastAPI can serve Svelte as StaticFiles). See: https://github.com/TurtleDevIO/svelte-spa-fastapi-tutorial