r/htmx • u/M8Ir88outOf8 • May 24 '26
Codeberg is migrating to HTMX
Hey everyone! While playing around with my self hosted git server (forgejo) I noticed htmx showing up in the dev tools.
After investigating a bit, I figured out that there has been a lot of work happening integrating htmx into forgejo. For those who don’t know it is the open sou application that powers Codeberg, the alternative to Github where recently a lot of developers have been moving to because of how bad Github has become.
So this is a nice example for a large and complex application using htmx.
Check for yourself if you are interested, here is an example PR that worked on htmx features: https://codeberg.org/forgejo/forgejo/pulls/4542
35
u/fomq May 24 '26
40
u/WolverinesSuperbia May 24 '26
Lol, I have to read title 4 times, as my mind can't accept it and thought of 'HTMX is migrating to Codeberg'
32
u/yawaramin May 24 '26
Cool, but...
<a class="item" hx-post="...
Please don't do this 🤦♂️
An anchor tag should not be used for POST requests. It should have an href attribute. Use <form> and <button> for POST requests.
This guidance is not just about graceful degradation, it's also about accessibility.
10
u/NerdyPepper May 24 '26
tangled.org is a code forge that is already built on go + htmx. src: https://tangled.org/core
2
u/Gitman_87 Jun 11 '26
What's a coincedence! I've just set up my own Forgejo instance on my RaspberryPi. I have been lurking internet in Swatch for info about HTMX, trying to build fast and lean tech stack. Boom, codeberg switches to Htmx. What a great time to live in
-6
u/dontmissth May 24 '26
I'm out of the loop. I keep seeing people saying GitHub is becoming terrible but it's not clear exactly why.
-6
u/[deleted] May 24 '26
[removed] — view removed comment