nowfound

Life & fun · October 15, 2024

Gomponents, HTML components in pure Go

Hey everyone! I just released v1.0.0 of gomponents last week. It's an HTML component builder in pure Go, with a DSL-like HTML syntax. It's been 4 years in the making, and makes it really easy to build HTML in your web apps.

Gomponents, HTML components in pure Go launched on October 15, 2024 with 113 votes, #461 of 5,185 launches that month and more than 95% of that year's launches. The site was still online in September 2026, 2 years on.

Visit gomponents.com ↗Alternativestop 9% of October 2024

In plain words

Gomponents is an HTML component builder written entirely in Go that uses a domain-specific language-like syntax for generating HTML. Designed for Go developers building web applications, it enables them to construct HTML programmatically within their Go code. The tool reached its v1.0.0 milestone after four years of development, offering a streamlined approach to HTML generation as an alternative to traditional templating.

written from the facts on this page · September 2026

From the sources

HTML components in pure Go, that render to HTML 5.

gomponents are HTML components in pure Go. They render to HTML 5, and make it easy for you to build reusable components. So you can focus on building your app instead of learning yet another templating language. Does your company depend on this project? Contact me at [email protected] to discuss options for a one-time or recurring invoice to ensure its continued thriving. Have a look at this component. If you know HTML, you know what it does. Easy, right? import ( . "maragu.dev/gomponents" . "maragu.dev/gomponents/html" ) func Navbar() Node { return Nav(Class("navbar"), Ol( Li(A(Href("/"), Text("Home"))), Li(A(Href("/contact"),…from gomponents.com

Does a similar job

all alternatives →
  • UG
    Use Go's HTML/template to write React-like code2024 · ▲106

    Hi all, I'm currently working on my hobby project, and one of the fun constraints I put in was to build using as less dependencies as possible. I chose Go as it has a really good standard library, and all went well for building backend. But for frontend, I was wondering whether I should break the constraint and go for React. I tried options like Web Components, but I really didn't like the ergonomics and I didn't want to use jQuery either. Out of curiosity, I was exploring Go's html/template package to see if I can write UIs in a React-like manner. I found most of the online docs using…

  • htmgo - build simple and scalable systems with golang + htmx2024 · htmgo.dev · ▲166

    Hey all, I just wanted to share a project I've been working on for the past month. After years of heavy frameworks, I really like the idea of using htmx, but it’s a little too low level for me and needs a thin layer above it to facilitate things like components, better syntax with complex JS inside of an attribute, etc To try and solve this problem with a very minimal stack (golang + htmx) that I've been really enjoying, I'm building this project to cater to my needs and was thinking it would be useful for other developers.

  • BP
    Build progressively enhanced reactive HTML apps using Go and Alpine.js2023 · livefir.fly.dev · ▲127

    Fir leverages Golang’s standard library html/template package and a bit of alpinejs to allow building reactive UIs. You start with plain old html and use alpinejs to enhance it to bring no-page-reload interactivity to web apps. The Fir toolkit is designed for Go developers with moderate html/css & js skills who want to progressively build reactive web apps without mastering complex web frameworks. It includes a Go library and an Alpine.js plugin. How it works ? On receiving user-interactions the fir server re-renders html templates and sends it over the wire where the fir client…

  • GT
    Go Template Preview – Powered by WebAssembly2022 · gotemplate.io · ▲102

    Quickly test and visualize your Go templates live. Template and data never leave your browser unless you share.

  • WebComponents.dev2020 · webcomponents.dev · ▲101

    The modern IDE for web platform developers

  • Alloy2017 · growthmetrics.io · ▲88

    Boilerplate for building web applications with Go (golang)

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, October 2024

the whole month →
  • buzzabout▲1,267

    Audience insights from 1B+ online discussions in 2 mins

    AI · 2024 · buzzabout.ai

  • bolt.new▲1,230

    Build and scale high-performing websites & apps using your words. Join millions and start building today.

    AI · 2024 · bolt.new

  • Feta▲1,217

    Run smarter stand-ups, build better products

    AI · 2024 · feta.io

  • Trag▲955

    AI code review companion

    AI · 2024 · usetrag.com

  • Turn Notion databases into portals & apps with no code

    Dev tools · 2024 · softr.io

  • One inbox for all your work discussions

    Work · 2024 · generalcollaboration.com