Skip to content
forked from maddalax/htmgo

htmgo - build simple and scalable systems with go + htmx

License

Notifications You must be signed in to change notification settings

lewinkedrs/htmgo

 
 

Repository files navigation

Warning

htmgo is in alpha release and active development. API's may have breaking changes between versions. 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.

Star History

Star History Chart

About

htmgo - build simple and scalable systems with go + htmx

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 91.6%
  • TypeScript 7.4%
  • Other 1.0%