gsxType-safe HTML that's actually pleasant to write

gsxhq.github.io · 2026-07-25 · by Long Nguyen ·generic
gsx — JSX-style HTML, compiled to plain Go.

gsxType-safe HTML that's actually pleasant to write

Skip to content

gsxType-safe HTML that's actually pleasant to write

JSX-style markup, compiled to plain Go.

Get started

Learn gsx

Playground

gsx

Type-safe by construction

Components lower to plain Go the compiler checks. Props use generated or user-owned structs, so contracts stay typed and explicit.

Close to HTML, close to GoJSX-style markup for templates; ordinary Go for everything else. Tag names and package-level declarations distinguish components from elements.See the syntax reference

templ-compatible

gsx.Node has the identical method set to templ.Component, so gsx output drops into the templ ecosystem without importing templ.

Status — alpha. The language and APIs may still change before a stable release.
>
gsx — compiler & CLI · vscode-gsx — editor extension · tree-sitter-gsx — grammar · gsxhq.github.io — website & playground

pura: loading…

☰

📷 🔍 Discover ●▶ – ×

Ready

Close overlay

Hide for this session

Always hide on gsxhq.github.io

gsxhq.github.io · 3 images · 11 links

Comments (0)

No comments yet