htmgo - build simple and scalable systems with go + htmx
Find a file
maddalax 34e816ff7c
Websocket Extension - Alpha (#22)
* wip

* merge

* working again

* refactor/make it a bit cleaner

* fix to only call cb for session id who initiated the event

* support broadcasting events to all clients

* refactor

* refactor into ws extension

* add go mod

* rename module

* fix naming

* refactor

* rename

* merge

* fix manager ws delete, add manager tests

* add metric page

* fixes, add k6 script

* fixes, add k6 script

* deploy docker image

* cleanup

* cleanup

* cleanup
2024-11-09 12:05:53 -06:00
.github Websocket Extension - Alpha (#22) 2024-11-09 12:05:53 -06:00
cli/htmgo version 2024-11-01 07:57:30 -05:00
examples Websocket Extension - Alpha (#22) 2024-11-09 12:05:53 -06:00
extensions/websocket Websocket Extension - Alpha (#22) 2024-11-09 12:05:53 -06:00
framework Websocket Extension - Alpha (#22) 2024-11-09 12:05:53 -06:00
framework-ui Auto-update HTMGO framework version 2024-11-01 11:11:25 +00:00
htmgo-site test 2024-11-05 15:17:12 -06:00
templates/starter Auto-update HTMGO framework version 2024-11-01 11:11:25 +00:00
tools fix:parser_test remove impossible condition (#44) 2024-10-25 12:41:32 -05:00
.gitignore Revert "check in go.work" 2024-10-24 08:41:36 -05:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2024-10-11 23:33:23 -05:00
LICENSE Create LICENSE 2024-09-25 09:56:24 -05:00
README.md Update README.md 2024-10-31 13:41:13 -05:00
tailwind-lsp-config.json add tailwind intellisense notes 2024-10-13 06:35:27 -05:00

htmgo

build simple and scalable systems with go + htmx


Go Report Card Build Go Reference codecov Join Discord

looking for a python version? check out: https://fastht.ml

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. custom htmx extensions to reduce boilerplate with common tasks

get started:

View documentation on htmgo.dev.

Star History

Star History Chart