6da518d9907d8424519de6ba97cf82dce44e575c
* feat: add Handler() method for testing and custom server integration Exposes the underlying http.Handler to enable: - Integration testing with gost-dom/browser for SSE/Datastar testing - Custom server setups (e.g., embedding Via in existing applications) - Standard Go httptest patterns 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: Suppress closed pipe errors when SSE connection closes Don't log error when SSE fails to send patches if the connection was already closed. This reduces noise in logs during shutdown and testing, where browsers/clients close connections before server handlers finish. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: joeblew999 <joeblew999@users.noreply.github.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
⚡Via
Real-time engine for building reactive web applications in pure Go.
Why Via?
Somewhere along the way, the web became tangled in layers of JavaScript, build chains, and frameworks stacked on frameworks.
Via takes a radical stance:
- No templates.
- No JavaScript.
- No transpilation.
- No hydration.
- No front-end fatigue.
- Single SSE stream.
- Full reactivity.
- Built-in Brotli compression.
- Pure Go.
Example
package main
import (
"github.com/go-via/via"
"github.com/go-via/via/h"
)
type Counter struct{ Count int }
func main() {
v := via.New()
v.Page("/", func(c *via.Context) {
data := Counter{Count: 0}
step := c.Signal(1)
increment := c.Action(func() {
data.Count += step.Int()
c.Sync()
})
c.View(func() h.H {
return h.Div(
h.P(h.Textf("Count: %d", data.Count)),
h.Label(
h.Text("Update Step: "),
h.Input(h.Type("number"), step.Bind()),
),
h.Button(h.Text("Increment"), increment.OnClick()),
)
})
})
v.Start()
}
🚧 Experimental
Via is still a newborn. Via is taking its first steps!
- Version
0.1.0released. - Expect a little less chaos.
Contributing
- Via is intentionally minimal and opinionated — and so is contributing.
- If you love Go, simplicity, and meaningful abstractions — Come along for the ride!
- Fork, branch, build, tinker with things, submit a pull request.
- Keep every line purposeful.
- Share feedback: open an issue or start a discussion.
Credits
Via builds upon the work of these amazing projects:
- 🚀 Datastar - The hypermedia powerhouse at the core of Via. It powers browser reactivity through Signals and enables real-time HTML/Signal patches over an always-on SSE event stream.
- 🧩 Gomponents - The awesome project that gifts Via with Go-native HTML composition superpowers through the
via/hpackage.
Thank you for building something that doesn’t just function — it inspires. 🫶