Built with Go and Tailwind CSS.

Small framework. Clear conventions.

Constellation is a small web framework for Go. Declare an endpoint, return HTML from a handler, and the framework wraps it in a page.

01

Declarative routes

Describe an endpoint with an Endpoint value. Methods and paths are normalized before registration.

02

Composable elements

Build markup with one helper per HTML tag. Text and attributes are escaped for you.

03

Standard library only

No external dependencies. The stylesheet and documentation are embedded into the binary.

Compose pages in Go

Every HTML tag has a helper. Nest components with Children and let the renderer escape text and attributes.

Read the elements guide →
elements.Div(constellation.WebComponent{
    Class: "page-shell",
    Children: []any{
        elements.H1(constellation.WebComponent{Text: "Hello"}),
        elements.P(constellation.WebComponent{Text: "Built with Go."}),
    },
})
Documentation index→Getting started→Routing guide→Elements guide→Styling guide→