Show HN: Gomponents, HTML components in pure Go

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
Nutrient – The #1 PDF SDK Library, trusted by 10K+ developers
Other PDF SDKs promise a lot - then break. Laggy scrolling, poor mobile UX, tons of bugs, and lack of support cost you endless frustrations. Nutrient’s SDK handles billion-page workloads - so you don’t have to debug PDFs. Used by ~1 billion end users in more than 150 different countries.
www.nutrient.io
featured
  1. templ

    A language for writing HTML user interfaces in Go.

    Isn't that basically Templ [0] then? But Templ has that extra build step for preprocessing and converting back to plain Go files.

    For me, gomponents is the middle ground. You don't get everything, but quite a lot of JSX-like feel. I was inspired by JSX after all. :) [1] Although I called it GOX back then… :D

    [0]: https://templ.guide

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. dovetail

    Fast server rendered components in Go. Inspired by SwiftUI, React, Elm. (by RoyalIcing)

    That’s awesome! I have a very similar project Dovetail, that tries to nudge you into making things accessible.

    https://github.com/RoyalIcing/Dovetail

  4. gomponents

    HTML components in pure Go.

    If you mean “action=/foo” for a “form” tag, there is an “Action” attribute: https://github.com/maragudk/gomponents/blob/main/html/attrib...

  5. gomponents-htmx

    HTMX attributes and helpers for gomponents.

    gomponents is just a glorified string builder, so it's more or less like writing HTML in Go that gets output from the server. So you put event handlers on your elements like you normally would, write scripts and include JS like you normally would, etc.

    That said, there's gomponents-htmx [0] for easy integration with HTMX.

    [0]: https://github.com/maragudk/gomponents-htmx

  6. gomponents-starter-kit

    A starter kit for building a web app with gomponents, HTMX, and TailwindCSS in Go.

    Yep, this exactly. And the starter kit mentioned is here, for anyone curious: https://github.com/maragudk/gomponents-starter-kit

  7. storybook

    Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation

    Not the OP but I think he meant the one at https://storybook.js.org

  8. ginkgo

    A Modern Testing Framework for Go

    It's the same with the Ginkgo testing library: "After the package books_test declaration we import the ginkgo and gomega packages into the test's top-level namespace by performing a . dot-import. Since Ginkgo and Gomega are DSLs this makes the tests more natural to read."

    https://onsi.github.io/ginkgo/

  9. Nutrient

    Nutrient – The #1 PDF SDK Library, trusted by 10K+ developers. Other PDF SDKs promise a lot - then break. Laggy scrolling, poor mobile UX, tons of bugs, and lack of support cost you endless frustrations. Nutrient’s SDK handles billion-page workloads - so you don’t have to debug PDFs. Used by ~1 billion end users in more than 150 different countries.

    Nutrient logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Write Advanced CSS (Not Just HTML) Now Directly in Go

    1 project | news.ycombinator.com | 17 Apr 2024
  • 🎉 Finally! Official launch of the Gowebly project on ProductHunt

    2 projects | dev.to | 19 Jul 2024
  • Hypermedia Systems

    7 projects | news.ycombinator.com | 19 Jun 2024
  • Htmd: A turndown.js inspired HTML-to-Markdown converter for Rust

    4 projects | news.ycombinator.com | 16 Jun 2024
  • Gowebly: A tool to bootstrap an web application in Golang

    1 project | news.ycombinator.com | 6 Jun 2024

Did you know that Go is
the 4th most popular programming language
based on number of references?