HACKER Q&A
📣 besil

Htmx or SPA


I'm a CTO & co-founder of an early stage fintech start-up (EU). We have to build our MVP for February and other founders. We have some funds (<1M).

Our product has very little interaction and reactiveness: it's primary a dashboard with a lot of backend logic (AI). I'm choosing the tech stack: Django will be the foundation, since I'm primary a django dev and other co-founders know python.

I'm in the middle of a front-end blues: should we go with a React SPA (+nextjs) or choose html + htmx?

I've read a lot on htmx and looks like a very good technology. I also used it in some hobby projects and fell in love. I have very poor React experience, but I know it's roaring in the FE market.

Just wondering if anyone used htmx as primary FE tech and want to share feedback. Thanks in advance folks!


  👤 rlawson Accepted Answer ✓
I helped scale a startup from less than 10 to 200 people as CTO, doesn't make me an expert but means I understand the pressure you are under. Time is your most precious resource.

  1. Just get it working without any js.
  2. Go back and sprinkle htmx for interactivity if you have time.
  3. Launch and start making money
  4. If you need even more bling - hire some FE devs and go to town (only *after* your product has revenue to support it)

👤 satya71
Our stack is that Django + htmx + Alpine. I wouldn’t say htmx an unalloyed joy to use. However, it’s very good at what it does and stable.

Also, will you need to support an API product or a mobile frontend? Either of those could change the calculus in favor of React or something similar.

I wish there were a more stable frontend framework that didn’t require constant maintenance.


👤 graboid
Since you mentioned little interaction and reactiveness, I would say go for htmx. At work, we have a large MPA in ASP.NET. If a page is simple enough, it is done in Htmx. If it requires lots of interactivity, we use Vue. But I tend to push the boundary on what counts as enough interactivity to warrant the use of Vue very far, and I prefer to do most stuff in htmx these days.

👤 solardev
If I were you I wouldn't build the frontend from scratch. There are like a million drop in dashboards that you can buy for like $100 that can be easily hooked up to your backend. Stuff like MUI and probably a bazillion others. Just change the styling a bit if you need to. But that's way less work than trying to build and maintain a bespoke system.

👤 gardenhedge
I'm a fan of Remix Run - full stack js framework based on React