Fir

Dev tools

web app framework toolkit

SHOW HN2023

Fir

Build progressively enhanced reactive HTML apps using Go and Alpine.js

livefir.fly.dev

#go#alpine.js#reactive html#html templates#progressive enhancement

127points
43comments
#494of 3,109 in 2023
Top 16%of 2023 by points

How HN took it

RoastedHalf or more of the comments are critical

2 positive, 8 neutral or asking, 0 mixed, 10 critical, out of 20 comments about the project. Thread score -0.27.

Idea: 2 for, 2 againstPerformance: 0 for, 3 againstExecution: 0 for, 3 againstDesign: 0 for, 2 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Good approach for Go developers who want less JS

    From 2 comments
    • This is exactly what I need! I use Laravel mostly (with htmx and alpine) but wanted to build some stuff in Go. Thank you for your work!
      husarcik on HN
    • Yes! This is the project I’ve been waiting for.
      earthboundkid on HN

Objections

  • Adds unnecessary complexity compared with HTMX or Alpine alone

    From 1 comment
    • I think this is adding unnecessary complexity. One of the reasons developers gravitate towards a framework like Alpine or HTMX is to write less JS and go back to enjoying HTML.…
      Art9681 on HN
  • Site is slow and fails under load

    From 3 comments
    • Hope this is constructive feedback: I’m located in México and it takes around 20 seconds to load.
      hyeomans on HN
    • I think it's just getting the HN hug of death. I'm in the US on fiber and seeing timeouts and 30+ second load times.
      mtlynch on HN
    • The hug of death doesn't bode well for the approach.
      ryanolsonx on HN
  • Demo counter behaves confusingly with shared state

    From 2 comments
    • The second example counter is jumping around instead of incrementing/decrementing by 1. Is state being shared between users or somesuch? Or is it because I first clicked the full…
      whiddershins on HN
    • It’s a rather confusing demo. If that’s the intended behavior, I think you need to think of a less surprising use of it that can be understood as a demo, and perhaps even comes…
      tobr on HN

Requests

  • Comparison with HTMX in docs

    From 1 comment
    • Interesting stuff; is this intended to be an experiment or a longer-term project? I think a straight-forward comparison of Fir and things like HTMX (htmx.org) would be a good…
      fshr on HN
  • Better guides and documentation

    From 1 comment
    • This example has most of the scenarios you have called out: https://github.com/livefir/fir/tree/main/examples/fira. Fir aims to limit itself to rendering templates on the server…
      realrocker on HN

Questions

  • How complex cases like nested components and form validation are handled

    From 1 comment
    • The idea of using Go and Alpine.js together for building reactive web apps seems promising. As you mentioned, Fir is targeting devs with moderate HTML/CSS & JS skills. How does…
      ajd1988 on HN
  • What problem it solves versus plain net/http or Gin/Fiber with Alpine

    From 1 comment
    • I'm building a platform using GoFiber + AlpineJS and it's wonderful. I have to go through the Fir project because I'm trying to figure out what problem it solves. Wouldn't it be…
      Art9681 on HN

Alternatives named

  • HTMX

    From 2 comments
    • I wonder if it slow because of the locking, because other than that it shouldn't use much resources to run this. Anyway I am lazy, so I would probably just use HTMX boosting: ```…
      quickthrower2 on HN
    • Interesting stuff; is this intended to be an experiment or a longer-term project? I think a straight-forward comparison of Fir and things like HTMX (htmx.org) would be a good…
      fshr on HN
  • templ

    From 1 comment
    • Have you tried this: https://templ.guide/ ? This is a very simple and clean Go templating library.
      lormayna on HN
  • pushup

    From 1 comment
    • I think this is adding unnecessary complexity. One of the reasons developers gravitate towards a framework like Alpine or HTMX is to write less JS and go back to enjoying HTML.…
      Art9681 on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/35881963)