Reading the repo
Opening the box…
Reading the repo
Opening the box…
How to install on macOS
Written by AI from the README.
Saved setup from 12 h ago
Will it work on macOS?
docs/getting-started.mdConstellation is a small web framework built with Go's standard library. You declare endpoints, return HTML from a handler, and the framework wraps it in a page.
It requires Go 1.27 or newer and has no third-party dependencies.
Developed by Ryann Kim Sesgundo with Opencode Big Pickle.
main.go application entry point and embedded static files
lib/interface.go Endpoint, WebComponent, and constants
lib/main.go server startup
lib/middleware/http.go HTML page wrapper
lib/elements/ HTML element helpers
lib/dev/ development server with hot reload
static/styles.css site stylesheet
docs/ Markdown documentation
package main
import (
constellation "constellation/lib"
"constellation/lib/elements"
)
func main() {
constellation.AddEndpoint(constellation.Endpoint{
Path: "/",
Method: constellation.GET,
Permission: constellation.Unauthenticated,
Title: "Home",
Handler: constellation.HandlerSetup{
Web: func(r *constellation.Request) string {
return elements.Main(constellation.WebComponent{
Class: "page-shell",
Children: []any{
elements.H1(constellation.WebComponent{
Text: "Hello, Constellation",
}),
elements.P(constellation.WebComponent{
Text: "Built with Go.",
}),
},
})
},
},
})
constellation.StartServer(nil)
}
The elements helpers return HTML strings, so a Web handler can return one
directly. See Elements for the available helpers.
Run it with go run . and open http://localhost:8000. For development with
automatic rebuilds and browser refresh, use the watcher instead:
go run ./lib/dev
It watches .go, .css, and .md files and serves the app on the same port.
Set PORT to use a different port.
Embed a CSS file and pass its bytes to StartServer:
//go:embed static/styles.css
var stylesheet []byte
func main() {
// ... register endpoints ...
constellation.StartServer(stylesheet)
}
See Styling for details.
Then run bash setup.sh. It stops at the first error and is safe to run again. Servers and tests aren't started; it lists them at the end. Read it first.
Needs Git: xcode-select --install
git clone https://github.com/RyannKim327/constellation.git cd constellation
Go 1.27.0
brew install go
go mod download
go run .
go test ./...
go run .
Open http://localhost:8000.
No reports for macOS yet.
GitManual AI Agent reads the 3 key files and writes a step-by-step guide for macOS. Once written, it's saved for everyone.