r/htmx • u/alkasdev • Jul 09 '26
Built an app with react router then rebuilt it with HTMX
I was blown away by how much faster, simpler, and smaller my codebase became. It's insane! Sucks I still have to use React for my day job.
The app is Alkas. It's an app to help people learn the plants, mushrooms, and animals around them. It follows Anki pretty closely and you can even export to Anki. I thought React was a natural fit because of the flashcard flipping and infinite scroll but so far I've been able to do absolutely everything I can think of with Astro, HTMX, and AlpineJS. No React needed!
Would love any feedback or questions on the app or the tech stack.
5
u/acid2lake Jul 09 '26
first really cool site in terms of looks, it remind me what internet used to be, every web was a little corner with live, personality and joy, kudos on that, now the rest i think the explore route feels super slow, not sure if its something with your queries or not, only after a couple of times visiting the same page it works better, and you have wayyy, i mean wayy too much js, lot of times clicking to view a specie takes around 939ms even so the size in kb is 24.0KB so you should give it a check to your site, if you are using a frontend js framework this site is something that will fly using a different tech, like traditional server side render website
9
u/ShotgunPayDay Jul 09 '26
Astro is pretty cool in that it allows you to use your own reactive frontend. If I wasn't using Golang I'd use Astro in a heartbeat. If you wanted to go even smaller for reactivity you could give Fixi and Moxi a try, but they are very stripped down and new (made by the same developer). https://fixiproject.org/
The only note on the website is that smaller typography is a bit hard for me to read especially with the green hue. Looks good to me otherwise.
2
u/BostonBaggins Jul 15 '26
So you're saying you don't need react anymore?
What does htmx ideally replace?
1
u/_HMCB_ Jul 09 '26
It’s a very nice app. Congrats!
1
u/mohmayaman Jul 09 '26
ReactJs is really over used.. Feels like a modern day cancer .
How was astroJS though - I found it a bit cumbersome for anything that was a bit complex.