htmgo - build simple and scalable systems with go + htmx
Find a file
2024-09-24 21:08:20 -05:00
.github/workflows cleanup / move files 2024-09-22 21:33:22 -05:00
cli/htmgo upgrade and fixes 2024-09-24 15:08:38 -05:00
examples/todo-list docs 2024-09-24 15:10:08 -05:00
framework test 2024-09-24 15:59:24 -05:00
framework-ui more docs 2024-09-24 14:51:46 -05:00
htmgo-site tf 2024-09-24 15:51:28 -05:00
templates/starter upgrade and fixes 2024-09-24 15:08:38 -05:00
.gitignore rm ignored files 2024-09-23 11:26:02 -05:00
justfile rename everything 2024-09-13 19:05:55 -05:00
notes.md add ent for sql 2024-09-17 10:41:29 -05:00
README.md Update README.md 2024-09-24 21:08:20 -05:00
setup.md add ent for sql 2024-09-17 10:41:29 -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


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.

** license **

MIT License

Copyright (c) [2024] [htmgo]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.