vecty
gomponents
vecty | gomponents | |
---|---|---|
8 | 11 | |
2,830 | 1,497 | |
0.0% | 4.3% | |
0.0 | 8.0 | |
over 2 years ago | 16 days ago | |
Go | Go | |
BSD 3-clause "New" or "Revised" License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
vecty
-
Is there a Yew.rs like framework for Go?
Vecty
-
Projects without writing any of the front end.
It depends on how specifically you don't want to write HTML/CSS/JS and how broad your definition of "frontend" is. There are a handful of all-go frontend frameworks such as Vecty and Vugu of varying maturity and completeness. Then there's other libraries that more or less have you write HTML tags in go, such as go-app.
-
Is there any way to interop with JS in Zig/RS/C/C++?
It draws on Go's syscall/js library as inspiration, which is pretty powerful (I wrote a pretty popular React-like framework using it a while back.)
-
Migrating from NodeJS/Typescript into Golang. Any advise for big web application?
A note on wasm: I'm building a hobby project with it right now and have tried different frameworks, I tried vecty which is nice to compile but full of bugs and unexpected behavior. I'm now on vugu which works better but is still harder to work with than a JS framework.
-
What frontend libraries do exist in Go?
https://github.com/hexops/vecty/ is a framework for developing dynamic web frontends in Go. It's not production-ready, and will likely get some rewrites once generics drop, but it's pretty neat (I'm a contributor).
-
Go for web frontend
There's Vecty, though it's likely to get a bit of a redesign once generics drops.
-
go-app V8 release
How does it compare to https://github.com/hexops/vecty or https://github.com/bep/gr ?
-
Daz: Composable HTML components in golang
Reminds me of Vecty from the GopherJS project: https://github.com/hexops/vecty .
gomponents
-
Building HTML in Go
Gomponents is also a great way to deal with HTML in Go.
https://www.gomponents.com/
- Ink: React for Interactive CLI Apps
-
Show HN: Gomponents, HTML components in pure Go
If you mean “action=/foo” for a “form” tag, there is an “Action” attribute: https://github.com/maragudk/gomponents/blob/main/html/attrib...
-
Templ: A language for writing HTML user interfaces in Go
I'm really happy you like it. :) And thank you for your comment, I really appreciate newcomer viewpoints especially.
Have a look at the `Classes` helper component already available: https://github.com/maragudk/gomponents/blob/main/components/...
Yeah, I'm not a total fan of the runtime panics, but it was a tradeoff where I chose in favour of API simplicity and readability. In practice, it works out well, because you catch any typos at development time.
I've had elements and attributes in separate packages before, but then you can't dot-import both packages and not have name clashes, and have to either prefix elements or attributes with the package name, which makes the code much less readable. Again, a tradeoff. :)
-
Template Engine Recommendation
Gomponents:
-
HTML Templates | Why would you use them over react?
I now always use https://github.com/maragudk/gomponents for frontend components (I'm the author of that library) together with HTMX (https://github.com/maragudk/gomponents-htmx), and it's just so much more fun and fast to work with.
-
How to render html children inside nested templates
However, there is an alternative to achieve React-ish components in Go using this package: https://github.com/maragudk/gomponents
-
Daz: Composable HTML components in golang
reminds me of https://github.com/maragudk/gomponents
-
How painful is SSR with Go, really?
I’ve also started just rendering views from the Go backend. It’s so nice and simple when you don’t need an SPA (like in your case). I didn’t like the syntax of html/template though, so I started a small view component library. Maybe it would be useful to you too, wrote about it here: https://www.maragu.dk/blog/gomponents-declarative-view-components-in-go/
-
How I build web frontends in Go
Are you speaking of something like: gomponents? I can see what it has to offer. I tried it for half an hour but did not feel that well about it.
What are some alternatives?
vugu - Vugu: A modern UI library for Go+WebAssembly (experimental)
templ - A language for writing HTML user interfaces in Go.
go-canvas - Library to use HTML5 Canvas from Go-WASM, with all drawing within go code
hyperscript - Create HyperText with JavaScript.
spago - SpaGo is toolkit for Single Page Application.
goview - Goview is a lightweight, minimalist and idiomatic template library based on golang html/template for building Go web application.