templ

A language for writing HTML user interfaces in Go. (by a-h)

Templ Alternatives

Similar projects and alternatives to templ

  1. go

    2,254 templ VS go

    The Go programming language

  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. Tailwind CSS

    1,498 templ VS Tailwind CSS

    A utility-first CSS framework for rapid UI development.

  4. htmx

    642 templ VS htmx

    </> htmx - high power tools for HTML

  5. Echo

    132 templ VS Echo

    High performance, minimalist Go web framework

  6. chi

    106 templ VS chi

    lightweight, idiomatic and composable router for building Go HTTP services

  7. go-app

    56 templ VS go-app

    A package to build progressive web apps with Go programming language and WebAssembly.

  8. Buffalo

    Discontinued Rapid Web Development w/ Go

  9. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
  10. Internet-Places-Database

    Database of Internet places. Mostly domains

  11. beego

    26 templ VS beego

    beego is an open-source, high-performance web framework for the Go programming language.

  12. unipdf

    24 templ VS unipdf

    Golang PDF library for creating and processing PDF files (pure go)

  13. gomponents

    HTML components in pure Go.

  14. quicktemplate

    Fast, powerful, yet easy to use template engine for Go. Optimized for speed, zero memory allocations in hot paths. Up to 20x faster than html/template

  15. civlua

    self contained software to build a minimalist dev environment.

  16. anubis

    18 templ VS anubis

    Weighs the soul of incoming HTTP requests using proof-of-work to stop AI crawlers

  17. gowebly

    12 templ VS gowebly

    🔥 A next-generation CLI tool that makes it easy to create amazing web applications with Go on the backend, using htmx, hyperscript or Alpine.js, and the most popular CSS frameworks on the frontend.

  18. dream-html

    Type-safe markup rendering, form validation, and routing for OCaml Dream web framework

  19. xc

    12 templ VS xc

    Markdown defined task runner.

  20. Plush

    5 templ VS Plush

    The powerful template system that Go needs

  21. pongo2

    12 templ VS pongo2

    Django-syntax like template-engine for Go

  22. tauri

    507 templ VS tauri

    Build smaller, faster, and more secure desktop and mobile applications with a web frontend.

  23. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better templ alternative or higher similarity.

templ discussion

Log in or Post with

templ reviews and mentions

Posts with mentions or reviews of templ. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-04-08.
  • A simple todo app with htmx/go/templ/tailwind
    6 projects | dev.to | 8 Apr 2025
    As some next steps I would advice you to learn more about the technologies we used and find out about their quirks and edge cases. For htmx I suggest reading the documentation and also the hypermedia systems book which provides many useful information and use cases of htmx. For templ I also suggest reading its documentation, it is pretty extensive and provides many information that you might find useful For go there are many resources out there, but my personal favorites and the ones that inspired me to write this aricle are the books Let's Go and Let's Go Further. In these books you will learn how to implement webservers with go and how to interact with databases and how to struct your code in a way that makes development easy. But most importantly build stuf!!
  • golang + sse + Data-Star for real time sys stats
    5 projects | dev.to | 24 Mar 2025
    tools we need today is: https://templ.guide for html templating https://data-star.dev for realtime frontend updates via SSE https://github.com/inhies/go-bytesize to convert bytes to normal representation like Mb Gb https://github.com/shirou/gopsutil to get sys stats and https://github.com/go-chi/chi for routing
  • FOSS infrastructure is under attack by AI companies
    7 projects | news.ycombinator.com | 20 Mar 2025
    The "difficulty" is how many leading zeroes the generated hash needs to have. When a client requests to pass the challenge, they include the nonce they used. The server then only has to do one sha256 operation: the one that confirms that the challenge (generated from request metadata) and the nonce (provided by the client) match the difficulty number of leading zeroes.

    The other trick is that presenting the challenge page is super cheap. I wrote that page with templ (https://templ.guide) so it compiles to native Go. This makes it as optimized as Go is modulo things like variable replacement. If this becomes a problem I plan to prerender things as much as possible. Rendering the challenge page from binary code or ram is always always always going to be so much cheaper than your webapp ever will be.

    I'm planning on adding things like changing out the hash in use, but right now sha256 is the best option because most CPUs in active deployment have instructions to accelerate sha256 hashing. This combined with webcrypto jumping to heavily optimized C++ and the JIT in JS being shockingly good means that this super naĂŻve approach is probably the most efficient way to do things right now.

    I'm shocked that this all works so well and I'm so glad to see it take off like it has.

  • The Future of Htmx
    28 projects | news.ycombinator.com | 6 Jan 2025
    Iam using templ https://templ.guide/ in combination with htmx.
  • Building HTML in Go
    2 projects | news.ycombinator.com | 5 Dec 2024
  • Templ: Build HTML with Go
    1 project | news.ycombinator.com | 27 Nov 2024
  • Ink: React for Interactive CLI Apps
    7 projects | news.ycombinator.com | 1 Nov 2024
    there's a few attempts, templ[0], gomponents[1]. Not for cli apps per se but for web dev.

    0: https://github.com/a-h/templ

  • Go's template engine “templ” is convenient (it also works with TinyGo)
    2 projects | dev.to | 29 Oct 2024
    See user documentation at https://templ.guide
  • Show HN: Gomponents, HTML components in pure Go
    8 projects | news.ycombinator.com | 17 Oct 2024
    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

  • Some Go web dev notes
    16 projects | news.ycombinator.com | 29 Sep 2024
    Templ [1] is great!

    Another go mod that helps a lot when massaging JSON (something most web servers end up doing sooner or later) is GJSON [2].

    --

    1: https://github.com/a-h/templ

    2: https://github.com/tidwall/gjson

  • A note from our sponsor - CodeRabbit
    coderabbit.ai | 21 Apr 2025
    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. Learn more →

Stats

Basic templ repo stats
54
9,077
9.1
6 days ago

a-h/templ is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of templ is Go.


Sponsored
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