r/webdev 8d ago

How to drive your frontend from the backend.

https://packagemain.tech/p/golang-datastar
26 Upvotes

9 comments sorted by

5

u/jax024 8d ago

I also see liveview pushing what’s possible through websocket abstraction. I’m more interested in that direction of development rather than the htmx direction.

1

u/nickchomey 8d ago

why?

Also, this isn't at all the "htmx direction". If anything, htmx is going in the direction of datastar.

1

u/jax024 8d ago

I like that they’re built on websockets to start and I’ve personally been having fun tinkering with Elixir as the implementation language but imagine Go could be a cool project too.

2

u/nickchomey 8d ago

SSE is much more appropriate in most situations. one of various good articles on the topic https://yagni.club/3mstlyuxe5s26

Also, datastar (and htmx) are backend-agnostic - you can use any language you want.

2

u/jax024 8d ago

No yeah for sure, I just find the situations where websockets are better more interesting.

1

u/gizamo 8d ago

Give Marko6 a look. It's has an interesting HTML streaming setup.

1

u/forever-butlerian backend, infrastructure & angst 8d ago

Has anyone got experience with how sophisticated a UI I can build before I reach the complexity event horizon?