htmgo - build simple and scalable systems with go + htmx
Find a file
2024-10-04 11:21:15 -05:00
.github/workflows add gh 2024-10-01 13:45:32 -05:00
cli/htmgo fixes 2024-10-04 10:33:04 -05:00
examples Merge remote-tracking branch 'origin/master' 2024-10-04 11:18:36 -05:00
framework build fix 2024-10-04 11:21:15 -05:00
framework-ui Auto-update HTMGO framework version 2024-10-04 16:16:51 +00:00
htmgo-site Auto-update HTMGO framework version 2024-10-04 16:16:51 +00:00
templates/starter Auto-update HTMGO framework version 2024-10-04 16:16:51 +00:00
tools updates 2024-09-27 10:28:24 -05:00
.gitignore rm ignored files 2024-09-23 11:26:02 -05:00
LICENSE Create LICENSE 2024-09-25 09:56:24 -05:00
README.md Update README.md 2024-09-30 09:24:06 -05:00
tailwind-lsp-config.json working on landing page 2024-09-20 11:45:23 -05:00

Warning

htmgo is in alpha release. Please report any issues on GitHub.

htmgo

build simple and scalable systems with go + htmx


Go Report Card Build

introduction:

htmgo is a lightweight pure go way to build interactive websites / web applications using go & htmx.

By combining the speed & simplicity of go + hypermedia attributes (htmx) to add interactivity to websites, all conveniently wrapped in pure go, you can build simple, fast, interactive websites without touching javascript. All compiled to a single deployable binary.

func IndexPage(ctx *h.RequestContext) *h.Page {
  now := time.Now()
  return h.NewPage(
    h.Div(
      h.Class("flex gap-2"),
      h.TextF("the current time is %s", now.String())
    )
  )
}

core features:

  1. deployable single binary
  2. live reload (rebuilds css, go, ent schema, and routes upon change)
  3. automatic page and partial registration based on file path
  4. built in tailwindcss support, no need to configure anything by default
  5. plugin architecture to include optional plugins to streamline development, such as http://entgo.io
  6. custom htmx extensions to reduce boilerplate with common tasks

get started:

View documentation on htmgo.dev.